Class: Telnyx::Models::Calls::TranscriptionEngineGoogleConfig::SpeechContext

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/calls/transcription_engine_google_config.rb,
sig/telnyx/models/calls/transcription_engine_google_config.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeSpeechContext

Returns a new instance of SpeechContext.

Parameters:

  • boost: (Float)
  • phrases: (::Array[String])


136
# File 'sig/telnyx/models/calls/transcription_engine_google_config.rbs', line 136

def initialize: (?boost: Float, ?phrases: ::Array[String]) -> void

Instance Attribute Details

#boostFloat?

Boost factor for the speech context.

Parameters:

  • (Float)

Returns:

  • (Float, nil)


126
# File 'lib/telnyx/models/calls/transcription_engine_google_config.rb', line 126

optional :boost, Float

#phrasesArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


131
# File 'lib/telnyx/models/calls/transcription_engine_google_config.rb', line 131

optional :phrases, Telnyx::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{ boost: Float, phrases: ::Array[String] }

Returns:

  • ({ boost: Float, phrases: ::Array[String] })


138
# File 'sig/telnyx/models/calls/transcription_engine_google_config.rbs', line 138

def to_hash: -> { boost: Float, phrases: ::Array[String] }