{"id":24915531,"url":"https://github.com/hasscc/hass-edge-tts","last_synced_at":"2025-04-06T13:08:59.107Z","repository":{"id":36989953,"uuid":"410867791","full_name":"hasscc/hass-edge-tts","owner":"hasscc","description":"🗣️ Microsoft Edge TTS for Home Assistant, no need for app_key","archived":false,"fork":false,"pushed_at":"2024-05-22T21:58:34.000Z","size":35,"stargazers_count":306,"open_issues_count":10,"forks_count":55,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-05-22T22:47:02.363Z","etag":null,"topics":["custom-component","home-assistant","tts"],"latest_commit_sha":null,"homepage":"","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/hasscc.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":"2021-09-27T12:04:49.000Z","updated_at":"2024-05-22T21:58:35.000Z","dependencies_parsed_at":"2023-02-18T06:10:14.985Z","dependency_job_id":"82d0fd76-0a45-4c95-ae35-56af1fbcf950","html_url":"https://github.com/hasscc/hass-edge-tts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Fhass-edge-tts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Fhass-edge-tts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Fhass-edge-tts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Fhass-edge-tts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasscc","download_url":"https://codeload.github.com/hasscc/hass-edge-tts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"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":["custom-component","home-assistant","tts"],"created_at":"2025-02-02T07:18:01.003Z","updated_at":"2025-04-06T13:08:59.079Z","avatar_url":"https://github.com/hasscc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Edge TTS for Home Assistant\n\nThis component is based on the TTS service of Microsoft Edge browser, no need to apply for `app_key`.\n\n\n## Install\n\n\u003e Download and copy `custom_components/edge_tts` folder to `custom_components` folder in your HomeAssistant config folder\n\n```shell\n# Auto install via terminal shell\nwget -O - https://hacs.vip/get | DOMAIN=edge_tts REPO_PATH=hasscc/hass-edge-tts ARCHIVE_TAG=main bash -\n```\n\n\n## Config\n\n```yaml\n# configuration.yaml\ntts:\n  - platform: edge_tts\n    language: zh-CN # Default language or voice (Optional)\n```\n\n#### Configure default options:\n```yaml\ntts:\n  - platform: edge_tts\n    service_name: xiaomo_say # service: tts.xiaomo_say\n    language: zh-CN-XiaoxiaoNeural\n    volume: +10%\n```\n\n#### Supported languages\n\n- [speaking languages](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#adjust-speaking-languages)\n- [list of voices](https://github.com/hasscc/hass-edge-tts/blob/29587ecf05ecd9d40269e13d7bd37f7f7f70c874/custom_components/edge_tts/tts.py#L14-L314)\n\n\n## Using\n\n- [![Call service: tts.edge_tts_say](https://my.home-assistant.io/badges/developer_call_service.svg)](https://my.home-assistant.io/redirect/developer_call_service/?service=tts.edge_tts_say)\n- [REST API: /api/tts_get_url](https://www.home-assistant.io/integrations/tts#post-apitts_get_url)\n\n### Options\n\n- [`voice`](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#use-multiple-voices)\n- [`pitch` / `rate` / `volume`](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#adjust-prosody)\n\n\u003e `style` / `styledegree` / `role` / `contour` are no longer supported ([#8](https://github.com/hasscc/hass-edge-tts/issues/8)).\n\n### Basic example\n\n```yaml\nservice: tts.edge_tts_say\ndata:\n  entity_id: media_player.your_player_entity_id\n  message: Hello\n  language: zh-CN-XiaoyiNeural # Language or voice (Optional)\n\n```\n\n### Full example\n\n```yaml\nservice: tts.edge_tts_say\ndata:\n  entity_id: media_player.your_player_entity_id\n  message: 吃葡萄不吐葡萄皮，不吃葡萄倒吐葡萄皮\n  language: zh-CN\n  cache: true\n  options:\n    voice: zh-CN-XiaoyiNeural\n    rate: +0%\n    volume: +10%\n    \n```\n\n### Curl example\n\n```shell\ncurl -X POST -H \"Authorization: Bearer \u003cACCESS TOKEN\u003e\" \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"platform\": \"edge_tts\", \"message\": \"欢迎回家\", \"language\": \"zh-CN-XiaoyiNeural\", \"cache\": true, \"options\": {\"volume\": \"+10%\"}}' \\\n     http://home-assistant.local:8123/api/tts_get_url\n```\n\n\n## Thanks\n\n- https://github.com/rany2/edge-tts\n- https://github.com/ag2s20150909/TTS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasscc%2Fhass-edge-tts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasscc%2Fhass-edge-tts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasscc%2Fhass-edge-tts/lists"}