Class: Google::Cloud::Speech::V1::StreamingRecognizeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb

Overview

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+ data. All subsequent messages must contain +audio+ data and must not contain a +streaming_config+ message.

Instance Attribute Summary collapse

Instance Attribute Details

#audio_contentString

Returns 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, protobuffers use a pure binary representation (not base64). See limits[https://cloud.google.com/speech/limits#content].

Returns:

  • (String)

    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, protobuffers use a pure binary representation (not base64). See limits[https://cloud.google.com/speech/limits#content].



60
# File 'lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb', line 60

class StreamingRecognizeRequest; end

#streaming_configGoogle::Cloud::Speech::V1::StreamingRecognitionConfig

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

Returns:



60
# File 'lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb', line 60

class StreamingRecognizeRequest; end