Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::StreamingRecognizeRequest.
Request message for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a recognizer and optionally a streaming_config message and must not contain audio. All subsequent messages must contain audio and must not contain a streaming_config message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::String
- (::String) — Inline audio bytes to be Recognized.
#audio=
def audio=(value) -> ::String
- value (::String) — Inline audio bytes to be Recognized.
- (::String) — Inline audio bytes to be Recognized.
#recognizer
def recognizer() -> ::String
-
(::String) — Required. Streaming recognition should start with an initial request having
a
recognizer
. Subsequent requests carry the audio data to be recognized.The initial request with configuration can be omitted if the Recognizer being used has a default_recognition_config.
#recognizer=
def recognizer=(value) -> ::String
-
value (::String) — Required. Streaming recognition should start with an initial request having
a
recognizer
. Subsequent requests carry the audio data to be recognized.The initial request with configuration can be omitted if the Recognizer being used has a default_recognition_config.
-
(::String) — Required. Streaming recognition should start with an initial request having
a
recognizer
. Subsequent requests carry the audio data to be recognized.The initial request with configuration can be omitted if the Recognizer being used has a default_recognition_config.
#streaming_config
def streaming_config() -> ::Google::Cloud::Speech::V2::StreamingRecognitionConfig
- (::Google::Cloud::Speech::V2::StreamingRecognitionConfig) — StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.
#streaming_config=
def streaming_config=(value) -> ::Google::Cloud::Speech::V2::StreamingRecognitionConfig
- value (::Google::Cloud::Speech::V2::StreamingRecognitionConfig) — StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.
- (::Google::Cloud::Speech::V2::StreamingRecognitionConfig) — StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.