mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
speech-to-text error #237
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 @chenhui-cyber on GitHub (Apr 28, 2025).
Self Checks
Dify version
1.3.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Dify connects to the ChatTTS deployed in Xorbits Inference, and uses the tool Text To Speech to prompt the following error:
plugin daemon: {"message":"Key: 'InvokePluginRequest[github.com/langgenius/dify-plugin-daemon/pkg/entities/requests.RequestInvokeTTS].Data.InvokeTTSSchema.Voice' Error:Field validation for 'Voice' failed on the 'required' tag","error_type":"PluginDaemonBadRequestError","args":null}, code: -400
✔️ Expected Behavior
how to resolve?
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Apr 29, 2025):
Hello @chenhui-cyber! I'm Dosu, your friendly bot here to help you with bugs, questions, and becoming a contributor. While you're waiting for a human maintainer, feel free to share more details about the issue you're facing!
I found some relevant information that might help you resolve the issue you're facing with the Text To Speech functionality in Dify.
The error
PluginDaemonBadRequestErrorindicates that the 'Voice' field in the 'InvokeTTSSchema' is missing or not provided, and it is required for the Text To Speech functionality. To resolve this issue, ensure that the 'Voice' field is included and correctly specified in your request to the Text To Speech plugin. The 'Voice' field is used for configuring voice settings, such as selecting the voice and setting the language [1].Additionally, there is a similar closed issue where the suggested solution was to ensure that the
voiceparameter is correctly handled and passed through the relevant functions and API calls. You may need to modify the code to include thevoiceparameter where necessary, such as updating theXinferenceModelExtraParameterclass and related methods to include and handle thevoiceparameter. Also, ensure that your Dify Docker deployment is correctly configured to access the Xinference endpoint by using the machine's IP address instead oflocalhost[2].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@yarcowang commented on GitHub (Jun 1, 2025):
dify-plugin-daemon 项目中,去掉voice字段的required规则 似乎就可以了~
ChatTTS有默认voice, dify webui上也没看到那个字段是必选的。

不过语音效果中,输入的文本可能带思考过程,比如qwen 会输出
<think>...</think>, 在发送给TTS也会被当成需要转换成语音的。也许要在这里截断发送?
@FeyaM commented on GitHub (Jun 11, 2025):
但是TTS应该允许选择音色、或者传入克隆原始语音。默认的话就没法使用了
@yarcowang commented on GitHub (Jun 11, 2025):
@FeyaM
不同TTS肯定不一样的。我这里是把required去掉变成optional, 又不是把这个字段去掉~而且dify界面也没标识必选,前后端有点不一致呢~
@robin12jbj commented on GitHub (Jun 17, 2025):
请问docker部署的如何修改呢?我的也是voice选择那一项无法打开
@yarcowang commented on GitHub (Jun 17, 2025):
@robin12jbj 修改https://github.com/langgenius/dify-plugin-daemon 对应代码, 自己build , deploy哦
@dosubot[bot] commented on GitHub (Aug 21, 2025):
Hi, @chenhui-cyber. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary
Next Steps
Thank you for your understanding and contribution!