Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::StreamingRecognizeRequest.
The top-level message sent by the client for the StreamingRecognize
method.
Multiple StreamingRecognizeRequest
messages are sent. The first message
must contain a streaming_config
message and must not contain
audio_content
. All subsequent messages must contain audio_content
and
must not contain a streaming_config
message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio_content
def audio_content() -> ::String
-
(::String) — The audio data to be recognized. Sequential chunks of audio data are sent
in sequential
StreamingRecognizeRequest
messages. The firstStreamingRecognizeRequest
message must not containaudio_content
data and all subsequentStreamingRecognizeRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inRecognitionConfig
. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See content limits.
#audio_content=
def audio_content=(value) -> ::String
-
value (::String) — The audio data to be recognized. Sequential chunks of audio data are sent
in sequential
StreamingRecognizeRequest
messages. The firstStreamingRecognizeRequest
message must not containaudio_content
data and all subsequentStreamingRecognizeRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inRecognitionConfig
. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See content limits.
-
(::String) — The audio data to be recognized. Sequential chunks of audio data are sent
in sequential
StreamingRecognizeRequest
messages. The firstStreamingRecognizeRequest
message must not containaudio_content
data and all subsequentStreamingRecognizeRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inRecognitionConfig
. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See content limits.
#streaming_config
def streaming_config() -> ::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig
-
(::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingRecognizeRequest
message must contain astreaming_config
message.
#streaming_config=
def streaming_config=(value) -> ::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig
-
value (::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingRecognizeRequest
message must contain astreaming_config
message.
-
(::Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingRecognizeRequest
message must contain astreaming_config
message.