{"id":17657368,"url":"https://github.com/wengchaoxi/tts-api","last_synced_at":"2026-04-11T14:34:04.142Z","repository":{"id":226856042,"uuid":"745308567","full_name":"wengchaoxi/tts-api","owner":"wengchaoxi","description":"Azure TTS API Service","archived":false,"fork":false,"pushed_at":"2024-01-19T07:04:52.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-05T03:24:49.113Z","etag":null,"topics":["azure","docker","docker-compose","flask","python","tts"],"latest_commit_sha":null,"homepage":"","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/wengchaoxi.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}},"created_at":"2024-01-19T03:48:35.000Z","updated_at":"2024-03-10T05:09:37.000Z","dependencies_parsed_at":"2024-03-10T07:25:44.721Z","dependency_job_id":"51b33203-0f53-4395-b1db-8ec1256752d9","html_url":"https://github.com/wengchaoxi/tts-api","commit_stats":null,"previous_names":["wengchaoxi/tts-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wengchaoxi/tts-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wengchaoxi%2Ftts-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wengchaoxi%2Ftts-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wengchaoxi%2Ftts-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wengchaoxi%2Ftts-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wengchaoxi","download_url":"https://codeload.github.com/wengchaoxi/tts-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wengchaoxi%2Ftts-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31684525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"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","docker","docker-compose","flask","python","tts"],"created_at":"2024-10-23T14:40:31.207Z","updated_at":"2026-04-11T14:34:04.100Z","avatar_url":"https://github.com/wengchaoxi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tts-api\n\nTTS API Service\n\n## Azure TTS\n\nRename `.env.example` to `.env` and fill in `AZURE_SPEECH_KEY`\n\n```bash\ndocker compose build \u0026\u0026 docker compose up\n```\n\n```python\nimport requests, base64, json\n\ntext = \"你好，世界\"\nvoice_name = 'zh-CN-XiaoxiaoNeural'\n\ntmp = requests.post('http://localhost:9000/v1/azure/', data={'text': text, 'voice_name': voice_name})\nres = json.loads(tmp.text)\n\nb64_data = res.get('data')\ncost = res.get('cost')\n\nfile_name = 'result-%.3lfs.wav' % cost\nwith open(file_name, 'wb') as f:\n    f.write(base64.b64decode(b64_data))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwengchaoxi%2Ftts-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwengchaoxi%2Ftts-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwengchaoxi%2Ftts-api/lists"}