Unable to enumerate voices in QTextToSpeech on Android
-
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