The text-to-speech model "Tongyi Qianwen" is not available.
Self Checks
- [X] This is only for bug report, if you would like to ask a quesion, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] Pleas do not modify this template :) and fill in all the required fields.
Dify version
0.6.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
It can be set in the system or tried out in the application. However, if you click play during a conversation, an error will appear at the top of the page and in the log: "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
It seems the issue you're encountering with the "Tongyi Qianwen" text-to-speech model in Dify version 0.6.3 might be due to the model not being recognized or supported within this version of Dify, especially since it's not listed among the supported voices in the configuration. This could lead to the internal server error you're experiencing when attempting to use it in your self-hosted Docker setup.
To address this, first, ensure that the model name "Tongyi Qianwen" is correct and that you have the necessary permissions and configurations set up for it. Since the error suggests a potential misconfiguration or unsupported model, verifying the model's availability and correct naming within Dify is crucial.
For detailed error information, check the exception handling in the ChatMessageTextApi class and the logs for any specific error messages related to the "Tongyi Qianwen" model. This could provide more insight into why the server is unable to process your request.
If "Tongyi Qianwen" is indeed an unsupported model, you might need to look into updating Dify to a newer version that includes support for this model or explore alternative models that are supported by your current version.
For further troubleshooting, reviewing the following files might provide additional insights:
-
tts.pyandtts-1.yamlfor model configuration and support. -
audio.pyfor handling audio processing and file management.
If the problem persists, providing more details about the error message or logs could help in identifying a more specific solution.
Details
Sources
- api/core/model_runtime/model_providers/tongyi/tts/tts.py
- api/core/model_runtime/model_providers/tongyi/tts/tts-1.yaml
- api/controllers/console/app/audio.py
About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
Can you paste a screenshot of the tts support in debug mode.