getSpeechRate()? (或如何分辨什么TTS率目前定为) [英] getSpeechRate()? (or how to tell what rate TTS is currently set at)

查看:512
本文介绍了getSpeechRate()? (或如何分辨什么TTS率目前定为)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TextToSpeech 有一种方法来设置语速: <一href="http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#setSpeechRate%28float%29"相对=nofollow> setSpeechRate()。但它不具有查询当前速度的相对方法

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?

推荐答案

您可能会得到默认的TTS语音率

You may get default TTS speech rate

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

这篇关于getSpeechRate()? (或如何分辨什么TTS率目前定为)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆