Class: Google::Apis::SpeechV1p1beta1::TranscriptNormalization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TranscriptNormalization

Returns a new instance of TranscriptNormalization.



1175
1176
1177
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1175

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#entriesGoogle::Apis::SpeechV1p1beta1::Entry

A single replacement configuration. Corresponds to the JSON property entries



1173
1174
1175
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1173

def entries
  @entries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1180

def update!(**args)
  @entries = args[:entries] if args.key?(:entries)
end