/hass-baidu-fanyi-tts

🗣️ Baidu Fanyi text-to-speech for HomeAssistant

Primary LanguagePythonApache License 2.0Apache-2.0

Baidu Fanyi text-to-speech for HomeAssistant

本插件基于百度翻译的TTS服务,无需在百度语音开放平台申请appid等。

安装

下载并复制custom_components/baidu_fanyi_tts文件夹到HomeAssistant根目录下的custom_components文件夹

# Auto install via terminal shell
wget -q -O - https://cdn.jsdelivr.net/gh/al-one/hass-xiaomi-miot/install.sh | DOMAIN=baidu_fanyi_tts REPO_PATH=hasscc/hass-baidu-fanyi-tts bash -

配置

# configuration.yaml
tts:
  - platform: baidu_fanyi_tts
    language: zh # 默认语言(可选)
    speed: 5     # 默认语速(可选)

支持的语言

- `zh`  🇨🇳 汉语
- `cte` 🇨🇳 粤语
- `en`  🇬🇧 英语
- `ara` 🇸🇦 阿拉伯语
- `de`  🇩🇪 德语
- `fra` 🇫🇷 法语
- `kor` 🇰🇷 韩语
- `pt`  🇵🇹 葡萄牙语
- `ru`  🇷🇺 俄语
- `spa` 🇪🇸 西班牙语
- `th`  🇹🇭 泰语