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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ results |
array<Google\Cloud\Speech\V2\SpeechRecognitionResult>
Sequential list of transcription results corresponding to sequential portions of audio. |
↳ metadata |
Google\Cloud\Speech\V2\RecognitionResponseMetadata
Metadata about the recognition. |
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
Generated from protobuf field repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
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.v2.SpeechRecognitionResult results = 3;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Speech\V2\SpeechRecognitionResult>
|
Returns | |
---|---|
Type | Description |
$this |
getMetadata
Metadata about the recognition.
Generated from protobuf field .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Speech\V2\RecognitionResponseMetadata|null |
hasMetadata
clearMetadata
setMetadata
Metadata about the recognition.
Generated from protobuf field .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Speech\V2\RecognitionResponseMetadata
|
Returns | |
---|---|
Type | Description |
$this |