Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133259

Support Mixed-Language Text Reading (SSML-like or Automatic Switching) in QTextToSpeech

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Speech
    • None

    Description

      Currently, QTextToSpeech does not provide a straightforward way to handle text that contains multiple languages in a single call. Developers need to manually split the text by language sections and then set the engine locale repeatedly for each segment. This approach can be cumbersome when dealing with code-mixed or multi-language text.

      It would be highly beneficial to have an API or mechanism—similar to SSML or dynamic language switching—that allows QTextToSpeech to handle multiple languages in a single invocation. This feature would streamline development for applications that need to seamlessly read out text containing more than one language.

      Example Use Case (AI Chatbot)
      Imagine an AI chatbot that receives messages from users in multiple languages, sometimes even mixing languages in a single response (for example, English and Japanese in one paragraph). When the chatbot’s reply includes multiple language segments, the developer currently has to split the text manually and set a different locale for each segment. A built-in feature that either reads language markup or automatically detects and switches languages would greatly simplify this workflow—especially in real-time or code-mixed chatbot scenarios.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            mikio mikio hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes