telnyx 5.112.0 → 5.113.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 +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_create_response_params.rb +4 -4
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
- data/lib/telnyx/models/call_conversation_ended.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/fax.rb +7 -5
- data/lib/telnyx/models/fax_create_params.rb +7 -5
- data/lib/telnyx/models/fax_delivered.rb +3 -2
- data/lib/telnyx/models/fax_failed.rb +3 -2
- data/lib/telnyx/models/fax_media_processed.rb +3 -2
- data/lib/telnyx/models/fax_queued.rb +3 -2
- data/lib/telnyx/models/fax_sending_started.rb +3 -2
- data/lib/telnyx/models/model_metadata.rb +212 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- 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/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +15 -17
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/faxes.rb +13 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/texml.rb +4 -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 +23 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
- data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/fax.rbi +12 -8
- data/rbi/telnyx/models/fax_create_params.rbi +12 -8
- data/rbi/telnyx/models/fax_delivered.rbi +6 -4
- data/rbi/telnyx/models/fax_failed.rbi +6 -4
- data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
- data/rbi/telnyx/models/fax_queued.rbi +6 -4
- data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
- data/rbi/telnyx/models/model_metadata.rbi +272 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +24 -24
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/faxes.rbi +18 -4
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/texml.rbi +7 -1
- data/rbi/telnyx/resources/uac_connections.rbi +7 -13
- 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 +18 -149
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
- data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +142 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- 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/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- data/sig/telnyx/resources/calls/actions.rbs +2 -4
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/texml.rbs +1 -0
- 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 +71 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -0,0 +1,155 @@
|
|
|
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
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class TranscriptionEngineSpeechmaticsConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
|
|
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::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
attr_reader :language
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
language:
|
|
36
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :language
|
|
40
|
+
|
|
41
|
+
# Engine identifier for Speechmatics transcription service
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(
|
|
45
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
attr_reader :transcription_engine
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
transcription_engine:
|
|
54
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::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::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
|
|
64
|
+
)
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
attr_reader :transcription_model
|
|
68
|
+
|
|
69
|
+
sig do
|
|
70
|
+
params(
|
|
71
|
+
transcription_model:
|
|
72
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::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::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
|
|
82
|
+
transcription_engine:
|
|
83
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
|
|
84
|
+
transcription_model:
|
|
85
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::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 Speechmatics 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::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
|
|
107
|
+
transcription_engine:
|
|
108
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
|
|
109
|
+
transcription_model:
|
|
110
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::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::TranscriptionEngineSpeechmaticsConfig::Language
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
+
|
|
130
|
+
EN =
|
|
131
|
+
T.let(
|
|
132
|
+
:en,
|
|
133
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
BA =
|
|
136
|
+
T.let(
|
|
137
|
+
:ba,
|
|
138
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
EU =
|
|
141
|
+
T.let(
|
|
142
|
+
:eu,
|
|
143
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
GL =
|
|
146
|
+
T.let(
|
|
147
|
+
:gl,
|
|
148
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
149
|
+
)
|
|
150
|
+
GA =
|
|
151
|
+
T.let(
|
|
152
|
+
:ga,
|
|
153
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
154
|
+
)
|
|
155
|
+
MT =
|
|
156
|
+
T.let(
|
|
157
|
+
:mt,
|
|
158
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
159
|
+
)
|
|
160
|
+
MN =
|
|
161
|
+
T.let(
|
|
162
|
+
:mn,
|
|
163
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
164
|
+
)
|
|
165
|
+
SW =
|
|
166
|
+
T.let(
|
|
167
|
+
:sw,
|
|
168
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
169
|
+
)
|
|
170
|
+
UG =
|
|
171
|
+
T.let(
|
|
172
|
+
:ug,
|
|
173
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
174
|
+
)
|
|
175
|
+
CY =
|
|
176
|
+
T.let(
|
|
177
|
+
:cy,
|
|
178
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
179
|
+
)
|
|
180
|
+
AR_EN =
|
|
181
|
+
T.let(
|
|
182
|
+
:ar_en,
|
|
183
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
184
|
+
)
|
|
185
|
+
CMN_EN =
|
|
186
|
+
T.let(
|
|
187
|
+
:cmn_en,
|
|
188
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
189
|
+
)
|
|
190
|
+
EN_MS =
|
|
191
|
+
T.let(
|
|
192
|
+
:en_ms,
|
|
193
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
194
|
+
)
|
|
195
|
+
EN_TA =
|
|
196
|
+
T.let(
|
|
197
|
+
:en_ta,
|
|
198
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
199
|
+
)
|
|
200
|
+
TL =
|
|
201
|
+
T.let(
|
|
202
|
+
:tl,
|
|
203
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
204
|
+
)
|
|
205
|
+
ES_BILINGUAL_EN =
|
|
206
|
+
T.let(
|
|
207
|
+
:"es-bilingual-en",
|
|
208
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
209
|
+
)
|
|
210
|
+
CMN_EN_MS_TA =
|
|
211
|
+
T.let(
|
|
212
|
+
:cmn_en_ms_ta,
|
|
213
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
sig do
|
|
217
|
+
override.returns(
|
|
218
|
+
T::Array[
|
|
219
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
220
|
+
]
|
|
221
|
+
)
|
|
222
|
+
end
|
|
223
|
+
def self.values
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Engine identifier for Speechmatics transcription service
|
|
228
|
+
module TranscriptionEngine
|
|
229
|
+
extend Telnyx::Internal::Type::Enum
|
|
230
|
+
|
|
231
|
+
TaggedSymbol =
|
|
232
|
+
T.type_alias do
|
|
233
|
+
T.all(
|
|
234
|
+
Symbol,
|
|
235
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine
|
|
236
|
+
)
|
|
237
|
+
end
|
|
238
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
239
|
+
|
|
240
|
+
SPEECHMATICS =
|
|
241
|
+
T.let(
|
|
242
|
+
:Speechmatics,
|
|
243
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
sig do
|
|
247
|
+
override.returns(
|
|
248
|
+
T::Array[
|
|
249
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
|
|
250
|
+
]
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
def self.values
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# The model to use for transcription.
|
|
258
|
+
module TranscriptionModel
|
|
259
|
+
extend Telnyx::Internal::Type::Enum
|
|
260
|
+
|
|
261
|
+
TaggedSymbol =
|
|
262
|
+
T.type_alias do
|
|
263
|
+
T.all(
|
|
264
|
+
Symbol,
|
|
265
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
269
|
+
|
|
270
|
+
SPEECHMATICS_STANDARD =
|
|
271
|
+
T.let(
|
|
272
|
+
:"speechmatics/standard",
|
|
273
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
sig do
|
|
277
|
+
override.returns(
|
|
278
|
+
T::Array[
|
|
279
|
+
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
end
|
|
283
|
+
def self.values
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
end
|