telnyx 5.176.0 → 5.177.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Telnyx::Calls::DeepgramFluxConfig, Telnyx::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig do
|
|
13
|
+
returns(
|
|
14
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine::OrSymbol
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
attr_accessor :transcription_engine
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
returns(
|
|
21
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel::OrSymbol
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
attr_accessor :transcription_model
|
|
25
|
+
|
|
26
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
27
|
+
# be sent.
|
|
28
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
29
|
+
attr_reader :interim_results
|
|
30
|
+
|
|
31
|
+
sig { params(interim_results: T::Boolean).void }
|
|
32
|
+
attr_writer :interim_results
|
|
33
|
+
|
|
34
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
35
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
36
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
37
|
+
# on Nova-2.
|
|
38
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
39
|
+
attr_reader :keyterms
|
|
40
|
+
|
|
41
|
+
sig { params(keyterms: T::Array[String]).void }
|
|
42
|
+
attr_writer :keyterms
|
|
43
|
+
|
|
44
|
+
# Language to transcribe. `deepgram/flux` supports English only.
|
|
45
|
+
sig do
|
|
46
|
+
returns(
|
|
47
|
+
T.nilable(Telnyx::Calls::DeepgramFluxConfig::Language::OrSymbol)
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
attr_reader :language
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
language: Telnyx::Calls::DeepgramFluxConfig::Language::OrSymbol
|
|
55
|
+
).void
|
|
56
|
+
end
|
|
57
|
+
attr_writer :language
|
|
58
|
+
|
|
59
|
+
# Deepgram Flux (English), a conversational speech recognition model with built-in
|
|
60
|
+
# end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
61
|
+
# `keywords_boosting` do not apply to Flux.
|
|
62
|
+
sig do
|
|
63
|
+
params(
|
|
64
|
+
transcription_engine:
|
|
65
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine::OrSymbol,
|
|
66
|
+
transcription_model:
|
|
67
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel::OrSymbol,
|
|
68
|
+
interim_results: T::Boolean,
|
|
69
|
+
keyterms: T::Array[String],
|
|
70
|
+
language: Telnyx::Calls::DeepgramFluxConfig::Language::OrSymbol
|
|
71
|
+
).returns(T.attached_class)
|
|
72
|
+
end
|
|
73
|
+
def self.new(
|
|
74
|
+
transcription_engine:,
|
|
75
|
+
transcription_model:,
|
|
76
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
77
|
+
# be sent.
|
|
78
|
+
interim_results: nil,
|
|
79
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
80
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
81
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
82
|
+
# on Nova-2.
|
|
83
|
+
keyterms: nil,
|
|
84
|
+
# Language to transcribe. `deepgram/flux` supports English only.
|
|
85
|
+
language: nil
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
sig do
|
|
90
|
+
override.returns(
|
|
91
|
+
{
|
|
92
|
+
transcription_engine:
|
|
93
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine::OrSymbol,
|
|
94
|
+
transcription_model:
|
|
95
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel::OrSymbol,
|
|
96
|
+
interim_results: T::Boolean,
|
|
97
|
+
keyterms: T::Array[String],
|
|
98
|
+
language: Telnyx::Calls::DeepgramFluxConfig::Language::OrSymbol
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
def to_hash
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
module TranscriptionEngine
|
|
106
|
+
extend Telnyx::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
TaggedSymbol =
|
|
109
|
+
T.type_alias do
|
|
110
|
+
T.all(
|
|
111
|
+
Symbol,
|
|
112
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
116
|
+
|
|
117
|
+
DEEPGRAM =
|
|
118
|
+
T.let(
|
|
119
|
+
:Deepgram,
|
|
120
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine::TaggedSymbol
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
sig do
|
|
124
|
+
override.returns(
|
|
125
|
+
T::Array[
|
|
126
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionEngine::TaggedSymbol
|
|
127
|
+
]
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
def self.values
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
module TranscriptionModel
|
|
135
|
+
extend Telnyx::Internal::Type::Enum
|
|
136
|
+
|
|
137
|
+
TaggedSymbol =
|
|
138
|
+
T.type_alias do
|
|
139
|
+
T.all(
|
|
140
|
+
Symbol,
|
|
141
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel
|
|
142
|
+
)
|
|
143
|
+
end
|
|
144
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
145
|
+
|
|
146
|
+
DEEPGRAM_FLUX =
|
|
147
|
+
T.let(
|
|
148
|
+
:"deepgram/flux",
|
|
149
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel::TaggedSymbol
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
sig do
|
|
153
|
+
override.returns(
|
|
154
|
+
T::Array[
|
|
155
|
+
Telnyx::Calls::DeepgramFluxConfig::TranscriptionModel::TaggedSymbol
|
|
156
|
+
]
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
def self.values
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Language to transcribe. `deepgram/flux` supports English only.
|
|
164
|
+
module Language
|
|
165
|
+
extend Telnyx::Internal::Type::Enum
|
|
166
|
+
|
|
167
|
+
TaggedSymbol =
|
|
168
|
+
T.type_alias do
|
|
169
|
+
T.all(Symbol, Telnyx::Calls::DeepgramFluxConfig::Language)
|
|
170
|
+
end
|
|
171
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
172
|
+
|
|
173
|
+
EN =
|
|
174
|
+
T.let(
|
|
175
|
+
:en,
|
|
176
|
+
Telnyx::Calls::DeepgramFluxConfig::Language::TaggedSymbol
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
sig do
|
|
180
|
+
override.returns(
|
|
181
|
+
T::Array[
|
|
182
|
+
Telnyx::Calls::DeepgramFluxConfig::Language::TaggedSymbol
|
|
183
|
+
]
|
|
184
|
+
)
|
|
185
|
+
end
|
|
186
|
+
def self.values
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Calls::DeepgramFluxMultiConfig,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
attr_accessor :transcription_engine
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
returns(
|
|
24
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
attr_accessor :transcription_model
|
|
28
|
+
|
|
29
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
30
|
+
# be sent.
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :interim_results
|
|
33
|
+
|
|
34
|
+
sig { params(interim_results: T::Boolean).void }
|
|
35
|
+
attr_writer :interim_results
|
|
36
|
+
|
|
37
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
38
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
39
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
40
|
+
# on Nova-2.
|
|
41
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
42
|
+
attr_reader :keyterms
|
|
43
|
+
|
|
44
|
+
sig { params(keyterms: T::Array[String]).void }
|
|
45
|
+
attr_writer :keyterms
|
|
46
|
+
|
|
47
|
+
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
48
|
+
# detect the language.
|
|
49
|
+
sig do
|
|
50
|
+
returns(
|
|
51
|
+
T.nilable(
|
|
52
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
attr_reader :language
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
language: Telnyx::Calls::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
61
|
+
).void
|
|
62
|
+
end
|
|
63
|
+
attr_writer :language
|
|
64
|
+
|
|
65
|
+
# Deepgram Flux multilingual, a conversational speech recognition model with
|
|
66
|
+
# built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
67
|
+
# `keywords_boosting` do not apply to Flux.
|
|
68
|
+
sig do
|
|
69
|
+
params(
|
|
70
|
+
transcription_engine:
|
|
71
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol,
|
|
72
|
+
transcription_model:
|
|
73
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol,
|
|
74
|
+
interim_results: T::Boolean,
|
|
75
|
+
keyterms: T::Array[String],
|
|
76
|
+
language: Telnyx::Calls::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
77
|
+
).returns(T.attached_class)
|
|
78
|
+
end
|
|
79
|
+
def self.new(
|
|
80
|
+
transcription_engine:,
|
|
81
|
+
transcription_model:,
|
|
82
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
83
|
+
# be sent.
|
|
84
|
+
interim_results: nil,
|
|
85
|
+
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
86
|
+
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
87
|
+
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
88
|
+
# on Nova-2.
|
|
89
|
+
keyterms: nil,
|
|
90
|
+
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
91
|
+
# detect the language.
|
|
92
|
+
language: nil
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
sig do
|
|
97
|
+
override.returns(
|
|
98
|
+
{
|
|
99
|
+
transcription_engine:
|
|
100
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol,
|
|
101
|
+
transcription_model:
|
|
102
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol,
|
|
103
|
+
interim_results: T::Boolean,
|
|
104
|
+
keyterms: T::Array[String],
|
|
105
|
+
language:
|
|
106
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
def to_hash
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
module TranscriptionEngine
|
|
114
|
+
extend Telnyx::Internal::Type::Enum
|
|
115
|
+
|
|
116
|
+
TaggedSymbol =
|
|
117
|
+
T.type_alias do
|
|
118
|
+
T.all(
|
|
119
|
+
Symbol,
|
|
120
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
124
|
+
|
|
125
|
+
DEEPGRAM =
|
|
126
|
+
T.let(
|
|
127
|
+
:Deepgram,
|
|
128
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine::TaggedSymbol
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
sig do
|
|
132
|
+
override.returns(
|
|
133
|
+
T::Array[
|
|
134
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionEngine::TaggedSymbol
|
|
135
|
+
]
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
def self.values
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
module TranscriptionModel
|
|
143
|
+
extend Telnyx::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
TaggedSymbol =
|
|
146
|
+
T.type_alias do
|
|
147
|
+
T.all(
|
|
148
|
+
Symbol,
|
|
149
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
153
|
+
|
|
154
|
+
DEEPGRAM_FLUX_MULTI =
|
|
155
|
+
T.let(
|
|
156
|
+
:"deepgram/flux-multi",
|
|
157
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel::TaggedSymbol
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
sig do
|
|
161
|
+
override.returns(
|
|
162
|
+
T::Array[
|
|
163
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::TranscriptionModel::TaggedSymbol
|
|
164
|
+
]
|
|
165
|
+
)
|
|
166
|
+
end
|
|
167
|
+
def self.values
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
172
|
+
# detect the language.
|
|
173
|
+
module Language
|
|
174
|
+
extend Telnyx::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
TaggedSymbol =
|
|
177
|
+
T.type_alias do
|
|
178
|
+
T.all(Symbol, Telnyx::Calls::DeepgramFluxMultiConfig::Language)
|
|
179
|
+
end
|
|
180
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
181
|
+
|
|
182
|
+
EN =
|
|
183
|
+
T.let(
|
|
184
|
+
:en,
|
|
185
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
186
|
+
)
|
|
187
|
+
ES =
|
|
188
|
+
T.let(
|
|
189
|
+
:es,
|
|
190
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
191
|
+
)
|
|
192
|
+
FR =
|
|
193
|
+
T.let(
|
|
194
|
+
:fr,
|
|
195
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
196
|
+
)
|
|
197
|
+
DE =
|
|
198
|
+
T.let(
|
|
199
|
+
:de,
|
|
200
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
201
|
+
)
|
|
202
|
+
HI =
|
|
203
|
+
T.let(
|
|
204
|
+
:hi,
|
|
205
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
206
|
+
)
|
|
207
|
+
RU =
|
|
208
|
+
T.let(
|
|
209
|
+
:ru,
|
|
210
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
211
|
+
)
|
|
212
|
+
PT =
|
|
213
|
+
T.let(
|
|
214
|
+
:pt,
|
|
215
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
JA =
|
|
218
|
+
T.let(
|
|
219
|
+
:ja,
|
|
220
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
221
|
+
)
|
|
222
|
+
IT =
|
|
223
|
+
T.let(
|
|
224
|
+
:it,
|
|
225
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
226
|
+
)
|
|
227
|
+
NL =
|
|
228
|
+
T.let(
|
|
229
|
+
:nl,
|
|
230
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
231
|
+
)
|
|
232
|
+
AUTO =
|
|
233
|
+
T.let(
|
|
234
|
+
:auto,
|
|
235
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
sig do
|
|
239
|
+
override.returns(
|
|
240
|
+
T::Array[
|
|
241
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
242
|
+
]
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
def self.values
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
end
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
attr_accessor :transcription_engine
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
returns(
|
|
24
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
attr_accessor :transcription_model
|
|
28
|
+
|
|
29
|
+
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
30
|
+
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
31
|
+
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
32
|
+
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
33
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
34
|
+
attr_reader :hints
|
|
35
|
+
|
|
36
|
+
sig { params(hints: T::Array[String]).void }
|
|
37
|
+
attr_writer :hints
|
|
38
|
+
|
|
39
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
40
|
+
# be sent.
|
|
41
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
42
|
+
attr_reader :interim_results
|
|
43
|
+
|
|
44
|
+
sig { params(interim_results: T::Boolean).void }
|
|
45
|
+
attr_writer :interim_results
|
|
46
|
+
|
|
47
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
48
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
49
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
50
|
+
sig { returns(T.nilable(T::Hash[Symbol, Float])) }
|
|
51
|
+
attr_reader :keywords_boosting
|
|
52
|
+
|
|
53
|
+
sig { params(keywords_boosting: T::Hash[Symbol, Float]).void }
|
|
54
|
+
attr_writer :keywords_boosting
|
|
55
|
+
|
|
56
|
+
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
57
|
+
# only.
|
|
58
|
+
sig do
|
|
59
|
+
returns(
|
|
60
|
+
T.nilable(
|
|
61
|
+
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
attr_reader :language
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
params(
|
|
69
|
+
language:
|
|
70
|
+
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
71
|
+
).void
|
|
72
|
+
end
|
|
73
|
+
attr_writer :language
|
|
74
|
+
|
|
75
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
76
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
77
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
78
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
79
|
+
# punctuation.
|
|
80
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
81
|
+
attr_reader :smart_format
|
|
82
|
+
|
|
83
|
+
sig { params(smart_format: T::Boolean).void }
|
|
84
|
+
attr_writer :smart_format
|
|
85
|
+
|
|
86
|
+
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
87
|
+
# to 5000 ms.
|
|
88
|
+
sig { returns(T.nilable(Integer)) }
|
|
89
|
+
attr_reader :utterance_end_ms
|
|
90
|
+
|
|
91
|
+
sig { params(utterance_end_ms: Integer).void }
|
|
92
|
+
attr_writer :utterance_end_ms
|
|
93
|
+
|
|
94
|
+
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
|
|
95
|
+
# and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
96
|
+
sig do
|
|
97
|
+
params(
|
|
98
|
+
transcription_engine:
|
|
99
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol,
|
|
100
|
+
transcription_model:
|
|
101
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol,
|
|
102
|
+
hints: T::Array[String],
|
|
103
|
+
interim_results: T::Boolean,
|
|
104
|
+
keywords_boosting: T::Hash[Symbol, Float],
|
|
105
|
+
language:
|
|
106
|
+
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
107
|
+
smart_format: T::Boolean,
|
|
108
|
+
utterance_end_ms: Integer
|
|
109
|
+
).returns(T.attached_class)
|
|
110
|
+
end
|
|
111
|
+
def self.new(
|
|
112
|
+
transcription_engine:,
|
|
113
|
+
transcription_model:,
|
|
114
|
+
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
115
|
+
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
116
|
+
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
117
|
+
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
118
|
+
hints: nil,
|
|
119
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
120
|
+
# be sent.
|
|
121
|
+
interim_results: nil,
|
|
122
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
123
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
124
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
125
|
+
keywords_boosting: nil,
|
|
126
|
+
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
127
|
+
# only.
|
|
128
|
+
language: nil,
|
|
129
|
+
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
130
|
+
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
131
|
+
# underlying default of `false` — omit the field to get a smart-formatted
|
|
132
|
+
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
133
|
+
# punctuation.
|
|
134
|
+
smart_format: nil,
|
|
135
|
+
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
136
|
+
# to 5000 ms.
|
|
137
|
+
utterance_end_ms: nil
|
|
138
|
+
)
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
sig do
|
|
142
|
+
override.returns(
|
|
143
|
+
{
|
|
144
|
+
transcription_engine:
|
|
145
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol,
|
|
146
|
+
transcription_model:
|
|
147
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol,
|
|
148
|
+
hints: T::Array[String],
|
|
149
|
+
interim_results: T::Boolean,
|
|
150
|
+
keywords_boosting: T::Hash[Symbol, Float],
|
|
151
|
+
language:
|
|
152
|
+
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
153
|
+
smart_format: T::Boolean,
|
|
154
|
+
utterance_end_ms: Integer
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
def to_hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
module TranscriptionEngine
|
|
162
|
+
extend Telnyx::Internal::Type::Enum
|
|
163
|
+
|
|
164
|
+
TaggedSymbol =
|
|
165
|
+
T.type_alias do
|
|
166
|
+
T.all(
|
|
167
|
+
Symbol,
|
|
168
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
172
|
+
|
|
173
|
+
DEEPGRAM =
|
|
174
|
+
T.let(
|
|
175
|
+
:Deepgram,
|
|
176
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine::TaggedSymbol
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
sig do
|
|
180
|
+
override.returns(
|
|
181
|
+
T::Array[
|
|
182
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionEngine::TaggedSymbol
|
|
183
|
+
]
|
|
184
|
+
)
|
|
185
|
+
end
|
|
186
|
+
def self.values
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
module TranscriptionModel
|
|
191
|
+
extend Telnyx::Internal::Type::Enum
|
|
192
|
+
|
|
193
|
+
TaggedSymbol =
|
|
194
|
+
T.type_alias do
|
|
195
|
+
T.all(
|
|
196
|
+
Symbol,
|
|
197
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel
|
|
198
|
+
)
|
|
199
|
+
end
|
|
200
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
201
|
+
|
|
202
|
+
DEEPGRAM_NOVA_2_MEDICAL =
|
|
203
|
+
T.let(
|
|
204
|
+
:"deepgram/nova-2-medical",
|
|
205
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
206
|
+
)
|
|
207
|
+
DEEPGRAM_NOVA_2_PHONECALL =
|
|
208
|
+
T.let(
|
|
209
|
+
:"deepgram/nova-2-phonecall",
|
|
210
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
sig do
|
|
214
|
+
override.returns(
|
|
215
|
+
T::Array[
|
|
216
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
217
|
+
]
|
|
218
|
+
)
|
|
219
|
+
end
|
|
220
|
+
def self.values
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|