Reference documentation and code samples for the Cloud Speech V1 Client class RecognizeResponse.
The only message returned to the client by the Recognize
method. It
contains the result as zero or more sequential SpeechRecognitionResult
messages.
Generated from protobuf message google.cloud.speech.v1.RecognizeResponse
Namespace
Google \ Cloud \ Speech \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ results |
array<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. |
↳ speech_adaptation_info |
SpeechAdaptationInfo
Provides information on 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 |
Google\Protobuf\Internal\RepeatedField |
setResults
Sequential list of transcription results corresponding to sequential portions of audio.
Parameter | |
---|---|
Name | Description |
var |
array<SpeechRecognitionResult>
|
Returns | |
---|---|
Type | Description |
$this |
getTotalBilledTime
When available, billed audio seconds for the corresponding request.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasTotalBilledTime
clearTotalBilledTime
setTotalBilledTime
When available, billed audio seconds for the corresponding request.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getSpeechAdaptationInfo
Provides information on adaptation behavior in response
Returns | |
---|---|
Type | Description |
SpeechAdaptationInfo|null |
hasSpeechAdaptationInfo
clearSpeechAdaptationInfo
setSpeechAdaptationInfo
Provides information on adaptation behavior in response
Parameter | |
---|---|
Name | Description |
var |
SpeechAdaptationInfo
|
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 |