Cloud Speech V2 Client - Class TranscriptNormalization (1.19.0)

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

Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.

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

Namespace

Google \ Cloud \ Speech \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ entries array<Google\Cloud\Speech\V2\TranscriptNormalization\Entry>

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

getEntries

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEntries

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

Parameter
Name Description
var array<Google\Cloud\Speech\V2\TranscriptNormalization\Entry>
Returns
Type Description
$this