Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to enumerate voices in QTextToSpeech on Android

Unable to enumerate voices in QTextToSpeech on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 181 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VictorTee
    wrote on last edited by
    #1

    I'm trying to use QTextToSpeech and allow the user to select the Locale they want, but when I try to list them out by iterating over what availableLocales returns, it looks to be empty. The code looks something like this:

        this->m_speech=new QTextToSpeech();
    ...
        QList<QLocale> availableLocales=this->m_speech->availableLocales();
        QLocale locale(savedLocale);
        for (const auto &item : availableLocales)
        {
            this->log(item.name()+"\n");
            this->ui->localeComboBox->addItem(item.name());
        }
    

    When I check the current locale with this->m_speech->locale().name(), it's set to en_US. Is there some quirk with Android that I'm not aware of?

    Using QT 6.10.0

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved