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

前端 未结 2 703
青春惊慌失措
青春惊慌失措 2021-01-18 17:47

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

2条回答
  •  渐次进展
    2021-01-18 18:01

    You may get default TTS speech rate

    Settings.Secure.getInt(getContentResolver(), Settings.Secure.TTS_DEFAULT_RATE, 100) / 100f;
    

提交回复
热议问题