{"id":17000788,"url":"https://github.com/jeroenterheerdt/pycsspeechtts","last_synced_at":"2025-03-22T15:31:18.294Z","repository":{"id":48652198,"uuid":"107146312","full_name":"jeroenterheerdt/pycsspeechtts","owner":"jeroenterheerdt","description":"Python (py) library to use Microsofts Cognitive Services Speech (csspeech) Text to Speech (tts) API.","archived":false,"fork":false,"pushed_at":"2023-06-10T22:41:12.000Z","size":45,"stargazers_count":5,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:28:46.122Z","etag":null,"topics":["cognitive-services","microsoft","microsoft-cognitive-services","text-to-speech"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jeroenterheerdt.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":"2017-10-16T15:25:52.000Z","updated_at":"2022-11-08T15:12:51.000Z","dependencies_parsed_at":"2024-06-20T00:14:22.297Z","dependency_job_id":null,"html_url":"https://github.com/jeroenterheerdt/pycsspeechtts","commit_stats":{"total_commits":20,"total_committers":7,"mean_commits":2.857142857142857,"dds":0.6,"last_synced_commit":"eaded326a7d6c6411b1bc2d33c7151167228752d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenterheerdt%2Fpycsspeechtts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenterheerdt%2Fpycsspeechtts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenterheerdt%2Fpycsspeechtts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenterheerdt%2Fpycsspeechtts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeroenterheerdt","download_url":"https://codeload.github.com/jeroenterheerdt/pycsspeechtts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978609,"owners_count":20541887,"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":["cognitive-services","microsoft","microsoft-cognitive-services","text-to-speech"],"created_at":"2024-10-14T04:13:00.647Z","updated_at":"2025-03-22T15:31:17.520Z","avatar_url":"https://github.com/jeroenterheerdt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pycsspeechtts\nPython (py) library to use Microsofts Cognitive Services Speech (csspeech) Text to Speech (tts) API.\nThe cryptic name is the combination of the abbrevations shown above.\n\nUsage:\n```python\nfrom pycsspeechtts import TTSTranslator\nt = TTSTranslator(\"YOUR API KEY\",\"westeurope\")\n\ndata = t.speak(text='The default voice is using Microsoft Neural Voice. When using a neural voice, synthesized speech is nearly indistinguishable from the human recordings.')\nwith open(\"file1.wav\", \"wb\") as f:\n        f.write(data)\n\ndata = t.speak('en-gb','Male','I am Max', 'George, Apollo', 'riff-16khz-16bit-mono-pcm', text='I am Max')\nwith open(\"file2.wav\", \"wb\") as f:\n        f.write(data)\n```\n\nYou can also use custom voice by specifying `isCustom=True` and providing a `customEndpoint`:\n```python\nfrom pycsspeechtts import TTSTranslator\nt = TTSTranslator(\"YOUR API KEY\",\"westeurope\", isCustom=True, customEndpoint=MyEndpoint)\ndata = t.speak(language='en-gb',gender='Male',voiceType=\"ArchieNeural\",text=\"This is a test for custom voice\")\n```\n\nSee test.py for more samples.\nRefer to https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support to find the valid values for language, gender, voicetype and output formats.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroenterheerdt%2Fpycsspeechtts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeroenterheerdt%2Fpycsspeechtts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroenterheerdt%2Fpycsspeechtts/lists"}