Reference documentation and code samples for the Cloud Speech V2 Client class BatchRecognizeFileResult.
Final results for a single file.
Generated from protobuf message google.cloud.speech.v2.BatchRecognizeFileResult
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ uri |
string
The Cloud Storage URI to which recognition results were written. |
↳ error |
Google\Rpc\Status
Error if one was encountered. |
↳ metadata |
Google\Cloud\Speech\V2\RecognitionResponseMetadata
|
↳ transcript |
Google\Cloud\Speech\V2\BatchRecognizeResults
The transcript for the audio file. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig]. |
getUri
The Cloud Storage URI to which recognition results were written.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUri
The Cloud Storage URI to which recognition results were written.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getError
Error if one was encountered.
| Returns | |
|---|---|
| Type | Description |
Google\Rpc\Status|null |
|
hasError
clearError
setError
Error if one was encountered.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Rpc\Status
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
Generated from protobuf field .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Speech\V2\RecognitionResponseMetadata|null |
|
hasMetadata
clearMetadata
setMetadata
Generated from protobuf field .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Speech\V2\RecognitionResponseMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTranscript
The transcript for the audio file. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Speech\V2\BatchRecognizeResults|null |
|
hasTranscript
clearTranscript
setTranscript
The transcript for the audio file. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Speech\V2\BatchRecognizeResults
|
| Returns | |
|---|---|
| Type | Description |
$this |
|