Reference documentation and code samples for the Cloud Speech V1p1beta1 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.v1p1beta1.RecognizeResponse
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ results |
array<Google\Cloud\Speech\V1p1beta1\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. |
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.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.v1p1beta1.SpeechRecognitionResult results = 2;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Speech\V1p1beta1\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 |