Freigeben über


TextToSpeech.SetPitch(Single) Method

Definition

Sets the speech pitch for the TextToSpeech engine.

[Android.Runtime.Register("setPitch", "(F)I", "GetSetPitch_FHandler")]
public virtual Android.Speech.Tts.OperationResult SetPitch (float pitch);
[<Android.Runtime.Register("setPitch", "(F)I", "GetSetPitch_FHandler")>]
abstract member SetPitch : single -> Android.Speech.Tts.OperationResult
override this.SetPitch : single -> Android.Speech.Tts.OperationResult

Parameters

pitch
Single

Speech pitch. 1.0 is the normal pitch, lower values lower the tone of the synthesized voice, greater values increase it.

Returns

#ERROR or #SUCCESS.

Attributes

Remarks

Sets the speech pitch for the TextToSpeech engine.

This has no effect on any pre-recorded speech.

Java documentation for android.speech.tts.TextToSpeech.setPitch(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