Cloud Speech V1p1beta1 Client - Class LongRunningRecognizeResponse (1.9.1)

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

The only message returned to the client by the LongRunningRecognize method.

It contains the result as zero or more sequential SpeechRecognitionResult messages. It is included in the result.response field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

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

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ resultsarray<Google\Cloud\Speech\V1p1beta1\SpeechRecognitionResult>

Sequential list of transcription results corresponding to sequential portions of audio.

↳ total_billed_timeGoogle\Protobuf\Duration

When available, billed audio seconds for the corresponding request.

↳ output_configGoogle\Cloud\Speech\V1p1beta1\TranscriptOutputConfig

Original output config if present in the request.

↳ output_errorGoogle\Rpc\Status

If the transcript output fails this field contains the relevant error.

↳ speech_adaptation_infoGoogle\Cloud\Speech\V1p1beta1\SpeechAdaptationInfo

Provides information on speech adaptation behavior in response

↳ request_idint|string

The ID associated with the request. This is a unique ID specific only to the given request.

getResults

Sequential list of transcription results corresponding to sequential portions of audio.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setResults

Sequential list of transcription results corresponding to sequential portions of audio.

Parameter
NameDescription
vararray<Google\Cloud\Speech\V1p1beta1\SpeechRecognitionResult>
Returns
TypeDescription
$this

getTotalBilledTime

When available, billed audio seconds for the corresponding request.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTotalBilledTime

clearTotalBilledTime

setTotalBilledTime

When available, billed audio seconds for the corresponding request.

Parameter
NameDescription
varGoogle\Protobuf\Duration
Returns
TypeDescription
$this

getOutputConfig

Original output config if present in the request.

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

hasOutputConfig

clearOutputConfig

setOutputConfig

Original output config if present in the request.

Parameter
NameDescription
varGoogle\Cloud\Speech\V1p1beta1\TranscriptOutputConfig
Returns
TypeDescription
$this

getOutputError

If the transcript output fails this field contains the relevant error.

Returns
TypeDescription
Google\Rpc\Status|null

hasOutputError

clearOutputError

setOutputError

If the transcript output fails this field contains the relevant error.

Parameter
NameDescription
varGoogle\Rpc\Status
Returns
TypeDescription
$this

getSpeechAdaptationInfo

Provides information on speech adaptation behavior in response

Returns
TypeDescription
Google\Cloud\Speech\V1p1beta1\SpeechAdaptationInfo|null

hasSpeechAdaptationInfo

clearSpeechAdaptationInfo

setSpeechAdaptationInfo

Provides information on speech adaptation behavior in response

Parameter
NameDescription
varGoogle\Cloud\Speech\V1p1beta1\SpeechAdaptationInfo
Returns
TypeDescription
$this

getRequestId

The ID associated with the request. This is a unique ID specific only to the given request.

Returns
TypeDescription
int|string

setRequestId

The ID associated with the request. This is a unique ID specific only to the given request.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this