Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::TranscriptNormalization (v0.16.0)

Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#entries

def entries() -> ::Array<::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization::Entry>
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::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.

#entries=

def entries=(value) -> ::Array<::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization::Entry>
Parameter
  • value (::Array<::Google::Cloud::Speech::V1p1beta1::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.
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::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.