In Dify version 0.15.3, the TTS feature causes content outside the main text to be read aloud #8523

Closed
opened 2026-02-21 18:26:08 -05:00 by yindo · 4 comments
Owner

Originally created by @mfjiang on GitHub (Feb 22, 2025).

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

In Dify version 0.15.3, the TTS feature causes content outside the main text to be read aloud.

✔️ Expected Behavior

TTS feature will only play the main text content, excluding the content within < think > tags and metadata.

Actual Behavior

No response

Originally created by @mfjiang on GitHub (Feb 22, 2025). ### 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.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce In Dify version 0.15.3, the TTS feature causes content outside the main text to be read aloud. ### ✔️ Expected Behavior TTS feature will only play the main text content, excluding the content within < think > tags and metadata. ### ❌ Actual Behavior _No response_
yindo added the 🌚 invalidstt & tts labels 2026-02-21 18:26:08 -05:00
yindo closed this issue 2026-02-21 18:26:08 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 22, 2025):

It seems that in Dify version 0.15.3, there is an issue with the TTS feature where it reads content outside the main text, including content within <think> tags and metadata. This behavior is not expected, as the TTS feature should only read the main text content. Unfortunately, I couldn't find specific information on how the TTS feature handles content within <think> tags and metadata in the current version. It might be helpful to check if there are any updates or patches available that address this issue.

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 (Feb 22, 2025): <!-- Answer --> It seems that in Dify version 0.15.3, there is an issue with the TTS feature where it reads content outside the main text, including content within `<think>` tags and metadata. This behavior is not expected, as the TTS feature should only read the main text content. Unfortunately, I couldn't find specific information on how the TTS feature handles content within `<think>` tags and metadata in the current version. It might be helpful to check if there are any updates or patches available that address this issue. <!-- 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/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5b49e635-816a-4018-bf50-3f7d2e6de231?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 22, 2025):

Do you have the raw content of the response?

@crazywoola commented on GitHub (Feb 22, 2025): Do you have the raw content of the response?
Author
Owner

@mfjiang commented on GitHub (Feb 22, 2025):

Do you have the raw content of the response?

The reply content is very pure, without any unexpected special characters.

@mfjiang commented on GitHub (Feb 22, 2025): > Do you have the raw content of the response? The reply content is very pure, without any unexpected special characters.
Author
Owner

@crazywoola commented on GitHub (Feb 23, 2025):

TTS feature will only play the main text content, excluding the content within < think > tags and metadata.

Currently, the model provider return the output contains reasoning content and response together, and wrap them in the <think.> tag. This is an expected behavior. So this should not be a bug report. It should be an enhancement instead. We will refine this part later when the providers reach an agreement on their reasoning content standard.

@crazywoola commented on GitHub (Feb 23, 2025): > TTS feature will only play the main text content, excluding the content within < think > tags and metadata. Currently, the model provider return the output contains reasoning content and response together, and wrap them in the `<think.>` tag. This is an expected behavior. So this should not be a bug report. It should be an enhancement instead. We will refine this part later when the providers reach an agreement on their reasoning content standard.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8523