Interface SynthesizeSpeechConfigOrBuilder (0.1.0)

public interface SynthesizeSpeechConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSpeakingRate()

public abstract double getSpeakingRate()

Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will return an error.

double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The speakingRate.

getVoice()

public abstract String getVoice()

Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code.

For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.

string voice = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The voice.

getVoiceBytes()

public abstract ByteString getVoiceBytes()

Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code.

For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.

string voice = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for voice.