{"id":13583603,"url":"https://github.com/smithclay/sayeasy","last_synced_at":"2025-03-22T19:33:27.411Z","repository":{"id":5899872,"uuid":"7118514","full_name":"smithclay/sayeasy","owner":"smithclay","description":"say.js API wrapper for text-to-speech on a mac over networks.","archived":false,"fork":false,"pushed_at":"2013-01-31T01:27:41.000Z","size":145,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T01:52:13.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smithclay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-11T20:08:30.000Z","updated_at":"2021-01-07T23:15:07.000Z","dependencies_parsed_at":"2022-08-28T03:40:26.749Z","dependency_job_id":null,"html_url":"https://github.com/smithclay/sayeasy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithclay%2Fsayeasy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithclay%2Fsayeasy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithclay%2Fsayeasy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smithclay%2Fsayeasy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smithclay","download_url":"https://codeload.github.com/smithclay/sayeasy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013742,"owners_count":20547175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:03:37.587Z","updated_at":"2025-03-22T19:33:27.123Z","avatar_url":"https://github.com/smithclay.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# sayeasy\n\nRESTful wrapper around say.js. Runs on Mac OS X. Useful for text-to-speech notifications in a continuous integration environment. \n\n## Getting Started\nInstall the module with: `npm install sayeasy`\n\n```javascript\nvar sayeasy = require('sayeasy');\nsayeasy.start();\n```\n## Command Line Interface (CLI)\n\nsayeasy comes with a easy-to-use CLI tool that sends text to a sayeasy server.\n\nIf you run `npm install -g sayeasy` the sayeasy CLI will be available in your `PATH`:\n\nTo speak \"Hello World!\" using the Cellos voice on `localhost:4000`:\n\n```sh\n  sh $ sayeasy Hello World! -v Cellos\n```\n\nWant to run the sayeasy command on a different server/port than `localhost:4000`, set these environment variables:\n\n```sh\n sh $ export SAYEASY_SERVER=10.10.10.10\n sh $ export SAYEASY_PORT=3003\n```\n\n## Server Endpoints\n\n### `/speak`\n\n`/speak` is a endpoint that accepts an HTTP `POST` request with three parameters:\n\n* voice - The Mac OS X voice to speak the text. (optional, default: 'Bruce')\n* text - The text to speak. (required)\n* sound - The name of an *.mp3 file in `process.env.SOUND_DIRECTORY` to play.\n\n### `/levels`\n\n`/levels` is a HTTP `POST` endpoint that sets the system volume.\n\n* volume - A number [0-10] that sets the system volume. 0 is mute and 10 is the highest. \n\n### `/sounds`\n\n`/sounds` is an endpoint that accepts an HTTP `GET` request to return a JSON array of *.mp3 files sayeasy can play. The directory sayeasy uses to look for *.mp3 files is configured in the `SOUND_DIRECTORY` environment variable (default: `/usr/local/BuildSounds`).\n \n### `/stop`\n\nStop all `afplay` processes on the system.\n\n## cURL Example\n\n```sh\nsh $ curl -dtext='Hello World' -dvoice=Bruce http://localhost:4000/speak\n```\n\n## Release History\n\n0.1.2 - Include CLI Tool\n\n0.1.0 - Initial Release\n\n## License\nCopyright (c) 2012 Clay Smith  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithclay%2Fsayeasy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmithclay%2Fsayeasy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithclay%2Fsayeasy/lists"}