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>