Interface SynthesizeSpeechRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SynthesizeSpeechRequest
,SynthesizeSpeechRequest.Builder
public interface SynthesizeSpeechRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AudioConfig
getAudioConfig()
Required.AudioConfigOrBuilder
getAudioConfigOrBuilder()
Required.SynthesizeSpeechRequest.TimepointType
getEnableTimePointing(int index)
Whether and what timepoints are returned in the response.int
getEnableTimePointingCount()
Whether and what timepoints are returned in the response.List<SynthesizeSpeechRequest.TimepointType>
getEnableTimePointingList()
Whether and what timepoints are returned in the response.int
getEnableTimePointingValue(int index)
Whether and what timepoints are returned in the response.List<Integer>
getEnableTimePointingValueList()
Whether and what timepoints are returned in the response.SynthesisInput
getInput()
Required.SynthesisInputOrBuilder
getInputOrBuilder()
Required.VoiceSelectionParams
getVoice()
Required.VoiceSelectionParamsOrBuilder
getVoiceOrBuilder()
Required.boolean
hasAudioConfig()
Required.boolean
hasInput()
Required.boolean
hasVoice()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasInput
boolean hasInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- Whether the input field is set.
-
getInput
SynthesisInput getInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The input.
-
getInputOrBuilder
SynthesisInputOrBuilder getInputOrBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
-
hasVoice
boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- Whether the voice field is set.
-
getVoice
VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The voice.
-
getVoiceOrBuilder
VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
-
hasAudioConfig
boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- Whether the audioConfig field is set.
-
getAudioConfig
AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The audioConfig.
-
getAudioConfigOrBuilder
AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
-
getEnableTimePointingList
List<SynthesizeSpeechRequest.TimepointType> getEnableTimePointingList()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Returns:
- A list containing the enableTimePointing.
-
getEnableTimePointingCount
int getEnableTimePointingCount()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Returns:
- The count of enableTimePointing.
-
getEnableTimePointing
SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Parameters:
index
- The index of the element to return.- Returns:
- The enableTimePointing at the given index.
-
getEnableTimePointingValueList
List<Integer> getEnableTimePointingValueList()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Returns:
- A list containing the enum numeric values on the wire for enableTimePointing.
-
getEnableTimePointingValue
int getEnableTimePointingValue(int index)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of enableTimePointing at the given index.
-
-