Reference documentation and code samples for the Cloud Speech V2 Client class RecognizeResponse.
Response message for the Recognize method.
Generated from protobuf message google.cloud.speech.v2.RecognizeResponse
Namespace
Google \ Cloud \ Speech \ V2Methods
__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. |
↳ metadata |
RecognitionResponseMetadata
Metadata about the recognition. |
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 |
|
getMetadata
Metadata about the recognition.
| Returns | |
|---|---|
| Type | Description |
RecognitionResponseMetadata|null |
|
hasMetadata
clearMetadata
setMetadata
Metadata about the recognition.
| Parameter | |
|---|---|
| Name | Description |
var |
RecognitionResponseMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|