mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Dify TTS Invoke Error: missing required ‘voice’ field when calling Xinference‑deployed ChatTTS #414
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bottleofwater11 on GitHub (Jul 1, 2025).
Self Checks
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
xinference launch ChatTTS local test successfully
import requests
url = "http://223.111.149.152:9997/v1/audio/speech"
headers = {
"Content-Type": "application/json"
}
data = {
"model": "ChatTTS", # 必须
"input": "你好,这是一段openai风格的TTS接口测试。", # 必须
"voice": "default", # 可选,可用 "default", "alloy", "echo", "fable" 等
"response_format": "wav" # 可选,"wav" 或 "mp3"
}
response = requests.post(url, headers=headers, json=data)
with open("output22.wav", "wb") as f:
f.write(response.content)
print("音频已保存到 output22.wav")
output is right,use dify worklow error
can dify support Real-time conversation?my device is huawei 910b and 310P
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@hjlarry commented on GitHub (Jul 2, 2025):
you need to choose the voice when using tools in a workflow
@bottleofwater11 commented on GitHub (Jul 2, 2025):
but i can't click here to choose any type of voice, is it the same as #15025
@hjlarry commented on GitHub (Jul 2, 2025):
no, it's different error, the voices should response from the XINFERENCE, is your tongyi can choose voice?
@bottleofwater11 commented on GitHub (Jul 2, 2025):
yes, tongyi is ali'api but xinference'ChatTTS is local launch
@bottleofwater11 commented on GitHub (Jul 2, 2025):