Interface StreamingRecognizeRequestOrBuilder (4.9.0)

public interface StreamingRecognizeRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioContent()

public abstract ByteString getAudioContent()

The audio data to be recognized. Sequential chunks of audio data are sent in sequential StreamingRecognizeRequest messages. The first StreamingRecognizeRequest message must not contain audio_content data and all subsequent StreamingRecognizeRequest messages must contain audio_content data. The audio bytes must be encoded as specified in RecognitionConfig. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See content limits.

bytes audio_content = 2;

Returns
TypeDescription
ByteString

The audioContent.

getStreamingConfig()

public abstract StreamingRecognitionConfig getStreamingConfig()

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

.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;

Returns
TypeDescription
StreamingRecognitionConfig

The streamingConfig.

getStreamingConfigOrBuilder()

public abstract StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()

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

.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;

Returns
TypeDescription
StreamingRecognitionConfigOrBuilder

getStreamingRequestCase()

public abstract StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
Returns
TypeDescription
StreamingRecognizeRequest.StreamingRequestCase

hasAudioContent()

public abstract boolean hasAudioContent()

The audio data to be recognized. Sequential chunks of audio data are sent in sequential StreamingRecognizeRequest messages. The first StreamingRecognizeRequest message must not contain audio_content data and all subsequent StreamingRecognizeRequest messages must contain audio_content data. The audio bytes must be encoded as specified in RecognitionConfig. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See content limits.

bytes audio_content = 2;

Returns
TypeDescription
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 StreamingRecognizeRequest message must contain a streaming_config message.

.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;

Returns
TypeDescription
boolean

Whether the streamingConfig field is set.