Interface StreamingTranslateSpeechRequestOrBuilder (0.59.0)

public interface StreamingTranslateSpeechRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioContent()

public abstract ByteString getAudioContent()

The audio data to be translated. Sequential chunks of audio data are sent in sequential StreamingTranslateSpeechRequest messages. The first StreamingTranslateSpeechRequest message must not contain audio_content data and all subsequent StreamingTranslateSpeechRequest messages must contain audio_content data. The audio bytes must be encoded as specified in StreamingTranslateSpeechConfig. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).

bytes audio_content = 2;

Returns
Type Description
ByteString

The audioContent.

getStreamingConfig()

public abstract StreamingTranslateSpeechConfig getStreamingConfig()

Provides information to the recognizer that specifies how to process the request. The first StreamingTranslateSpeechRequest message must contain a streaming_config message.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;

Returns
Type Description
StreamingTranslateSpeechConfig

The streamingConfig.

getStreamingConfigOrBuilder()

public abstract StreamingTranslateSpeechConfigOrBuilder getStreamingConfigOrBuilder()

Provides information to the recognizer that specifies how to process the request. The first StreamingTranslateSpeechRequest message must contain a streaming_config message.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;

Returns
Type Description
StreamingTranslateSpeechConfigOrBuilder

getStreamingRequestCase()

public abstract StreamingTranslateSpeechRequest.StreamingRequestCase getStreamingRequestCase()
Returns
Type Description
StreamingTranslateSpeechRequest.StreamingRequestCase

hasAudioContent()

public abstract boolean hasAudioContent()

The audio data to be translated. Sequential chunks of audio data are sent in sequential StreamingTranslateSpeechRequest messages. The first StreamingTranslateSpeechRequest message must not contain audio_content data and all subsequent StreamingTranslateSpeechRequest messages must contain audio_content data. The audio bytes must be encoded as specified in StreamingTranslateSpeechConfig. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).

bytes audio_content = 2;

Returns
Type Description
boolean

Whether the audioContent field is set.

hasStreamingConfig()

public abstract boolean hasStreamingConfig()

Provides information to the recognizer that specifies how to process the request. The first StreamingTranslateSpeechRequest message must contain a streaming_config message.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;

Returns
Type Description
boolean

Whether the streamingConfig field is set.