Class: Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/speech_v1p1beta1/classes.rb,
generated/google/apis/speech_v1p1beta1/representations.rb,
generated/google/apis/speech_v1p1beta1/representations.rb
Overview
The top-level message sent by the client for the LongRunningRecognize
method.
Instance Attribute Summary collapse
-
#audio ⇒ Google::Apis::SpeechV1p1beta1::RecognitionAudio
Contains audio data in the encoding specified in the
RecognitionConfig
. -
#config ⇒ Google::Apis::SpeechV1p1beta1::RecognitionConfig
Provides information to the recognizer that specifies how to process the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LongRunningRecognizeRequest
constructor
A new instance of LongRunningRecognizeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LongRunningRecognizeRequest
Returns a new instance of LongRunningRecognizeRequest.
162 163 164 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ Google::Apis::SpeechV1p1beta1::RecognitionAudio
Contains audio data in the encoding specified in the RecognitionConfig
.
Either content
or uri
must be supplied. Supplying both or neither returns
google.rpc.Code.INVALID_ARGUMENT. See content limits.
Corresponds to the JSON property audio
154 155 156 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 154 def audio @audio end |
#config ⇒ Google::Apis::SpeechV1p1beta1::RecognitionConfig
Provides information to the recognizer that specifies how to process the
request.
Corresponds to the JSON property config
160 161 162 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 160 def config @config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 |
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 167 def update!(**args) @audio = args[:audio] if args.key?(:audio) @config = args[:config] if args.key?(:config) end |