dify icon indicating copy to clipboard operation
dify copied to clipboard

The text-to-speech model "Tongyi Qianwen" is not available.

Open mwnu opened this issue 1 year ago • 2 comments

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

mwnu avatar Apr 21 '24 22:04 mwnu

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.py and tts-1.yaml for model configuration and support.
  • audio.py for 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


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.

dosubot[bot] avatar Apr 21 '24 22:04 dosubot[bot]

Can you paste a screenshot of the tts support in debug mode.

image

crazywoola avatar Apr 22 '24 04:04 crazywoola