Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

智谱TTS

免费快速的语音合成大模型API。 推荐配合 ai_conversation 集成使用。

安装后切换到配置页面,添加ZAI_USERIDZAI_TOKEN环境变量,可在audio.z.ai登录后,通过F12开发者工具在控制台执行localStorage['auth-storage']获取。

添加加载项仓库

API地址:

  • http://4e0de88e-zai-tts/v1
  • http://homeassistant.local:28823/v1

使用示例:

curl --request POST \
  --url http://homeassistant.local:28823/v1/audio/speech \
  --header 'Content-Type: application/json' \
  --data '{"voice":"system_001", "input":"hello", "speed":1.0, "volume":1}' \
  --output output.wav

AI Conversation 配置教程

  1. 安装 AI Conversation 集成

    点击这里 一键安装,安装完记得重启HA

  2. 添加 AI Conversation 服务,配置模型提供商

    服务商: 自定义; 接口: http://4e0de88e-zai-tts/v1; 密钥留空

  3. 添加TTS模型,模型ID随意,额外的请求参数参考:
    voice: system_002 # 支持克隆的音色ID
    speed: 1.5
    response_format: wav
  4. 配置语音助手

🎼 内置音色

system_001: 活泼女声 system_002: 温柔女声 system_003: 通用男声