Class: Telnyx::Models::AI::TranscriptionSettingsConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::TranscriptionSettingsConfig
- Defined in:
- lib/telnyx/models/ai/transcription_settings_config.rb,
sig/telnyx/models/ai/transcription_settings_config.rbs
Instance Attribute Summary collapse
-
#context ⇒ String?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5.
-
#eager_eot_threshold ⇒ Float?
Available only for deepgram/flux.
-
#enable_endpoint_detection ⇒ Boolean?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5.
-
#end_of_turn_confidence_threshold ⇒ Float?
Available only for assemblyai/universal-streaming.
-
#eot_threshold ⇒ Float?
Available only for deepgram/flux.
-
#eot_timeout_ms ⇒ Integer?
Available only for deepgram/flux.
-
#interim_results ⇒ Boolean?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5.
-
#keyterm ⇒ String?
Available only for deepgram/nova-3 and deepgram/flux.
-
#language_hints ⇒ Array<String>?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5.
-
#max_endpoint_delay_ms ⇒ Integer?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5.
-
#max_turn_silence ⇒ Integer?
Available only for assemblyai/universal-streaming.
-
#min_turn_silence ⇒ Integer?
Available only for assemblyai/universal-streaming.
- #numerals ⇒ Boolean?
- #smart_format ⇒ Boolean?
Instance Method Summary collapse
-
#initialize(context: nil, eager_eot_threshold: nil, enable_endpoint_detection: nil, end_of_turn_confidence_threshold: nil, eot_threshold: nil, eot_timeout_ms: nil, interim_results: nil, keyterm: nil, language_hints: nil, max_endpoint_delay_ms: nil, max_turn_silence: nil, min_turn_silence: nil, numerals: nil, smart_format: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TranscriptionSettingsConfig for more details.
- #to_hash ⇒ {
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(context: nil, eager_eot_threshold: nil, enable_endpoint_detection: nil, end_of_turn_confidence_threshold: nil, eot_threshold: nil, eot_timeout_ms: nil, interim_results: nil, keyterm: nil, language_hints: nil, max_endpoint_delay_ms: nil, max_turn_silence: nil, min_turn_silence: nil, numerals: nil, smart_format: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AI::TranscriptionSettingsConfig for more details.
|
|
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 117
|
Instance Attribute Details
#context ⇒ String?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
of terms to boost for recognition during transcription, for staff names,
building names, or other domain-specific vocabulary. This field may be templated
with
dynamic variables
using mustache syntax (e.g. Telnyx,{{customer_name}},VoIP). Variables are
resolved at call time before the value is sent to Soniox.
17 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 17 optional :context, String |
#eager_eot_threshold ⇒ Float?
Available only for deepgram/flux. Confidence threshold for eager end of turn detection. Must be lower than or equal to eot_threshold. Setting this equal to eot_threshold effectively disables eager end of turn.
25 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 25 optional :eager_eot_threshold, Float |
#enable_endpoint_detection ⇒ Boolean?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. When true, Soniox
emits end-of-utterance events at the cadence configured by
max_endpoint_delay_ms.
33 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 33 optional :enable_endpoint_detection, Telnyx::Internal::Type::Boolean |
#end_of_turn_confidence_threshold ⇒ Float?
Available only for assemblyai/universal-streaming. Confidence level required to trigger an end of turn. Higher values require more certainty before ending a turn.
41 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 41 optional :end_of_turn_confidence_threshold, Float |
#eot_threshold ⇒ Float?
Available only for deepgram/flux. Confidence required to trigger an end of turn. Higher values = more reliable turn detection but slightly increased latency.
48 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 48 optional :eot_threshold, Float |
#eot_timeout_ms ⇒ Integer?
Available only for deepgram/flux. Maximum milliseconds of silence before forcing an end of turn, regardless of confidence.
55 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 55 optional :eot_timeout_ms, Integer |
#interim_results ⇒ Boolean?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. When true, Soniox streams interim (non-final) results in addition to finalized transcripts.
62 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 62 optional :interim_results, Telnyx::Internal::Type::Boolean |
#keyterm ⇒ String?
Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
key terms to boost for recognition during transcription. Helps improve accuracy
for domain-specific terminology, proper nouns, or uncommon words. This field may
be templated with
dynamic variables
using mustache syntax (e.g. Telnyx,{{customer_name}},VoIP). Variables are
resolved at call time before the value is sent to the speech-to-text engine.
74 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 74 optional :keyterm, String |
#language_hints ⇒ Array<String>?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A list of ISO 639-1
language codes (e.g. ["nl", "fr"]) to pin recognition to multiple languages at
once, overriding the single hint derived from language.
82 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 82 optional :language_hints, Telnyx::Internal::Type::ArrayOf[String] |
#max_endpoint_delay_ms ⇒ Integer?
Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. Maximum silence (in
milliseconds) before Soniox emits an end-of-utterance event. Only honored when
enable_endpoint_detection is true.
90 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 90 optional :max_endpoint_delay_ms, Integer |
#max_turn_silence ⇒ Integer?
Available only for assemblyai/universal-streaming. Maximum duration of silence in milliseconds before forcing an end of turn.
97 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 97 optional :max_turn_silence, Integer |
#min_turn_silence ⇒ Integer?
Available only for assemblyai/universal-streaming. Minimum duration of silence in milliseconds before a turn can end. Must be less than or equal to max_turn_silence.
105 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 105 optional :min_turn_silence, Integer |
#numerals ⇒ Boolean?
110 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 110 optional :numerals, Telnyx::Internal::Type::Boolean |
#smart_format ⇒ Boolean?
115 |
# File 'lib/telnyx/models/ai/transcription_settings_config.rb', line 115 optional :smart_format, Telnyx::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ {
96 |
# File 'sig/telnyx/models/ai/transcription_settings_config.rbs', line 96
def to_hash: -> {
|