Android: remove QtTextToSpeech compile warnings


This patch removes two deprecation warnings from developer
build from methods that were deprecated in API level 21.
Current minimum API level is 28.
- UtteranceProgressListener void onError(String utteranceId)
by annotation and supressing warning
- getLanguage() by replacing it with getVoice().getLocale()

Fixes: QTBUG-144868
Change-Id: I971cb3d097d35a478c2e9507dc9856a08d6bebc8
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit1b15c1395e6aca2113b52878f05f658fe244ea7e
parent7e0e242dbfc07dbee01dfbd52e7d68008bf24d0f
authorRami Potinkara <rami.potinkara@qt.io>
committerRami Potinkara <rami.potinkara@qt.io>
commit timeThu, 12 Mar 2026 19:22:03 +0200