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
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. |
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
Generated from protobuf field repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setResults
Sequential list of transcription results corresponding to sequential portions of audio.
Generated from protobuf field repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Speech\V1\SpeechRecognitionResult>
|
Returns | |
---|---|
Type | Description |
$this |
getTotalBilledTime
When available, billed audio seconds for the corresponding request.
Generated from protobuf field .google.protobuf.Duration total_billed_time = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasTotalBilledTime
clearTotalBilledTime
setTotalBilledTime
When available, billed audio seconds for the corresponding request.
Generated from protobuf field .google.protobuf.Duration total_billed_time = 3;
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getOutputConfig
Original output config if present in the request.
Generated from protobuf field .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Returns | |
---|---|
Type | Description |
Google\Cloud\Speech\V1\TranscriptOutputConfig|null |
hasOutputConfig
clearOutputConfig
setOutputConfig
Original output config if present in the request.
Generated from protobuf field .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Speech\V1\TranscriptOutputConfig
|
Returns | |
---|---|
Type | Description |
$this |
getOutputError
If the transcript output fails this field contains the relevant error.
Generated from protobuf field .google.rpc.Status output_error = 7;
Returns | |
---|---|
Type | Description |
Google\Rpc\Status|null |
hasOutputError
clearOutputError
setOutputError
If the transcript output fails this field contains the relevant error.
Generated from protobuf field .google.rpc.Status output_error = 7;
Parameter | |
---|---|
Name | Description |
var |
Google\Rpc\Status
|
Returns | |
---|---|
Type | Description |
$this |