Class: Google::Cloud::Speech::V1p1beta1::TranscriptNormalization

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/speech/v1p1beta1/resource.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.

Defined Under Namespace

Classes: Entry

Instance Attribute Summary collapse

Instance Attribute Details

#entries::Array<::Google::Cloud::Speech::V1p1beta1::TranscriptNormalization::Entry>

Returns 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.



303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
# File 'proto_docs/google/cloud/speech/v1p1beta1/resource.rb', line 303

class TranscriptNormalization
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A single replacement configuration.
  # @!attribute [rw] search
  #   @return [::String]
  #     What to replace. Max length is 100 characters.
  # @!attribute [rw] replace
  #   @return [::String]
  #     What to replace with. Max length is 100 characters.
  # @!attribute [rw] case_sensitive
  #   @return [::Boolean]
  #     Whether the search is case sensitive.
  class Entry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end