{"id":23291936,"url":"https://github.com/jeeftor/alfredsonostts","last_synced_at":"2025-04-06T18:24:30.628Z","repository":{"id":73759940,"uuid":"111304626","full_name":"jeeftor/AlfredSonosTTS","owner":"jeeftor","description":"Sonos based TTS controlled via Alfred","archived":false,"fork":false,"pushed_at":"2017-11-20T19:04:23.000Z","size":1470,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T00:22:57.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeeftor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-19T14:53:04.000Z","updated_at":"2019-12-14T14:47:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2be1f9d5-f195-43a1-934e-94181aa648b7","html_url":"https://github.com/jeeftor/AlfredSonosTTS","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FAlfredSonosTTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FAlfredSonosTTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FAlfredSonosTTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FAlfredSonosTTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeeftor","download_url":"https://codeload.github.com/jeeftor/AlfredSonosTTS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247527952,"owners_count":20953339,"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-12-20T05:28:12.239Z","updated_at":"2025-04-06T18:24:30.575Z","avatar_url":"https://github.com/jeeftor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTS for Sonos\n\n**COMMANDS:**\n\n* **TTS** - Text to Speech *(Play a TTS phrase)*\n* **STV** - Sonos TTS Voice *(Select voice to use)*\n* **STS** - Sonos TTS Speaker *(Select the speaker to play on)*\n\n## Setting up the plugin\n\n* This plugin takes advantage of the `SoCo` library (included in the workflow) to control the sonos.\n\nIn order to get the file to play correctly you need to do a few things.\n\nFirst you need to locate a directory that is both shared with sonos and accessible to the computer running the workflow.\n\nIn this example we will use the `/share` folder on the local drive\n\n```bash\n# I made the directory with these commands\nsudo mkdir /share\nchmod 777 /share\n```\n\n![image](doc_images/music_lib.png)\n\nFirst select your `Music Library` in the Sonos client for OSX\n\n![image](doc_images/music_library.png)\n\nThen navigate to `Folders`\n\n![image](doc_images/folders.png)\n\nAnd there you will see the 'sonos' name for your share\n\n![image](doc_images/share.png)\n\n\nIn our case its `//iMac/share` (which maps to `/share` on the local disk).  You want to make sure you have a `tts.png` file that exists in this directory.\n\n![tts](doc_images/tts.png)\n\nYou can create a placeholder for the file with `touch /share/tts.png` from the command line (this file gets overwritten each time you run the plugin).  After you need to update your music library:\n\n**Manage** - **Update Music Library Now** or try:  `⇧⌘I`\n\nAt this point everything \"should\" be ready to go - there are some additional steps but they are done via the plugin interface\n\n### Additional Steps\n\n### Installing LAME\n\nThis plugin needs LAME to be installed.  The first time you run it will prompt you it is not installed.\n\n![first](doc_images/firstRun.png)\n\nSelecting the first option will try to install it via homebrew.  If that fails - figure out how to install `LAME` on your own.\n\n### Selecting a Voice and Speakers\n\nUse the `sts` and `stv` commands to select a voice and a speaker to use.\n\nThen you can invoke via `tts` the plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Falfredsonostts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeeftor%2Falfredsonostts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Falfredsonostts/lists"}