tts is not enable #7097

Closed
opened 2026-02-21 18:18:54 -05:00 by yindo · 10 comments
Owner

Originally created by @acshmily on GitHub (Dec 7, 2024).

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

0.13.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I deployed Dify based on the Helm of Douban. When using the workflow preview function and turning on the "Text-to-Speech" feature, a prompt saying "TTS is not enable" popped up. Could you please tell me how to solve this problem? Besides, is it possible to specify an open-source TTS large model by myself?

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @acshmily on GitHub (Dec 7, 2024). ### 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 0.13.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I deployed Dify based on the Helm of Douban. When using the workflow preview function and turning on the "Text-to-Speech" feature, a prompt saying "TTS is not enable" popped up. Could you please tell me how to solve this problem? Besides, is it possible to specify an open-source TTS large model by myself? ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugstt & tts labels 2026-02-21 18:18:54 -05:00
yindo closed this issue 2026-02-21 18:18:54 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 7, 2024):

Hey @acshmily! 👋 I'm here to help you out with bugs, questions, and even becoming a contributor. Let's tackle this issue together!

The "TTS is not enabled" error typically indicates that the Text-to-Speech (TTS) feature is not activated in your application's configuration. To resolve this, you need to ensure that the TTS feature is enabled in your configuration file. Here's how you can do it:

  1. Check your application's configuration file and look for the text_to_speech section.

  2. Ensure that the enabled key is set to True. Your configuration should look something like this:

    config = {
        "text_to_speech": {
            "enabled": True,
            "voice": "default_voice",  # Optional: specify the voice
            "language": "en"           # Optional: specify the language
        }
    }
    

Additionally, for the TTS feature to work, you need to select a TTS service and provide an API key. Available options include "OpenAI TTS" and "Sagemaker TTS". If you're using OpenAI TTS, ensure that FFmpeg is installed on your system [1][2].

Regarding specifying an open-source TTS model, Dify currently supports specific TTS services, and you would need to check if the platform allows integration with other models or services.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 7, 2024): <!-- Greeting --> Hey @acshmily! 👋 I'm here to help you out with bugs, questions, and even becoming a contributor. Let's tackle this issue together! <!-- Answer --> The "TTS is not enabled" error typically indicates that the Text-to-Speech (TTS) feature is not activated in your application's configuration. To resolve this, you need to ensure that the TTS feature is enabled in your configuration file. Here's how you can do it: 1. Check your application's configuration file and look for the `text_to_speech` section. 2. Ensure that the `enabled` key is set to `True`. Your configuration should look something like this: ```python config = { "text_to_speech": { "enabled": True, "voice": "default_voice", # Optional: specify the voice "language": "en" # Optional: specify the language } } ``` Additionally, for the TTS feature to work, you need to select a TTS service and provide an API key. Available options include "OpenAI TTS" and "Sagemaker TTS". If you're using OpenAI TTS, ensure that `FFmpeg` is installed on your system <sup>[[1]](https://github.com/langgenius/dify/discussions/7656)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/builtin/podcast_generator/podcast_generator.yaml)</sup>. Regarding specifying an open-source TTS model, Dify currently supports specific TTS services, and you would need to check if the platform allows integration with other models or services. <!-- 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/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/6e56b830-6aee-478b-a1b3-a90c01ff72eb?feedback_type=other)</sup>
Author
Owner

@acshmily commented on GitHub (Dec 7, 2024):

I'm using Helm for deployment. Could you please tell me where to modify the following configuration?

@acshmily commented on GitHub (Dec 7, 2024): I'm using Helm for deployment. Could you please tell me where to modify the following configuration?
Author
Owner

@dosubot[bot] commented on GitHub (Dec 7, 2024):

To enable the Text-to-Speech (TTS) feature in a Helm-deployed Dify instance, you need to modify the Helm chart configuration files. Specifically, you should set the enabled property to true within the textToSpeechConfig state. Here's an example of how you can configure it:

const [textToSpeechConfig, setTextToSpeechConfig] = useState<TextToSpeechConfig>({
    enabled: true,
    voice: 'desired_voice',  // Specify the desired voice
    language: 'desired_language',  // Specify the desired language
})

Make sure to replace 'desired_voice' and 'desired_language' with the appropriate values for your setup [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 7, 2024): <!-- Answer --> To enable the Text-to-Speech (TTS) feature in a Helm-deployed Dify instance, you need to modify the Helm chart configuration files. Specifically, you should set the `enabled` property to `true` within the `textToSpeechConfig` state. Here's an example of how you can configure it: ```tsx const [textToSpeechConfig, setTextToSpeechConfig] = useState<TextToSpeechConfig>({ enabled: true, voice: 'desired_voice', // Specify the desired voice language: 'desired_language', // Specify the desired language }) ``` Make sure to replace `'desired_voice'` and `'desired_language'` with the appropriate values for your setup <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/app/configuration/index.tsx)</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/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/ef17cc8b-b198-4e03-9803-63200395cdfb?feedback_type=other)</sup>
Author
Owner

@acshmily commented on GitHub (Dec 7, 2024):

@dosu I haven't found the place you suggested.

@acshmily commented on GitHub (Dec 7, 2024): @dosu I haven't found the place you suggested.
Author
Owner

@dosubot[bot] commented on GitHub (Dec 7, 2024):

To enable the Text-to-Speech feature in a Helm-deployed Dify instance, you should look into the following files:

  1. Configuration File: The configuration for enabling Text-to-Speech can be found in the api/core/tools/provider/builtin/podcast_generator/podcast_generator.yaml file. This is where you can set the necessary environment variables and secrets, such as the TTS service and API key [1].

  2. Frontend Configuration: You can also configure the Text-to-Speech feature in the frontend by modifying the web/app/components/app/configuration/index.tsx file. Here, you can set the textToSpeechConfig state to enable the feature and specify options such as voice and language [2].

Ensure that you have set the enabled property to true and provided the necessary API key and service selection in these configurations. If you still encounter issues, double-check that all required dependencies, like FFmpeg, are installed on your system.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 7, 2024): <!-- Answer --> To enable the Text-to-Speech feature in a Helm-deployed Dify instance, you should look into the following files: 1. **Configuration File**: The configuration for enabling Text-to-Speech can be found in the `api/core/tools/provider/builtin/podcast_generator/podcast_generator.yaml` file. This is where you can set the necessary environment variables and secrets, such as the TTS service and API key <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/builtin/podcast_generator/podcast_generator.yaml)</sup>. 2. **Frontend Configuration**: You can also configure the Text-to-Speech feature in the frontend by modifying the `web/app/components/app/configuration/index.tsx` file. Here, you can set the `textToSpeechConfig` state to enable the feature and specify options such as voice and language <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/app/configuration/index.tsx)</sup>. Ensure that you have set the `enabled` property to `true` and provided the necessary API key and service selection in these configurations. If you still encounter issues, double-check that all required dependencies, like FFmpeg, are installed on your system. <!-- 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/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/b8c981d3-5904-40ac-9dbf-5b2bedf463c0?feedback_type=other)</sup>
Author
Owner

@acshmily commented on GitHub (Dec 7, 2024):

Does Dify use OpenAI's TTS by default? And is it possible to replace it on one's own?

@acshmily commented on GitHub (Dec 7, 2024): Does Dify use OpenAI's TTS by default? And is it possible to replace it on one's own?
Author
Owner

@crazywoola commented on GitHub (Dec 7, 2024):

For questions please use discussion instead.

@crazywoola commented on GitHub (Dec 7, 2024): For questions please use discussion instead.
Author
Owner

@yu921 commented on GitHub (Dec 15, 2024):

docker compose 部署的Dify,再哪个文件中启动TTS?

@yu921 commented on GitHub (Dec 15, 2024): docker compose 部署的Dify,再哪个文件中启动TTS?
Author
Owner

@DomoMKT commented on GitHub (Feb 3, 2025):

you can actually find a free text-to-speech solution with low latency and high-quality speech at www.nemesyslabs.com that doesn't require an account or model lists, just pure conversion power!

@DomoMKT commented on GitHub (Feb 3, 2025): you can actually find a free text-to-speech solution with low latency and high-quality speech at [www.nemesyslabs.com](https://www.nemesyslabs.com) that doesn't require an account or model lists, just pure conversion power!
Author
Owner

@kfchandsome commented on GitHub (Mar 13, 2025):

docker compose 部署的Dify,再哪个文件中启动TTS?

请问你解决问题了吗

@kfchandsome commented on GitHub (Mar 13, 2025): > docker compose 部署的Dify,再哪个文件中启动TTS? 请问你解决问题了吗
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7097