Cloud Speech V1 Client - Class LongRunningRecognizeResponse (1.16.0)

Reference documentation and code samples for the Cloud Speech V1 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.v1.LongRunningRecognizeResponse

Namespace

Google \ Cloud \ Speech \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ results
array< Google\Cloud\Speech\V1\SpeechRecognitionResult >

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

↳ total_billed_time
Google\Protobuf\Duration

When available, billed audio seconds for the corresponding request.

↳ output_config
Google\Cloud\Speech\V1\TranscriptOutputConfig

Original output config if present in the request.

↳ output_error
Google\Rpc\Status

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

↳ speech_adaptation_info
Google\Cloud\Speech\V1\SpeechAdaptationInfo

Provides information on speech adaptation behavior in response

↳ request_id
int|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
Type
Description

setResults

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

Parameter
Name
Description
Returns
Type
Description
$this

getTotalBilledTime

When available, billed audio seconds for the corresponding request.

Returns
Type
Description

hasTotalBilledTime

clearTotalBilledTime

setTotalBilledTime

When available, billed audio seconds for the corresponding request.

Parameter
Name
Description
Returns
Type
Description
$this

getOutputConfig

Original output config if present in the request.

Returns
Type
Description

hasOutputConfig

clearOutputConfig

setOutputConfig

Original output config if present in the request.

Parameter
Name
Description
Returns
Type
Description
$this

getOutputError

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

Returns
Type
Description

hasOutputError

clearOutputError

setOutputError

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

Parameter
Name
Description
Returns
Type
Description
$this

getSpeechAdaptationInfo

Provides information on speech adaptation behavior in response

Returns
Type
Description

hasSpeechAdaptationInfo

clearSpeechAdaptationInfo

setSpeechAdaptationInfo

Provides information on speech adaptation behavior in response

Parameter
Name
Description
Returns
Type
Description
$this

getRequestId

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

Returns
Type
Description
int|string

setRequestId

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

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: