Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::StreamingRecognizeRequest (v0.4.0)

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
Returns
  • (::String) — Inline audio bytes to be Recognized. Maximum size for this field is 15 KB per request.

#audio=

def audio=(value) -> ::String
Parameter
  • value (::String) — Inline audio bytes to be Recognized. Maximum size for this field is 15 KB per request.
Returns
  • (::String) — Inline audio bytes to be Recognized. Maximum size for this field is 15 KB per request.

#recognizer

def recognizer() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#streaming_config=

def streaming_config=(value) -> ::Google::Cloud::Speech::V2::StreamingRecognitionConfig
Parameter
Returns