tts output bug report #12552

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

Originally created by @simplify123 on GitHub (Apr 4, 2025).

Image
Image
Image

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.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have used the hjlarry/audio plugin to convert the responses generated by the LLM into audio output. However, after running the workflow, I encountered the following error: Run failed: 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. The text-to-speech model deployed is Voice of CosyVoice2-0.5B (langgenius/xinference/xinference). In the Dify interface, under the Text To Speech node, the select a voice dropdown menu is not clickable and there is no list of voices available. CosyVoice2-0.5B is running via Docker deployment of Xinference. How can I resolve this issue?

Run failed: 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

No response

Actual Behavior

No response

Originally created by @simplify123 on GitHub (Apr 4, 2025). ![Image](https://github.com/user-attachments/assets/fd999ce8-dfa8-4612-8d58-34467323c00d) ![Image](https://github.com/user-attachments/assets/0b4f0f43-381a-4b17-a2ed-abb6bd7e6279) ![Image](https://github.com/user-attachments/assets/32dd4a0c-e8ac-4dc3-b5e7-0328756991bd) ### 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.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have used the hjlarry/audio plugin to convert the responses generated by the LLM into audio output. However, after running the workflow, I encountered the following error: Run failed: 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. The text-to-speech model deployed is Voice of CosyVoice2-0.5B (langgenius/xinference/xinference). In the Dify interface, under the Text To Speech node, the select a voice dropdown menu is not clickable and there is no list of voices available. CosyVoice2-0.5B is running via Docker deployment of Xinference. How can I resolve this issue? `Run failed: 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 _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugstt & tts labels 2026-02-21 19:07:57 -05:00
yindo closed this issue 2026-02-21 19:07:57 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 4, 2025):

Hello @simplify123! I'm Dosu, your friendly bot here to help you with bugs, questions, and becoming a contributor while you wait for a human maintainer. Let's tackle that TTS issue together! 🚀

There is a similar closed issue that might help you resolve the problem. The solution suggested was to ensure that the voice parameter is correctly handled and passed through the relevant functions and API calls. You may need to modify the code to include the voice parameter where necessary, such as updating the XinferenceModelExtraParameter class and related methods to include and handle the voice parameter. Additionally, ensure that your Dify Docker deployment is correctly configured to access the Xinference endpoint by using the machine's IP address instead of localhost [1].

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

@dosubot[bot] commented on GitHub (Apr 4, 2025): <!-- Greeting --> Hello @simplify123! I'm [Dosu](https://dosu.dev), your friendly bot here to help you with bugs, questions, and becoming a contributor while you wait for a human maintainer. Let's tackle that TTS issue together! 🚀 <!-- Answer --> There is a similar closed issue that might help you resolve the problem. The solution suggested was to ensure that the `voice` parameter is correctly handled and passed through the relevant functions and API calls. You may need to modify the code to include the `voice` parameter where necessary, such as updating the `XinferenceModelExtraParameter` class and related methods to include and handle the `voice` parameter. Additionally, ensure that your Dify Docker deployment is correctly configured to access the Xinference endpoint by using the machine's IP address instead of `localhost` <sup>[[1]](https://github.com/langgenius/dify/issues/7003)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/890717c5-e707-4bf7-ba14-e23ec94f9e93?feedback_type=other)</sup>
Author
Owner

@haiker2011 commented on GitHub (Apr 8, 2025):

same issue

@haiker2011 commented on GitHub (Apr 8, 2025): same issue
Author
Owner

@fanhuafeng commented on GitHub (Apr 10, 2025):

I used 1.2.0 version,same issue

@fanhuafeng commented on GitHub (Apr 10, 2025): I used 1.2.0 version,same issue
Author
Owner

@91geek commented on GitHub (Apr 15, 2025):

same issue

@91geek commented on GitHub (Apr 15, 2025): same issue
Author
Owner

@Fucheng-Wu commented on GitHub (Jun 12, 2025):

same issue,请问解决了吗

@Fucheng-Wu commented on GitHub (Jun 12, 2025): same issue,请问解决了吗
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12552