hass edge tts
1.0.0
이 구성 요소는 Microsoft Edge 브라우저의 TTS 서비스를 기반으로하며 app_key 신청할 필요가 없습니다.
HomeAssistant 구성 폴더의
custom_components폴더에custom_components/edge_tts폴더를 다운로드하여 복사하십시오.
# Auto install via terminal shell
wget -O - https://hacs.vip/get | DOMAIN=edge_tts REPO_PATH=hasscc/hass-edge-tts ARCHIVE_TAG=main bash - # configuration.yaml
tts :
- platform : edge_tts
language : zh-CN # Default language or voice (Optional) tts :
- platform : edge_tts
service_name : xiaomo_say # service: tts.xiaomo_say
language : zh-CN-XiaoxiaoNeural
volume : +10% voicepitch / rate / volume
style/styledegree/role/contour더 이상 지원되지 않습니다 (#8).
service : tts.edge_tts_say
data :
entity_id : media_player.your_player_entity_id
message : Hello
language : zh-CN-XiaoyiNeural # Language or voice (Optional)
service : tts.edge_tts_say
data :
entity_id : media_player.your_player_entity_id
message : 吃葡萄不吐葡萄皮,不吃葡萄倒吐葡萄皮
language : zh-CN
cache : true
options :
voice : zh-CN-XiaoyiNeural
rate : +0%
volume : +10%
curl -X POST -H " Authorization: Bearer <ACCESS TOKEN> "
-H " Content-Type: application/json "
-d ' {"platform": "edge_tts", "message": "欢迎回家", "language": "zh-CN-XiaoyiNeural", "cache": true, "options": {"volume": "+10%"}} '
http://home-assistant.local:8123/api/tts_get_url