Cloud Speech V1 Client - Class LongRunningRecognizeRequest (1.12.0)

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

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

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

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.

↳ output_config Google\Cloud\Speech\V1\TranscriptOutputConfig

Optional. Specifies an optional destination for the recognition results.

getConfig

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

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

hasConfig

clearConfig

setConfig

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

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

getAudio

Required. The audio data to be recognized.

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

hasAudio

clearAudio

setAudio

Required. The audio data to be recognized.

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

getOutputConfig

Optional. Specifies an optional destination for the recognition results.

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

hasOutputConfig

clearOutputConfig

setOutputConfig

Optional. Specifies an optional destination for the recognition results.

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