Class: Google::Cloud::Speech::V2::StreamingRecognizeRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v2/cloud_speech.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#audio::String

Returns 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.



884
885
886
887
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 884

class StreamingRecognizeRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#recognizer::String

Returns 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.



884
885
886
887
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 884

class StreamingRecognizeRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#streaming_config::Google::Cloud::Speech::V2::StreamingRecognitionConfig

Returns StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.

Returns:



884
885
886
887
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 884

class StreamingRecognizeRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end