ohos: Implement locales in qt speech engine


Populate available locales from the VoiceInfo.language field
returned by the TTS proxy's listVoices() method. Locales are
cached in QTextToSpeechEngineOhos::m_locales on engine
construction.

If available, the first locale from the list is used as the
initial m_currentLocale.

Filter availableVoices() by the current locale, as required by
QTextToSpeech::availableVoices(), which returns "the list of voices
available for the current locale". QTextToSpeech::findVoices() relies
on this: it iterates over the available locales and concatenates the
per-locale results.

Task-number: QTBUG-147179
Pick-to: 6.12
Change-Id: I98022805cead92e6d1764f619e300fc516f4ac90
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Zbigniew Chyla <zbigniew.chyla@qt.io>
commitd6f87e2e29b51861629abe756eb1e88f581198b1
parentce9f3a78fa319bb57917f920cfba8abb93bfa662
authorArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
committerArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
commit timeMon, 31 Aug 2026 06:58:01 +0000