class Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest

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

Attributes

audio[RW]

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](cloud.google. com/speech-to-text/quotas#content). Corresponds to the JSON property `audio` @return [Google::Apis::SpeechV1p1beta1::RecognitionAudio]

config[RW]

Provides information to the recognizer that specifies how to process the request. Corresponds to the JSON property `config` @return [Google::Apis::SpeechV1p1beta1::RecognitionConfig]

output_config[RW]

Specifies an optional destination for the recognition results. Corresponds to the JSON property `outputConfig` @return [Google::Apis::SpeechV1p1beta1::TranscriptOutputConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 331
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/speech_v1p1beta1/classes.rb, line 336
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