Class: Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/calls/transcription_engine_deepgram_config.rb

Defined Under Namespace

Modules: Language, TranscriptionEngine

Instance Attribute Summary collapse

Class Method 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

#initialize(transcription_engine:, keywords_boosting: nil, language: nil, transcription_model: :"deepgram/nova-2") ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2 for more details.

Parameters:



# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 41

Instance Attribute Details

#keywords_boostingHash{Symbol=>Float}?

Keywords and their respective intensifiers (boosting values) to improve transcription accuracy for specific words or phrases. The intensifier should be a numeric value. Example: ‘5, “systrom”: 2, “krieger”: 1`.

Returns:

  • (Hash{Symbol=>Float}, nil)


33
# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 33

optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]

#languageSymbol, ...

Language to use for speech recognition with nova-2 model



39
# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 39

optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language }

#transcription_engineSymbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::TranscriptionEngine



19
20
# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 19

required :transcription_engine,
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::TranscriptionEngine }

#transcription_modelSymbol, :"deepgram/nova-2"

Returns:

  • (Symbol, :"deepgram/nova-2")


25
# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 25

required :transcription_model, const: :"deepgram/nova-2"

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/calls/transcription_engine_deepgram_config.rb', line 60