Class: Google::Apis::SpeechV1::LongRunningRecognizeRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::LongRunningRecognizeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1/classes.rb,
lib/google/apis/speech_v1/representations.rb,
lib/google/apis/speech_v1/representations.rb
Overview
The top-level message sent by the client for the LongRunningRecognize method.
Instance Attribute Summary collapse
-
#audio ⇒ Google::Apis::SpeechV1::RecognitionAudio
Contains audio data in the encoding specified in the
RecognitionConfig. -
#config ⇒ Google::Apis::SpeechV1::RecognitionConfig
Provides information to the recognizer that specifies how to process the request.
-
#output_config ⇒ Google::Apis::SpeechV1::TranscriptOutputConfig
Specifies an optional destination for the recognition results.
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.
293 294 295 |
# File 'lib/google/apis/speech_v1/classes.rb', line 293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ Google::Apis::SpeechV1::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
280 281 282 |
# File 'lib/google/apis/speech_v1/classes.rb', line 280 def audio @audio end |
#config ⇒ Google::Apis::SpeechV1::RecognitionConfig
Provides information to the recognizer that specifies how to process the
request.
Corresponds to the JSON property config
286 287 288 |
# File 'lib/google/apis/speech_v1/classes.rb', line 286 def config @config end |
#output_config ⇒ Google::Apis::SpeechV1::TranscriptOutputConfig
Specifies an optional destination for the recognition results.
Corresponds to the JSON property outputConfig
291 292 293 |
# File 'lib/google/apis/speech_v1/classes.rb', line 291 def output_config @output_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
298 299 300 301 302 |
# File 'lib/google/apis/speech_v1/classes.rb', line 298 def update!(**args) @audio = args[:audio] if args.key?(:audio) @config = args[:config] if args.key?(:config) @output_config = args[:output_config] if args.key?(:output_config) end |