Cloud Speech V2 Client - Class BatchRecognizeTranscriptionMetadata (1.9.1)

Reference documentation and code samples for the Cloud Speech V2 Client class BatchRecognizeTranscriptionMetadata.

Metadata about transcription for a single file (for example, progress percent).

Generated from protobuf message google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ progress_percent int

How much of the file has been transcribed so far.

↳ error Google\Rpc\Status

Error if one was encountered.

↳ uri string

The GCS URI to which recognition results will be written.

getProgressPercent

How much of the file has been transcribed so far.

Returns
TypeDescription
int

setProgressPercent

How much of the file has been transcribed so far.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

Error if one was encountered.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Error if one was encountered.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getUri

The GCS URI to which recognition results will be written.

Returns
TypeDescription
string

setUri

The GCS URI to which recognition results will be written.

Parameter
NameDescription
var string
Returns
TypeDescription
$this