{"id":17823340,"url":"https://github.com/purarue/tts","last_synced_at":"2025-03-18T16:30:28.081Z","repository":{"id":94610632,"uuid":"284233386","full_name":"purarue/tts","owner":"purarue","description":"CLI tool to convert text to speech using the StreamLabs API","archived":false,"fork":false,"pushed_at":"2024-10-27T20:25:07.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T21:09:02.594Z","etag":null,"topics":["cli","speech","streamlabs","streamlabs-api","text-to-speech","tts","twitch"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-01T09:56:48.000Z","updated_at":"2025-01-27T18:11:14.000Z","dependencies_parsed_at":"2024-04-12T08:01:35.692Z","dependency_job_id":"8663077f-6c4b-4373-97ab-bff7d25d309d","html_url":"https://github.com/purarue/tts","commit_stats":null,"previous_names":["seanbreckenridge/tts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ftts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ftts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ftts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ftts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/tts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940058,"owners_count":20372044,"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":["cli","speech","streamlabs","streamlabs-api","text-to-speech","tts","twitch"],"created_at":"2024-10-27T17:57:36.545Z","updated_at":"2025-03-18T16:30:28.058Z","avatar_url":"https://github.com/purarue.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Status\n\nThis was always using an undocumented API, seems that the underlying APIs have changed so this no longer works. The endpoint used to be at \u003chttps://streamlabs.com/polly/speak\u003e, if anyone knows if there's an updated URL feel free to open an issue.\n\n# tts\n\nA CLI tool to interact with the [StreamLabs](https://streamlabs.com/) Text-To-Speech API endpoint.\n\n## Usage\n\n```\nUsage:  tts [-h] [-v VOICE] [-d FILENAME|-p] \u003ctext_to_speak\u003e...\nConverts text to speech using the StreamLabs API\nAny other positional arguments are interpreted as the text input\nIf no text is present, reads from STDIN\n\n   -h           Prints this help message and exits\n   -v VOICE     Change the voice used for TTS\n   -l           List available voices\n   -d FILENAME  Download the .mpeg file to FILENAME.mpeg [default]\n   -p           Instead of downloading, print the audio URL\n\nDisclaimer: Not affiliated with or endorsed by StreamLabs\n```\n\n## Install\n\nAfter installing [`curl`](https://github.com/curl/curl) and [`jq`](https://stedolan.github.io/jq/download/);\n\nDownload the `tts` script somewhere onto your `$PATH`\n\n`wget -P ~/.local/bin 'https://raw.githubusercontent.com/purarue/tts/master/tts' \u0026\u0026 chmod +x ~/.local/bin/tts`\n\nCould also use [`basher`](https://github.com/basherpm/basher):\n\n```bash\nbasher install purarue/tts\n```\n\n## Examples\n\n```\ntts -l  # to list voices\n\n# basic examples\necho \"hello mr streamer\" | tts\ntts 'O, o. .O, o.'\ntts -v Emma 'what?'  # use a different voice\n\n# save to filepath, and play after its downloaded. uses paplay, but mpv/vlc could also be used\necho 'Does this work? NO? .OK.' | tts -d /tmp/sound.mpeg \u0026\u0026 plaympeg /tmp/sound.mpeg\n```\n\nAudio: \u003chttps://purarue.xyz/p/sound.mpeg\u003e\n\n## Notes\n\nConverted to a nicer interface from the one liner found [here](https://gist.github.com/idealwebsolutions/84dcb061baa427050672b9b41f900ce8#comments).\n\nDisclaimer: Not affiliated with or endorsed by StreamLabs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Ftts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Ftts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Ftts/lists"}