Cloud Speech V1p1beta1 Client - Class RecognizeRequest (1.19.2)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class RecognizeRequest.

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

Generated from protobuf message google.cloud.speech.v1p1beta1.RecognizeRequest

Namespace

Google \ Cloud \ Speech \ V1p1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ configRecognitionConfig

Required. Provides information to the recognizer that specifies how to process the request.

↳ audioRecognitionAudio

Required. The audio data to be recognized.

getConfig

Required. Provides information to the recognizer that specifies how to process the request.

Returns
TypeDescription
RecognitionConfig|null

hasConfig

clearConfig

setConfig

Required. Provides information to the recognizer that specifies how to process the request.

Parameter
NameDescription
varRecognitionConfig
Returns
TypeDescription
$this

getAudio

Required. The audio data to be recognized.

Returns
TypeDescription
RecognitionAudio|null

hasAudio

clearAudio

setAudio

Required. The audio data to be recognized.

Parameter
NameDescription
varRecognitionAudio
Returns
TypeDescription
$this