Cloud Speech V1 Client - Class RecognizeRequest (1.8.0)

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

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ config Google\Cloud\Speech\V1\RecognitionConfig

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

↳ audio Google\Cloud\Speech\V1\RecognitionAudio

Required. The audio data to be recognized.

getConfig

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

Generated from protobuf field .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Cloud\Speech\V1\RecognitionConfig|null

hasConfig

clearConfig

setConfig

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

Generated from protobuf field .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\Speech\V1\RecognitionConfig
Returns
TypeDescription
$this

getAudio

Required. The audio data to be recognized.

Generated from protobuf field .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Cloud\Speech\V1\RecognitionAudio|null

hasAudio

clearAudio

setAudio

Required. The audio data to be recognized.

Generated from protobuf field .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\Speech\V1\RecognitionAudio
Returns
TypeDescription
$this