Interface SynthesizeSpeechResponseOrBuilder (2.46.0)

public interface SynthesizeSpeechResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioConfig()

public abstract AudioConfig getAudioConfig()

The audio metadata of audio_content.

.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;

Returns
Type Description
AudioConfig

The audioConfig.

getAudioConfigOrBuilder()

public abstract AudioConfigOrBuilder getAudioConfigOrBuilder()

The audio metadata of audio_content.

.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;

Returns
Type Description
AudioConfigOrBuilder

getAudioContent()

public abstract ByteString getAudioContent()

The audio data bytes encoded as specified in the request, including the header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS). For LINEAR16 audio, we include the WAV header. Note: as with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

bytes audio_content = 1;

Returns
Type Description
ByteString

The audioContent.

getTimepoints(int index)

public abstract Timepoint getTimepoints(int index)

A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;

Parameter
Name Description
index int
Returns
Type Description
Timepoint

getTimepointsCount()

public abstract int getTimepointsCount()

A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;

Returns
Type Description
int

getTimepointsList()

public abstract List<Timepoint> getTimepointsList()

A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;

Returns
Type Description
List<Timepoint>

getTimepointsOrBuilder(int index)

public abstract TimepointOrBuilder getTimepointsOrBuilder(int index)

A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;

Parameter
Name Description
index int
Returns
Type Description
TimepointOrBuilder

getTimepointsOrBuilderList()

public abstract List<? extends TimepointOrBuilder> getTimepointsOrBuilderList()

A link between a position in the original request input and a corresponding time in the output audio. It's only supported via <mark> of SSML input.

repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;

Returns
Type Description
List<? extends com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>

hasAudioConfig()

public abstract boolean hasAudioConfig()

The audio metadata of audio_content.

.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4;

Returns
Type Description
boolean

Whether the audioConfig field is set.