{"id":13456531,"url":"https://github.com/frostming/tetos","last_synced_at":"2026-04-02T13:47:47.435Z","repository":{"id":233734521,"uuid":"787721895","full_name":"frostming/tetos","owner":"frostming","description":"A unified interface for multiple Text-to-Speech (TTS) providers.","archived":false,"fork":false,"pushed_at":"2026-03-26T01:41:21.000Z","size":172,"stargazers_count":278,"open_issues_count":3,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-26T23:36:52.369Z","etag":null,"topics":["azure","edge","openai","text-to-speech","tts","volcengine"],"latest_commit_sha":null,"homepage":"https://tetos.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frostming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["frostming"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-04-17T03:55:47.000Z","updated_at":"2026-03-26T10:06:59.000Z","dependencies_parsed_at":"2024-04-24T12:44:11.899Z","dependency_job_id":"df262ae4-317c-4cbd-98a9-706caded322e","html_url":"https://github.com/frostming/tetos","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"106ea5cff843fddda0ee3ea0f6e0d41a2233c523"},"previous_names":["frostming/unitts","frostming/tetos"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/frostming/tetos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Ftetos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Ftetos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Ftetos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Ftetos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostming","download_url":"https://codeload.github.com/frostming/tetos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Ftetos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","edge","openai","text-to-speech","tts","volcengine"],"created_at":"2024-07-31T08:01:23.610Z","updated_at":"2026-04-02T13:47:47.407Z","avatar_url":"https://github.com/frostming.png","language":"Python","funding_links":["https://github.com/sponsors/frostming"],"categories":["Python","精选文章"],"sub_categories":["文字转语音"],"readme":"# TeToS\n\u003c!--index start--\u003e\n\n[![PyPI](https://img.shields.io/pypi/v/tetos)](https://pypi.org/project/tetos/)\n[![Python](https://img.shields.io/pypi/pyversions/tetos)](https://pypi.org/project/tetos/)\n[![License](https://img.shields.io/pypi/l/tetos)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Downloads](https://pepy.tech/badge/tetos)](https://pepy.tech/project/tetos)\n[![Documentation Status](https://readthedocs.org/projects/tetos/badge/?version=latest)](https://tetos.readthedocs.io/latest/?badge=latest)\n\nA unified interface for multiple Text-to-Speech (TTS) providers.\n\n\n## Supported TTS providers\n\n| Provider                                                                                             | Requirements                                                                                                                                                                                                                                                      |\n| ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [Edge-TTS](https://github.com/rany2/edge-tts)                                                        | -                                                                                                                                                                                                                                                                 |\n| [OpenAI TTS](https://platform.openai.com/docs/guides/text-to-speech)                                 | `api_key`: OpenAI API key                                                                                                                                                                                                                                         |\n| [Azure TTS](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/text-to-speech) | `speech_key`: Azure Speech service key\u003cbr\u003e`speech_region`: Azure Speech service region                                                                                                                                                                            |\n| [Google TTS](https://cloud.google.com/text-to-speech?hl=zh-CN)                                       | [Enable the Text-to-Speech API in the Google Cloud Console](https://console.developers.google.com/apis/api/texttospeech.googleapis.com/overview?project=586547753837)\u003cbr\u003eSet env var `GOOGLE_APPLICATION_CREDENTIALS` as the path to the service account key file |\n| [Volcengine TTS(火山引擎)](https://console.volcengine.com/sami)                                      | `access_key`: Volcengine access key ID. ([Get it here](https://console.volcengine.com/iam/keymanage/))\u003cbr\u003e`secret_key`: Volcengine access secret key. ([Get it here](https://console.volcengine.com/iam/keymanage/))\u003cbr\u003e`app_key`: Volcengine app key             |\n| [Baidu TTS](https://ai.baidu.com/tech/speech/tts)                                                    | `api_key`: Baidu API key\u003cbr\u003e`secret_key`: Baidu secret key\u003cbr\u003eBoth can be acquired at the [console](https://console.bce.baidu.com/ai/#/ai/speech/app/list)                                                                                                        |\n| [Minimax TTS](https://www.minimaxi.com/document/speech-synthesis-engine?id=645e034eeb82db92fba9ac20) | `api_key`: Minimax API key\u003cbr\u003e`group_id`: Minimax group ID\u003cbr\u003eBoth can be acquired at the [Minimax console](https://www.minimaxi.com/user-center/basic-information)                                                                                               |\n| [迅飞 TTS](https://www.xfyun.cn/services/online_tts)                                                 | `app_id`: Xunfei APP ID\u003cbr\u003e`api_key`: Xunfei API key\u003cbr\u003e`api_secret`: Xunfei API secret                                                                                                                                                                           |\n| [Fish Audio](https://fish.audio)                                                                     | `api_key`: Fish Audio API key                                                                                                                                                                                                                                     |\n\n## Installation\n\nTetos requires Python 3.8 or higher.\n\n```bash\npip install tetos\n```\n\n## CLI Usage\n\n```\ntetos PROVIDER [PROVIDER_OPTIONS] TEXT [--output FILE]\n```\n\nPlease run `tetos --help` for available providers and options.\n\nExamples\n\n```\ntetos google \"Hello, world!\"\ntetos azure \"Hello, world!\" --output output.mp3   # save to another file\ntetos edge --lang zh-CN \"你好，世界！\"  # specify language\ntetos openai --voice echo \"Hello, world!\"  # specify voice\n```\n\n## API Usage\n\nUse Azure TTS as an example:\n\n```python\nfrom tetos.azure import AzureSpeaker\n\nspeaker = AzureSpeaker(speech_key='...', speech_region='...')\nspeaker.say('Hello, world!', 'output.mp3')\n```\n\nThe initialization parameters may be different for other providers.\n\n## Work behind a proxy\n\nTeTos respects the proxy environment variables `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY` and `NO_PROXY`.\n\n## TODO\n\n- [x] Google TTS\n- [ ] SSML support\n\n## License\n\n[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n\n\u003c!--index end--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Ftetos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostming%2Ftetos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Ftetos/lists"}