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