Dify TTS Invoke Error: missing required ‘voice’ field when calling Xinference‑deployed ChatTTS #414

Closed
opened 2026-02-16 10:19:21 -05:00 by yindo · 5 comments
Owner

Originally created by @bottleofwater11 on GitHub (Jul 1, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

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

Image

can dify support Real-time conversation?my device is huawei 910b and 310P

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @bottleofwater11 on GitHub (Jul 1, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 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 ![Image](https://github.com/user-attachments/assets/09276d6b-8151-434d-9089-a064ec754c7a) can dify support Real-time conversation?my device is huawei 910b and 310P ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:19:21 -05:00
Author
Owner

@hjlarry commented on GitHub (Jul 2, 2025):

Image
you need to choose the voice when using tools in a workflow

@hjlarry commented on GitHub (Jul 2, 2025): ![Image](https://github.com/user-attachments/assets/93c3eb3d-ed12-4b53-a868-71c4d338f847) you need to choose the voice when using tools in a workflow
Author
Owner

@bottleofwater11 commented on GitHub (Jul 2, 2025):

Image you need to choose the voice when using tools in a workflow

but i can't click here to choose any type of voice, is it the same as #15025

@bottleofwater11 commented on GitHub (Jul 2, 2025): > ![Image](https://github.com/user-attachments/assets/93c3eb3d-ed12-4b53-a868-71c4d338f847) you need to choose the voice when using tools in a workflow but i can't click here to choose any type of voice, is it the same as [#15025](https://github.com/langgenius/dify-plugin-daemon/pull/74)
Author
Owner

@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?

@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?
Author
Owner

@bottleofwater11 commented on GitHub (Jul 2, 2025):

no, it's different error, the voices should response from the XINFERENCE, is your tongyi can choose voice?

yes, tongyi is ali'api but xinference'ChatTTS is local launch

@bottleofwater11 commented on GitHub (Jul 2, 2025): > no, it's different error, the voices should response from the XINFERENCE, is your tongyi can choose voice? yes, tongyi is ali'api but xinference'ChatTTS is local launch
Author
Owner

@bottleofwater11 commented on GitHub (Jul 2, 2025):

no, it's different error, the voices should response from the XINFERENCE, is your tongyi can choose voice?

Image

Image

@bottleofwater11 commented on GitHub (Jul 2, 2025): > no, it's different error, the voices should response from the XINFERENCE, is your tongyi can choose voice? ![Image](https://github.com/user-attachments/assets/3c7d84c0-d7d5-4c71-b0f7-299feadd1265) ![Image](https://github.com/user-attachments/assets/58d82a76-82b5-4378-9bcb-d92ca7016869)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#414