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
Namespace
Google \ Cloud \ Speech \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ error |
Google\Rpc\Status
Error if one was encountered. |
↳ metadata |
RecognitionResponseMetadata
|
↳ cloud_storage_result |
CloudStorageResult
Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig]. |
↳ inline_result |
InlineResult
Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig]. |
↳ uri |
string
Deprecated. Use |
↳ transcript |
BatchRecognizeResults
Deprecated. Use |
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 |
RecognitionResponseMetadata|null |
hasMetadata
clearMetadata
setMetadata
Generated from protobuf field .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
Parameter | |
---|---|
Name | Description |
var |
RecognitionResponseMetadata
|
Returns | |
---|---|
Type | Description |
$this |
getCloudStorageResult
Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
Returns | |
---|---|
Type | Description |
CloudStorageResult|null |
hasCloudStorageResult
setCloudStorageResult
Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
Parameter | |
---|---|
Name | Description |
var |
CloudStorageResult
|
Returns | |
---|---|
Type | Description |
$this |
getInlineResult
Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
Returns | |
---|---|
Type | Description |
InlineResult|null |
hasInlineResult
setInlineResult
Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
Parameter | |
---|---|
Name | Description |
var |
InlineResult
|
Returns | |
---|---|
Type | Description |
$this |
getUri
Deprecated. Use cloud_storage_result.native_format_uri
instead.
Returns | |
---|---|
Type | Description |
string |
setUri
Deprecated. Use cloud_storage_result.native_format_uri
instead.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTranscript
Deprecated. Use inline_result.transcript
instead.
Returns | |
---|---|
Type | Description |
BatchRecognizeResults|null |
hasTranscript
clearTranscript
setTranscript
Deprecated. Use inline_result.transcript
instead.
Parameter | |
---|---|
Name | Description |
var |
BatchRecognizeResults
|
Returns | |
---|---|
Type | Description |
$this |
getResult
Returns | |
---|---|
Type | Description |
string |