TextToSpeech.SetSpeechRate(Single) Method

Definition

Sets the speech rate.

[Android.Runtime.Register("setSpeechRate", "(F)I", "GetSetSpeechRate_FHandler")]
public virtual Android.Speech.Tts.OperationResult SetSpeechRate (float speechRate);
[<Android.Runtime.Register("setSpeechRate", "(F)I", "GetSetSpeechRate_FHandler")>]
abstract member SetSpeechRate : single -> Android.Speech.Tts.OperationResult
override this.SetSpeechRate : single -> Android.Speech.Tts.OperationResult

Parameters

speechRate
Single

Speech rate. 1.0 is the normal speech rate, lower values slow down the speech (0.5 is half the normal speech rate), greater values accelerate it (2.0 is twice the normal speech rate).

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Sets the speech rate.

This has no effect on any pre-recorded speech.

Java documentation for android.speech.tts.TextToSpeech.setSpeechRate(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to