Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getSpeechRate()? (or how to tell what rate TTS is currently set at)

TextToSpeech has a way to set the speech rate: setSpeechRate(). But it doesn't have an opposite method of querying the current speed.

Is there a way to query the system for that value?

like image 481
an00b Avatar asked Nov 13 '22 00:11

an00b


1 Answers

You may get default TTS speech rate

Settings.Secure.getInt(getContentResolver(), Settings.Secure.TTS_DEFAULT_RATE, 100) / 100f;
like image 165
sergey.n Avatar answered Dec 20 '22 22:12

sergey.n