telnyx 5.111.0 → 5.112.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +178 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +178 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +179 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +177 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +210 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +210 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +491 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +10 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +8 -3
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +10 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_create_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_list_response.rb +10 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +8 -3
- data/lib/telnyx/models.rb +0 -20
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +101 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +8 -22
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +366 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +351 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +315 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +310 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1075 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +23 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +23 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +23 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +36 -6
- data/rbi/telnyx/models.rbi +0 -20
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +152 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +152 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +149 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +149 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +149 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +416 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +11 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +11 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +11 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +18 -6
- data/sig/telnyx/models.rbs +0 -20
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +29 -0
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +26 -68
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -47
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -212
- data/lib/telnyx/models/public_internet_gateway_read.rb +0 -83
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +0 -212
- data/lib/telnyx/models/wireguard_interface_read.rb +0 -136
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -83
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -272
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +0 -128
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +0 -345
- data/rbi/telnyx/models/wireguard_interface_read.rbi +0 -213
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -40
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -142
- data/sig/telnyx/models/public_internet_gateway_read.rbs +0 -80
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +0 -190
- data/sig/telnyx/models/wireguard_interface_read.rbs +0 -127
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
class InferenceEmbeddingInterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::AI::InferenceEmbeddingInterruptionSettings,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# When true, disables user interruptions while the assistant greeting is playing.
|
|
16
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
-
attr_reader :disable_greeting_interruption
|
|
18
|
-
|
|
19
|
-
sig { params(disable_greeting_interruption: T::Boolean).void }
|
|
20
|
-
attr_writer :disable_greeting_interruption
|
|
21
|
-
|
|
22
|
-
# Whether users can interrupt the assistant while it is speaking.
|
|
23
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
-
attr_reader :enable
|
|
25
|
-
|
|
26
|
-
sig { params(enable: T::Boolean).void }
|
|
27
|
-
attr_writer :enable
|
|
28
|
-
|
|
29
|
-
# Controls when the assistant starts speaking after the user stops. These
|
|
30
|
-
# thresholds primarily apply to non turn-taking transcription models. For
|
|
31
|
-
# turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
32
|
-
# transcription end-of-turn settings under `transcription.settings` instead.
|
|
33
|
-
sig { returns(T.nilable(Telnyx::AI::StartSpeakingPlan)) }
|
|
34
|
-
attr_reader :start_speaking_plan
|
|
35
|
-
|
|
36
|
-
sig do
|
|
37
|
-
params(
|
|
38
|
-
start_speaking_plan: Telnyx::AI::StartSpeakingPlan::OrHash
|
|
39
|
-
).void
|
|
40
|
-
end
|
|
41
|
-
attr_writer :start_speaking_plan
|
|
42
|
-
|
|
43
|
-
# Settings for interruptions and how the assistant decides the user has finished
|
|
44
|
-
# speaking. These timings are most relevant when using non turn-taking
|
|
45
|
-
# transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
46
|
-
# behavior is controlled by the transcription end-of-turn settings under
|
|
47
|
-
# `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
48
|
-
# `eager_eot_threshold`).
|
|
49
|
-
sig do
|
|
50
|
-
params(
|
|
51
|
-
disable_greeting_interruption: T::Boolean,
|
|
52
|
-
enable: T::Boolean,
|
|
53
|
-
start_speaking_plan: Telnyx::AI::StartSpeakingPlan::OrHash
|
|
54
|
-
).returns(T.attached_class)
|
|
55
|
-
end
|
|
56
|
-
def self.new(
|
|
57
|
-
# When true, disables user interruptions while the assistant greeting is playing.
|
|
58
|
-
disable_greeting_interruption: nil,
|
|
59
|
-
# Whether users can interrupt the assistant while it is speaking.
|
|
60
|
-
enable: nil,
|
|
61
|
-
# Controls when the assistant starts speaking after the user stops. These
|
|
62
|
-
# thresholds primarily apply to non turn-taking transcription models. For
|
|
63
|
-
# turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
64
|
-
# transcription end-of-turn settings under `transcription.settings` instead.
|
|
65
|
-
start_speaking_plan: nil
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
sig do
|
|
70
|
-
override.returns(
|
|
71
|
-
{
|
|
72
|
-
disable_greeting_interruption: T::Boolean,
|
|
73
|
-
enable: T::Boolean,
|
|
74
|
-
start_speaking_plan: Telnyx::AI::StartSpeakingPlan
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
def to_hash
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(Telnyx::AI::StartSpeakingPlan, Telnyx::Internal::AnyHash)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Endpointing thresholds used to decide when the user has finished speaking.
|
|
13
|
-
# Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
14
|
-
# `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
15
|
-
# `eager_eot_threshold`.
|
|
16
|
-
sig { returns(T.nilable(Telnyx::AI::TranscriptionEndpointingPlan)) }
|
|
17
|
-
attr_reader :transcription_endpointing_plan
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
transcription_endpointing_plan:
|
|
22
|
-
Telnyx::AI::TranscriptionEndpointingPlan::OrHash
|
|
23
|
-
).void
|
|
24
|
-
end
|
|
25
|
-
attr_writer :transcription_endpointing_plan
|
|
26
|
-
|
|
27
|
-
# Minimum seconds to wait before the assistant starts speaking.
|
|
28
|
-
sig { returns(T.nilable(Float)) }
|
|
29
|
-
attr_reader :wait_seconds
|
|
30
|
-
|
|
31
|
-
sig { params(wait_seconds: Float).void }
|
|
32
|
-
attr_writer :wait_seconds
|
|
33
|
-
|
|
34
|
-
# Controls when the assistant starts speaking after the user stops. These
|
|
35
|
-
# thresholds primarily apply to non turn-taking transcription models. For
|
|
36
|
-
# turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
37
|
-
# transcription end-of-turn settings under `transcription.settings` instead.
|
|
38
|
-
sig do
|
|
39
|
-
params(
|
|
40
|
-
transcription_endpointing_plan:
|
|
41
|
-
Telnyx::AI::TranscriptionEndpointingPlan::OrHash,
|
|
42
|
-
wait_seconds: Float
|
|
43
|
-
).returns(T.attached_class)
|
|
44
|
-
end
|
|
45
|
-
def self.new(
|
|
46
|
-
# Endpointing thresholds used to decide when the user has finished speaking.
|
|
47
|
-
# Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
48
|
-
# `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
49
|
-
# `eager_eot_threshold`.
|
|
50
|
-
transcription_endpointing_plan: nil,
|
|
51
|
-
# Minimum seconds to wait before the assistant starts speaking.
|
|
52
|
-
wait_seconds: nil
|
|
53
|
-
)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
sig do
|
|
57
|
-
override.returns(
|
|
58
|
-
{
|
|
59
|
-
transcription_endpointing_plan:
|
|
60
|
-
Telnyx::AI::TranscriptionEndpointingPlan,
|
|
61
|
-
wait_seconds: Float
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
end
|
|
65
|
-
def to_hash
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module AI
|
|
6
|
-
class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::AI::TranscriptionEndpointingPlan,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Seconds to wait after the transcript ends without punctuation.
|
|
16
|
-
sig { returns(T.nilable(Float)) }
|
|
17
|
-
attr_reader :on_no_punctuation_seconds
|
|
18
|
-
|
|
19
|
-
sig { params(on_no_punctuation_seconds: Float).void }
|
|
20
|
-
attr_writer :on_no_punctuation_seconds
|
|
21
|
-
|
|
22
|
-
# Seconds to wait after the transcript ends with a number.
|
|
23
|
-
sig { returns(T.nilable(Float)) }
|
|
24
|
-
attr_reader :on_number_seconds
|
|
25
|
-
|
|
26
|
-
sig { params(on_number_seconds: Float).void }
|
|
27
|
-
attr_writer :on_number_seconds
|
|
28
|
-
|
|
29
|
-
# Seconds to wait after the transcript ends with punctuation.
|
|
30
|
-
sig { returns(T.nilable(Float)) }
|
|
31
|
-
attr_reader :on_punctuation_seconds
|
|
32
|
-
|
|
33
|
-
sig { params(on_punctuation_seconds: Float).void }
|
|
34
|
-
attr_writer :on_punctuation_seconds
|
|
35
|
-
|
|
36
|
-
# Endpointing thresholds used to decide when the user has finished speaking.
|
|
37
|
-
# Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
38
|
-
# `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
39
|
-
# `eager_eot_threshold`.
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
on_no_punctuation_seconds: Float,
|
|
43
|
-
on_number_seconds: Float,
|
|
44
|
-
on_punctuation_seconds: Float
|
|
45
|
-
).returns(T.attached_class)
|
|
46
|
-
end
|
|
47
|
-
def self.new(
|
|
48
|
-
# Seconds to wait after the transcript ends without punctuation.
|
|
49
|
-
on_no_punctuation_seconds: nil,
|
|
50
|
-
# Seconds to wait after the transcript ends with a number.
|
|
51
|
-
on_number_seconds: nil,
|
|
52
|
-
# Seconds to wait after the transcript ends with punctuation.
|
|
53
|
-
on_punctuation_seconds: nil
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
sig do
|
|
58
|
-
override.returns(
|
|
59
|
-
{
|
|
60
|
-
on_no_punctuation_seconds: Float,
|
|
61
|
-
on_number_seconds: Float,
|
|
62
|
-
on_punctuation_seconds: Float
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
end
|
|
66
|
-
def to_hash
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Calls
|
|
6
|
-
class TranscriptionEngineAssemblyaiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
16
|
-
# be sent.
|
|
17
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
18
|
-
attr_reader :interim_results
|
|
19
|
-
|
|
20
|
-
sig { params(interim_results: T::Boolean).void }
|
|
21
|
-
attr_writer :interim_results
|
|
22
|
-
|
|
23
|
-
# Engine identifier for AssemblyAI transcription service
|
|
24
|
-
sig do
|
|
25
|
-
returns(
|
|
26
|
-
T.nilable(
|
|
27
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::OrSymbol
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
attr_reader :transcription_engine
|
|
32
|
-
|
|
33
|
-
sig do
|
|
34
|
-
params(
|
|
35
|
-
transcription_engine:
|
|
36
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::OrSymbol
|
|
37
|
-
).void
|
|
38
|
-
end
|
|
39
|
-
attr_writer :transcription_engine
|
|
40
|
-
|
|
41
|
-
# The model to use for transcription.
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::OrSymbol
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
attr_reader :transcription_model
|
|
50
|
-
|
|
51
|
-
sig do
|
|
52
|
-
params(
|
|
53
|
-
transcription_model:
|
|
54
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::OrSymbol
|
|
55
|
-
).void
|
|
56
|
-
end
|
|
57
|
-
attr_writer :transcription_model
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
params(
|
|
61
|
-
interim_results: T::Boolean,
|
|
62
|
-
transcription_engine:
|
|
63
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::OrSymbol,
|
|
64
|
-
transcription_model:
|
|
65
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::OrSymbol
|
|
66
|
-
).returns(T.attached_class)
|
|
67
|
-
end
|
|
68
|
-
def self.new(
|
|
69
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
70
|
-
# be sent.
|
|
71
|
-
interim_results: nil,
|
|
72
|
-
# Engine identifier for AssemblyAI transcription service
|
|
73
|
-
transcription_engine: nil,
|
|
74
|
-
# The model to use for transcription.
|
|
75
|
-
transcription_model: nil
|
|
76
|
-
)
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
sig do
|
|
80
|
-
override.returns(
|
|
81
|
-
{
|
|
82
|
-
interim_results: T::Boolean,
|
|
83
|
-
transcription_engine:
|
|
84
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::OrSymbol,
|
|
85
|
-
transcription_model:
|
|
86
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::OrSymbol
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
end
|
|
90
|
-
def to_hash
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Engine identifier for AssemblyAI transcription service
|
|
94
|
-
module TranscriptionEngine
|
|
95
|
-
extend Telnyx::Internal::Type::Enum
|
|
96
|
-
|
|
97
|
-
TaggedSymbol =
|
|
98
|
-
T.type_alias do
|
|
99
|
-
T.all(
|
|
100
|
-
Symbol,
|
|
101
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine
|
|
102
|
-
)
|
|
103
|
-
end
|
|
104
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
105
|
-
|
|
106
|
-
ASSEMBLY_AI =
|
|
107
|
-
T.let(
|
|
108
|
-
:AssemblyAI,
|
|
109
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::TaggedSymbol
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
sig do
|
|
113
|
-
override.returns(
|
|
114
|
-
T::Array[
|
|
115
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine::TaggedSymbol
|
|
116
|
-
]
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
def self.values
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# The model to use for transcription.
|
|
124
|
-
module TranscriptionModel
|
|
125
|
-
extend Telnyx::Internal::Type::Enum
|
|
126
|
-
|
|
127
|
-
TaggedSymbol =
|
|
128
|
-
T.type_alias do
|
|
129
|
-
T.all(
|
|
130
|
-
Symbol,
|
|
131
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
135
|
-
|
|
136
|
-
ASSEMBLYAI_UNIVERSAL_STREAMING =
|
|
137
|
-
T.let(
|
|
138
|
-
:"assemblyai/universal-streaming",
|
|
139
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::TaggedSymbol
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
override.returns(
|
|
144
|
-
T::Array[
|
|
145
|
-
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel::TaggedSymbol
|
|
146
|
-
]
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
def self.values
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
end
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Calls
|
|
6
|
-
class TranscriptionEngineXaiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
16
|
-
# be sent.
|
|
17
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
18
|
-
attr_reader :interim_results
|
|
19
|
-
|
|
20
|
-
sig { params(interim_results: T::Boolean).void }
|
|
21
|
-
attr_writer :interim_results
|
|
22
|
-
|
|
23
|
-
# Language to use for speech recognition
|
|
24
|
-
sig do
|
|
25
|
-
returns(
|
|
26
|
-
T.nilable(
|
|
27
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::OrSymbol
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
attr_reader :language
|
|
32
|
-
|
|
33
|
-
sig do
|
|
34
|
-
params(
|
|
35
|
-
language:
|
|
36
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::OrSymbol
|
|
37
|
-
).void
|
|
38
|
-
end
|
|
39
|
-
attr_writer :language
|
|
40
|
-
|
|
41
|
-
# Engine identifier for xAI transcription service
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::OrSymbol
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
attr_reader :transcription_engine
|
|
50
|
-
|
|
51
|
-
sig do
|
|
52
|
-
params(
|
|
53
|
-
transcription_engine:
|
|
54
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::OrSymbol
|
|
55
|
-
).void
|
|
56
|
-
end
|
|
57
|
-
attr_writer :transcription_engine
|
|
58
|
-
|
|
59
|
-
# The model to use for transcription.
|
|
60
|
-
sig do
|
|
61
|
-
returns(
|
|
62
|
-
T.nilable(
|
|
63
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::OrSymbol
|
|
64
|
-
)
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
attr_reader :transcription_model
|
|
68
|
-
|
|
69
|
-
sig do
|
|
70
|
-
params(
|
|
71
|
-
transcription_model:
|
|
72
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::OrSymbol
|
|
73
|
-
).void
|
|
74
|
-
end
|
|
75
|
-
attr_writer :transcription_model
|
|
76
|
-
|
|
77
|
-
sig do
|
|
78
|
-
params(
|
|
79
|
-
interim_results: T::Boolean,
|
|
80
|
-
language:
|
|
81
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::OrSymbol,
|
|
82
|
-
transcription_engine:
|
|
83
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::OrSymbol,
|
|
84
|
-
transcription_model:
|
|
85
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::OrSymbol
|
|
86
|
-
).returns(T.attached_class)
|
|
87
|
-
end
|
|
88
|
-
def self.new(
|
|
89
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
90
|
-
# be sent.
|
|
91
|
-
interim_results: nil,
|
|
92
|
-
# Language to use for speech recognition
|
|
93
|
-
language: nil,
|
|
94
|
-
# Engine identifier for xAI transcription service
|
|
95
|
-
transcription_engine: nil,
|
|
96
|
-
# The model to use for transcription.
|
|
97
|
-
transcription_model: nil
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
sig do
|
|
102
|
-
override.returns(
|
|
103
|
-
{
|
|
104
|
-
interim_results: T::Boolean,
|
|
105
|
-
language:
|
|
106
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::OrSymbol,
|
|
107
|
-
transcription_engine:
|
|
108
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::OrSymbol,
|
|
109
|
-
transcription_model:
|
|
110
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::OrSymbol
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
def to_hash
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
# Language to use for speech recognition
|
|
118
|
-
module Language
|
|
119
|
-
extend Telnyx::Internal::Type::Enum
|
|
120
|
-
|
|
121
|
-
TaggedSymbol =
|
|
122
|
-
T.type_alias do
|
|
123
|
-
T.all(
|
|
124
|
-
Symbol,
|
|
125
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language
|
|
126
|
-
)
|
|
127
|
-
end
|
|
128
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
-
|
|
130
|
-
AR =
|
|
131
|
-
T.let(
|
|
132
|
-
:ar,
|
|
133
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
134
|
-
)
|
|
135
|
-
CS =
|
|
136
|
-
T.let(
|
|
137
|
-
:cs,
|
|
138
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
139
|
-
)
|
|
140
|
-
DA =
|
|
141
|
-
T.let(
|
|
142
|
-
:da,
|
|
143
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
144
|
-
)
|
|
145
|
-
DE =
|
|
146
|
-
T.let(
|
|
147
|
-
:de,
|
|
148
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
149
|
-
)
|
|
150
|
-
EN =
|
|
151
|
-
T.let(
|
|
152
|
-
:en,
|
|
153
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
154
|
-
)
|
|
155
|
-
ES =
|
|
156
|
-
T.let(
|
|
157
|
-
:es,
|
|
158
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
159
|
-
)
|
|
160
|
-
FA =
|
|
161
|
-
T.let(
|
|
162
|
-
:fa,
|
|
163
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
164
|
-
)
|
|
165
|
-
FIL =
|
|
166
|
-
T.let(
|
|
167
|
-
:fil,
|
|
168
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
169
|
-
)
|
|
170
|
-
FR =
|
|
171
|
-
T.let(
|
|
172
|
-
:fr,
|
|
173
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
174
|
-
)
|
|
175
|
-
HI =
|
|
176
|
-
T.let(
|
|
177
|
-
:hi,
|
|
178
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
179
|
-
)
|
|
180
|
-
ID =
|
|
181
|
-
T.let(
|
|
182
|
-
:id,
|
|
183
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
184
|
-
)
|
|
185
|
-
IT =
|
|
186
|
-
T.let(
|
|
187
|
-
:it,
|
|
188
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
189
|
-
)
|
|
190
|
-
JA =
|
|
191
|
-
T.let(
|
|
192
|
-
:ja,
|
|
193
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
194
|
-
)
|
|
195
|
-
KO =
|
|
196
|
-
T.let(
|
|
197
|
-
:ko,
|
|
198
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
199
|
-
)
|
|
200
|
-
MK =
|
|
201
|
-
T.let(
|
|
202
|
-
:mk,
|
|
203
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
204
|
-
)
|
|
205
|
-
MS =
|
|
206
|
-
T.let(
|
|
207
|
-
:ms,
|
|
208
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
209
|
-
)
|
|
210
|
-
NL =
|
|
211
|
-
T.let(
|
|
212
|
-
:nl,
|
|
213
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
214
|
-
)
|
|
215
|
-
PL =
|
|
216
|
-
T.let(
|
|
217
|
-
:pl,
|
|
218
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
219
|
-
)
|
|
220
|
-
PT =
|
|
221
|
-
T.let(
|
|
222
|
-
:pt,
|
|
223
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
224
|
-
)
|
|
225
|
-
RO =
|
|
226
|
-
T.let(
|
|
227
|
-
:ro,
|
|
228
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
229
|
-
)
|
|
230
|
-
RU =
|
|
231
|
-
T.let(
|
|
232
|
-
:ru,
|
|
233
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
234
|
-
)
|
|
235
|
-
SV =
|
|
236
|
-
T.let(
|
|
237
|
-
:sv,
|
|
238
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
239
|
-
)
|
|
240
|
-
TH =
|
|
241
|
-
T.let(
|
|
242
|
-
:th,
|
|
243
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
244
|
-
)
|
|
245
|
-
TR =
|
|
246
|
-
T.let(
|
|
247
|
-
:tr,
|
|
248
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
249
|
-
)
|
|
250
|
-
VI =
|
|
251
|
-
T.let(
|
|
252
|
-
:vi,
|
|
253
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
254
|
-
)
|
|
255
|
-
|
|
256
|
-
sig do
|
|
257
|
-
override.returns(
|
|
258
|
-
T::Array[
|
|
259
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::Language::TaggedSymbol
|
|
260
|
-
]
|
|
261
|
-
)
|
|
262
|
-
end
|
|
263
|
-
def self.values
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
# Engine identifier for xAI transcription service
|
|
268
|
-
module TranscriptionEngine
|
|
269
|
-
extend Telnyx::Internal::Type::Enum
|
|
270
|
-
|
|
271
|
-
TaggedSymbol =
|
|
272
|
-
T.type_alias do
|
|
273
|
-
T.all(
|
|
274
|
-
Symbol,
|
|
275
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine
|
|
276
|
-
)
|
|
277
|
-
end
|
|
278
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
279
|
-
|
|
280
|
-
X_AI =
|
|
281
|
-
T.let(
|
|
282
|
-
:xAI,
|
|
283
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::TaggedSymbol
|
|
284
|
-
)
|
|
285
|
-
|
|
286
|
-
sig do
|
|
287
|
-
override.returns(
|
|
288
|
-
T::Array[
|
|
289
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine::TaggedSymbol
|
|
290
|
-
]
|
|
291
|
-
)
|
|
292
|
-
end
|
|
293
|
-
def self.values
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
# The model to use for transcription.
|
|
298
|
-
module TranscriptionModel
|
|
299
|
-
extend Telnyx::Internal::Type::Enum
|
|
300
|
-
|
|
301
|
-
TaggedSymbol =
|
|
302
|
-
T.type_alias do
|
|
303
|
-
T.all(
|
|
304
|
-
Symbol,
|
|
305
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel
|
|
306
|
-
)
|
|
307
|
-
end
|
|
308
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
309
|
-
|
|
310
|
-
XAI_GROK_STT =
|
|
311
|
-
T.let(
|
|
312
|
-
:"xai/grok-stt",
|
|
313
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::TaggedSymbol
|
|
314
|
-
)
|
|
315
|
-
|
|
316
|
-
sig do
|
|
317
|
-
override.returns(
|
|
318
|
-
T::Array[
|
|
319
|
-
Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel::TaggedSymbol
|
|
320
|
-
]
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
def self.values
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
end
|
|
328
|
-
end
|
|
329
|
-
end
|