Class: Google::Apis::SpeechV1beta1::AsyncRecognizeRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1beta1::AsyncRecognizeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/speech_v1beta1/classes.rb,
generated/google/apis/speech_v1beta1/representations.rb,
generated/google/apis/speech_v1beta1/representations.rb
Overview
AsyncRecognizeRequest
is the top-level message sent by the client for
the AsyncRecognize
method.
Instance Attribute Summary collapse
-
#audio ⇒ Google::Apis::SpeechV1beta1::RecognitionAudio
Contains audio data in the encoding specified in the
RecognitionConfig
. -
#config ⇒ Google::Apis::SpeechV1beta1::RecognitionConfig
The
RecognitionConfig
message provides information to the recognizer that specifies how to process the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AsyncRecognizeRequest
constructor
A new instance of AsyncRecognizeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AsyncRecognizeRequest
Returns a new instance of AsyncRecognizeRequest.
499 500 501 |
# File 'generated/google/apis/speech_v1beta1/classes.rb', line 499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ Google::Apis::SpeechV1beta1::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
audio limits.
Corresponds to the JSON property audio
491 492 493 |
# File 'generated/google/apis/speech_v1beta1/classes.rb', line 491 def audio @audio end |
#config ⇒ Google::Apis::SpeechV1beta1::RecognitionConfig
The RecognitionConfig
message provides information to the recognizer
that specifies how to process the request.
Corresponds to the JSON property config
497 498 499 |
# File 'generated/google/apis/speech_v1beta1/classes.rb', line 497 def config @config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
504 505 506 507 |
# File 'generated/google/apis/speech_v1beta1/classes.rb', line 504 def update!(**args) @audio = args[:audio] if args.key?(:audio) @config = args[:config] if args.key?(:config) end |