class Google::Apis::SpeechV1p1beta1::RecognizeRequest

The top-level message sent by the client for the `Recognize` 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]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/speech_v1p1beta1/classes.rb, line 900
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 905
def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @config = args[:config] if args.key?(:config)
end