Class: Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/representations.rb

Overview

The top-level message sent by the client for the LongRunningRecognize method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LongRunningRecognizeRequest

Returns a new instance of LongRunningRecognizeRequest.



371
372
373
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 371

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audioGoogle::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



358
359
360
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 358

def audio
  @audio
end

#configGoogle::Apis::SpeechV1p1beta1::RecognitionConfig

Provides information to the recognizer that specifies how to process the request. Corresponds to the JSON property config



364
365
366
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 364

def config
  @config
end

#output_configGoogle::Apis::SpeechV1p1beta1::TranscriptOutputConfig

Specifies an optional destination for the recognition results. Corresponds to the JSON property outputConfig



369
370
371
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 369

def output_config
  @output_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



376
377
378
379
380
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 376

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