telnyx 5.29.0 → 5.30.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 +12 -0
- data/README.md +1 -1
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +120 -0
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +92 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +3 -185
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -189
- data/lib/telnyx/models/global_ip_assignment.rb +0 -1
- data/lib/telnyx/models/global_ip_assignment_create_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_delete_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_retrieve_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_update_params.rb +1 -1
- data/lib/telnyx/models/global_ip_assignment_update_response.rb +2 -2
- data/lib/telnyx/models/global_ip_create_response.rb +34 -2
- data/lib/telnyx/models/global_ip_delete_response.rb +34 -2
- data/lib/telnyx/models/global_ip_health_check_create_response.rb +36 -2
- data/lib/telnyx/models/global_ip_health_check_delete_response.rb +36 -2
- data/lib/telnyx/models/global_ip_health_check_list_response.rb +36 -2
- data/lib/telnyx/models/global_ip_health_check_retrieve_response.rb +36 -2
- data/lib/telnyx/models/global_ip_list_response.rb +34 -2
- data/lib/telnyx/models/global_ip_retrieve_response.rb +34 -2
- data/lib/telnyx/models/message_cancel_scheduled_response.rb +12 -1
- data/lib/telnyx/models/message_send_long_code_params.rb +29 -1
- data/lib/telnyx/models/message_send_number_pool_params.rb +29 -1
- data/lib/telnyx/models/message_send_params.rb +29 -1
- data/lib/telnyx/models/message_send_short_code_params.rb +29 -1
- data/lib/telnyx/models/network_create.rb +36 -2
- data/lib/telnyx/models/network_create_response.rb +36 -2
- data/lib/telnyx/models/network_delete_response.rb +36 -2
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/network_list_response.rb +36 -2
- data/lib/telnyx/models/network_retrieve_response.rb +36 -2
- data/lib/telnyx/models/network_update_response.rb +36 -2
- data/lib/telnyx/models/networks/default_gateway_create_response.rb +34 -2
- data/lib/telnyx/models/networks/default_gateway_delete_response.rb +34 -2
- data/lib/telnyx/models/networks/default_gateway_retrieve_response.rb +34 -2
- data/lib/telnyx/models/outbound_message_payload.rb +12 -1
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +75 -2
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +75 -2
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +75 -2
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +75 -2
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +2 -272
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +2 -272
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +2 -271
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +2 -272
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +2 -272
- data/lib/telnyx/models/wireguard_interface_create_response.rb +128 -2
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +128 -2
- data/lib/telnyx/models/wireguard_interface_list_response.rb +128 -2
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +128 -2
- data/lib/telnyx/models/wireguard_peer_create_response.rb +2 -75
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +2 -75
- data/lib/telnyx/models/wireguard_peer_list_response.rb +2 -75
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +2 -75
- data/lib/telnyx/models/wireguard_peer_update_response.rb +2 -75
- data/lib/telnyx/models.rb +0 -2
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/global_ip_assignments.rb +1 -1
- data/lib/telnyx/resources/messages.rb +12 -4
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +3 -2
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +389 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +249 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +2 -578
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -586
- data/rbi/telnyx/models/global_ip_assignment_update_params.rbi +11 -2
- data/rbi/telnyx/models/global_ip_create_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_delete_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_health_check_create_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_health_check_delete_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_health_check_list_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_health_check_retrieve_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_list_response.rbi +45 -1
- data/rbi/telnyx/models/global_ip_retrieve_response.rbi +45 -1
- data/rbi/telnyx/models/message_cancel_scheduled_response.rbi +17 -0
- data/rbi/telnyx/models/message_send_long_code_params.rbi +66 -0
- data/rbi/telnyx/models/message_send_number_pool_params.rbi +68 -0
- data/rbi/telnyx/models/message_send_params.rbi +46 -0
- data/rbi/telnyx/models/message_send_short_code_params.rbi +66 -0
- data/rbi/telnyx/models/network_create.rbi +58 -4
- data/rbi/telnyx/models/network_create_response.rbi +57 -3
- data/rbi/telnyx/models/network_delete_response.rbi +57 -3
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/network_list_response.rbi +57 -3
- data/rbi/telnyx/models/network_retrieve_response.rbi +57 -3
- data/rbi/telnyx/models/network_update_response.rbi +57 -3
- data/rbi/telnyx/models/networks/default_gateway_create_response.rbi +45 -1
- data/rbi/telnyx/models/networks/default_gateway_delete_response.rbi +45 -1
- data/rbi/telnyx/models/networks/default_gateway_retrieve_response.rbi +45 -1
- data/rbi/telnyx/models/outbound_message_payload.rbi +17 -0
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +112 -4
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +112 -4
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +112 -4
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +112 -4
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +4 -449
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +4 -449
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +4 -444
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +4 -449
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +4 -449
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +210 -4
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +210 -4
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +204 -4
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +210 -4
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +4 -111
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +4 -111
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +4 -111
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +4 -111
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +4 -111
- data/rbi/telnyx/models.rbi +0 -2
- data/rbi/telnyx/resources/calls/actions.rbi +2 -2
- data/rbi/telnyx/resources/messages.rbi +28 -0
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +160 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +104 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +1 -240
- data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -240
- data/sig/telnyx/models/global_ip_assignment_update_params.rbs +17 -3
- data/sig/telnyx/models/global_ip_create_response.rbs +37 -9
- data/sig/telnyx/models/global_ip_delete_response.rbs +37 -9
- data/sig/telnyx/models/global_ip_health_check_create_response.rbs +35 -7
- data/sig/telnyx/models/global_ip_health_check_delete_response.rbs +35 -7
- data/sig/telnyx/models/global_ip_health_check_list_response.rbs +35 -7
- data/sig/telnyx/models/global_ip_health_check_retrieve_response.rbs +35 -7
- data/sig/telnyx/models/global_ip_list_response.rbs +37 -9
- data/sig/telnyx/models/global_ip_retrieve_response.rbs +37 -9
- data/sig/telnyx/models/message_cancel_scheduled_response.rbs +7 -0
- data/sig/telnyx/models/message_send_long_code_params.rbs +21 -0
- data/sig/telnyx/models/message_send_number_pool_params.rbs +21 -0
- data/sig/telnyx/models/message_send_params.rbs +21 -0
- data/sig/telnyx/models/message_send_short_code_params.rbs +21 -0
- data/sig/telnyx/models/network_create.rbs +39 -6
- data/sig/telnyx/models/network_create_response.rbs +41 -6
- data/sig/telnyx/models/network_delete_response.rbs +41 -6
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/network_list_response.rbs +41 -6
- data/sig/telnyx/models/network_retrieve_response.rbs +41 -6
- data/sig/telnyx/models/network_update_response.rbs +41 -6
- data/sig/telnyx/models/networks/default_gateway_create_response.rbs +35 -7
- data/sig/telnyx/models/networks/default_gateway_delete_response.rbs +35 -7
- data/sig/telnyx/models/networks/default_gateway_retrieve_response.rbs +35 -7
- data/sig/telnyx/models/outbound_message_payload.rbs +7 -0
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +73 -4
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +73 -4
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +73 -4
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +73 -4
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +4 -225
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +4 -225
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +4 -225
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +4 -225
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +4 -225
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +120 -4
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +120 -4
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +120 -4
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +120 -4
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +4 -64
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +4 -64
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +4 -64
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +4 -64
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +4 -64
- data/sig/telnyx/models.rbs +0 -2
- data/sig/telnyx/resources/messages.rbs +4 -0
- metadata +7 -4
- data/lib/telnyx/models/record.rb +0 -42
- data/rbi/telnyx/models/record.rbi +0 -70
- data/sig/telnyx/models/record.rbs +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eab9dbdfd8844cddbcae4e690e5e155288ad98f91d1391930c616538b3ed838
|
|
4
|
+
data.tar.gz: f044db7e269f7e0d8645c65526889044c06f6f36ca690330f1835896dc717556
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '093992e6e10fae89cfb755103e5928fd3e4358044fdca9616cf6cdcac97017dddbcf715f89c888a165912839d23048f122cada96052de70934321d3e898f9506'
|
|
7
|
+
data.tar.gz: 5d82758abe95a5b07ad18c819d4dc75e663ddcf7a443ba3158745ec261658c1cad40e4d9d6da8579deaf7ea4d016e5e79f5eac209873794c1279e6f28ca4408e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.30.0 (2026-02-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.29.0...v5.30.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.29.0...v5.30.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add smart encoding fields to messaging API spec ([3926c57](https://github.com/team-telnyx/telnyx-ruby/commit/3926c578c24284ddee43ea3f48c6ec6785f08921))
|
|
10
|
+
* **api:** manual updates ([b632006](https://github.com/team-telnyx/telnyx-ruby/commit/b6320068496f42cfe1b57c61c0364902a0aea836))
|
|
11
|
+
* **api:** manual updates ([9dc2dbb](https://github.com/team-telnyx/telnyx-ruby/commit/9dc2dbb38f108cfcfc52f88d814d40216305f024))
|
|
12
|
+
* **api:** manual updates ([ebd29fc](https://github.com/team-telnyx/telnyx-ruby/commit/ebd29fce6693961abc9c2d2ba66497c7f0c2ba66))
|
|
13
|
+
* **api:** manual updates ([49e81d8](https://github.com/team-telnyx/telnyx-ruby/commit/49e81d811bd71f68ec0e226c6ee9f2dc881d9f11))
|
|
14
|
+
|
|
3
15
|
## 5.29.0 (2026-02-18)
|
|
4
16
|
|
|
5
17
|
Full Changelog: [v5.28.0...v5.29.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.28.0...v5.29.0)
|
data/README.md
CHANGED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramNova2Config < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine, enum: -> { Telnyx::Calls::DeepgramNova2Config::TranscriptionEngine }
|
|
11
|
+
|
|
12
|
+
# @!attribute transcription_model
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionModel]
|
|
15
|
+
required :transcription_model, enum: -> { Telnyx::Calls::DeepgramNova2Config::TranscriptionModel }
|
|
16
|
+
|
|
17
|
+
# @!attribute keywords_boosting
|
|
18
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
19
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
20
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
21
|
+
#
|
|
22
|
+
# @return [Hash{Symbol=>Float}, nil]
|
|
23
|
+
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
24
|
+
|
|
25
|
+
# @!attribute language
|
|
26
|
+
# Language to use for speech recognition with nova-2 model
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::Language, nil]
|
|
29
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramNova2Config::Language }
|
|
30
|
+
|
|
31
|
+
# @!method initialize(transcription_engine:, transcription_model:, keywords_boosting: nil, language: nil)
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {Telnyx::Models::Calls::DeepgramNova2Config} for more details.
|
|
34
|
+
#
|
|
35
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionEngine]
|
|
36
|
+
#
|
|
37
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::TranscriptionModel]
|
|
38
|
+
#
|
|
39
|
+
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
40
|
+
#
|
|
41
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramNova2Config::Language] Language to use for speech recognition with nova-2 model
|
|
42
|
+
|
|
43
|
+
# @see Telnyx::Models::Calls::DeepgramNova2Config#transcription_engine
|
|
44
|
+
module TranscriptionEngine
|
|
45
|
+
extend Telnyx::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
DEEPGRAM = :Deepgram
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @see Telnyx::Models::Calls::DeepgramNova2Config#transcription_model
|
|
54
|
+
module TranscriptionModel
|
|
55
|
+
extend Telnyx::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
DEEPGRAM_NOVA_2 = :"deepgram/nova-2"
|
|
58
|
+
|
|
59
|
+
# @!method self.values
|
|
60
|
+
# @return [Array<Symbol>]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Language to use for speech recognition with nova-2 model
|
|
64
|
+
#
|
|
65
|
+
# @see Telnyx::Models::Calls::DeepgramNova2Config#language
|
|
66
|
+
module Language
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
BG = :bg
|
|
70
|
+
CA = :ca
|
|
71
|
+
ZH_CN = :"zh-CN"
|
|
72
|
+
ZH_HANS = :"zh-Hans"
|
|
73
|
+
ZH_TW = :"zh-TW"
|
|
74
|
+
ZH_HANT = :"zh-Hant"
|
|
75
|
+
ZH_HK = :"zh-HK"
|
|
76
|
+
CS = :cs
|
|
77
|
+
DA_DK = :"da-DK"
|
|
78
|
+
NL_BE = :"nl-BE"
|
|
79
|
+
EN_US = :"en-US"
|
|
80
|
+
EN_AU = :"en-AU"
|
|
81
|
+
EN_GB = :"en-GB"
|
|
82
|
+
EN_NZ = :"en-NZ"
|
|
83
|
+
EN_IN = :"en-IN"
|
|
84
|
+
ET = :et
|
|
85
|
+
FI = :fi
|
|
86
|
+
FR = :fr
|
|
87
|
+
FR_CA = :"fr-CA"
|
|
88
|
+
DE_CH = :"de-CH"
|
|
89
|
+
EL = :el
|
|
90
|
+
HI = :hi
|
|
91
|
+
HU = :hu
|
|
92
|
+
ID = :id
|
|
93
|
+
IT = :it
|
|
94
|
+
JA = :ja
|
|
95
|
+
KO_KR = :"ko-KR"
|
|
96
|
+
LV = :lv
|
|
97
|
+
LT = :lt
|
|
98
|
+
MS = :ms
|
|
99
|
+
NO = :no
|
|
100
|
+
PL = :pl
|
|
101
|
+
PT_BR = :"pt-BR"
|
|
102
|
+
PT_PT = :"pt-PT"
|
|
103
|
+
RO = :ro
|
|
104
|
+
RU = :ru
|
|
105
|
+
SK = :sk
|
|
106
|
+
ES_419 = :"es-419"
|
|
107
|
+
SV_SE = :"sv-SE"
|
|
108
|
+
TH_TH = :"th-TH"
|
|
109
|
+
TR = :tr
|
|
110
|
+
UK = :uk
|
|
111
|
+
VI = :vi
|
|
112
|
+
AUTO_DETECT = :auto_detect
|
|
113
|
+
|
|
114
|
+
# @!method self.values
|
|
115
|
+
# @return [Array<Symbol>]
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class DeepgramNova3Config < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute transcription_engine
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::TranscriptionEngine]
|
|
10
|
+
required :transcription_engine, enum: -> { Telnyx::Calls::DeepgramNova3Config::TranscriptionEngine }
|
|
11
|
+
|
|
12
|
+
# @!attribute transcription_model
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::TranscriptionModel]
|
|
15
|
+
required :transcription_model, enum: -> { Telnyx::Calls::DeepgramNova3Config::TranscriptionModel }
|
|
16
|
+
|
|
17
|
+
# @!attribute keywords_boosting
|
|
18
|
+
# Keywords and their respective intensifiers (boosting values) to improve
|
|
19
|
+
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
20
|
+
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
21
|
+
#
|
|
22
|
+
# @return [Hash{Symbol=>Float}, nil]
|
|
23
|
+
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
24
|
+
|
|
25
|
+
# @!attribute language
|
|
26
|
+
# Language to use for speech recognition with nova-3 model
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::Language, nil]
|
|
29
|
+
optional :language, enum: -> { Telnyx::Calls::DeepgramNova3Config::Language }
|
|
30
|
+
|
|
31
|
+
# @!method initialize(transcription_engine:, transcription_model:, keywords_boosting: nil, language: nil)
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {Telnyx::Models::Calls::DeepgramNova3Config} for more details.
|
|
34
|
+
#
|
|
35
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::TranscriptionEngine]
|
|
36
|
+
#
|
|
37
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::TranscriptionModel]
|
|
38
|
+
#
|
|
39
|
+
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
40
|
+
#
|
|
41
|
+
# @param language [Symbol, Telnyx::Models::Calls::DeepgramNova3Config::Language] Language to use for speech recognition with nova-3 model
|
|
42
|
+
|
|
43
|
+
# @see Telnyx::Models::Calls::DeepgramNova3Config#transcription_engine
|
|
44
|
+
module TranscriptionEngine
|
|
45
|
+
extend Telnyx::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
DEEPGRAM = :Deepgram
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @see Telnyx::Models::Calls::DeepgramNova3Config#transcription_model
|
|
54
|
+
module TranscriptionModel
|
|
55
|
+
extend Telnyx::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
DEEPGRAM_NOVA_3 = :"deepgram/nova-3"
|
|
58
|
+
|
|
59
|
+
# @!method self.values
|
|
60
|
+
# @return [Array<Symbol>]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Language to use for speech recognition with nova-3 model
|
|
64
|
+
#
|
|
65
|
+
# @see Telnyx::Models::Calls::DeepgramNova3Config#language
|
|
66
|
+
module Language
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
EN_US = :"en-US"
|
|
70
|
+
EN_AU = :"en-AU"
|
|
71
|
+
EN_GB = :"en-GB"
|
|
72
|
+
EN_IN = :"en-IN"
|
|
73
|
+
EN_NZ = :"en-NZ"
|
|
74
|
+
DE = :de
|
|
75
|
+
NL = :nl
|
|
76
|
+
SV_SE = :"sv-SE"
|
|
77
|
+
DA_DK = :"da-DK"
|
|
78
|
+
ES = :es
|
|
79
|
+
ES_419 = :"es-419"
|
|
80
|
+
FR = :fr
|
|
81
|
+
FR_CA = :"fr-CA"
|
|
82
|
+
PT_BR = :"pt-BR"
|
|
83
|
+
PT_PT = :"pt-PT"
|
|
84
|
+
AUTO_DETECT = :auto_detect
|
|
85
|
+
|
|
86
|
+
# @!method self.values
|
|
87
|
+
# @return [Array<Symbol>]
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -8,194 +8,12 @@ module Telnyx
|
|
|
8
8
|
|
|
9
9
|
discriminator :transcription_model
|
|
10
10
|
|
|
11
|
-
variant :"deepgram/nova-2", -> { Telnyx::Calls::
|
|
11
|
+
variant :"deepgram/nova-2", -> { Telnyx::Calls::DeepgramNova2Config }
|
|
12
12
|
|
|
13
|
-
variant :"deepgram/nova-3", -> { Telnyx::Calls::
|
|
14
|
-
|
|
15
|
-
class DeepgramNova2 < Telnyx::Internal::Type::BaseModel
|
|
16
|
-
# @!attribute transcription_engine
|
|
17
|
-
#
|
|
18
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::TranscriptionEngine]
|
|
19
|
-
required :transcription_engine,
|
|
20
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::TranscriptionEngine }
|
|
21
|
-
|
|
22
|
-
# @!attribute transcription_model
|
|
23
|
-
#
|
|
24
|
-
# @return [Symbol, :"deepgram/nova-2"]
|
|
25
|
-
required :transcription_model, const: :"deepgram/nova-2"
|
|
26
|
-
|
|
27
|
-
# @!attribute keywords_boosting
|
|
28
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
29
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
30
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
31
|
-
#
|
|
32
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
33
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
34
|
-
|
|
35
|
-
# @!attribute language
|
|
36
|
-
# Language to use for speech recognition with nova-2 model
|
|
37
|
-
#
|
|
38
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language, nil]
|
|
39
|
-
optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language }
|
|
40
|
-
|
|
41
|
-
# @!method initialize(transcription_engine:, keywords_boosting: nil, language: nil, transcription_model: :"deepgram/nova-2")
|
|
42
|
-
# Some parameter documentations has been truncated, see
|
|
43
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2} for
|
|
44
|
-
# more details.
|
|
45
|
-
#
|
|
46
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::TranscriptionEngine]
|
|
47
|
-
#
|
|
48
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
49
|
-
#
|
|
50
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2::Language] Language to use for speech recognition with nova-2 model
|
|
51
|
-
#
|
|
52
|
-
# @param transcription_model [Symbol, :"deepgram/nova-2"]
|
|
53
|
-
|
|
54
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2#transcription_engine
|
|
55
|
-
module TranscriptionEngine
|
|
56
|
-
extend Telnyx::Internal::Type::Enum
|
|
57
|
-
|
|
58
|
-
DEEPGRAM = :Deepgram
|
|
59
|
-
|
|
60
|
-
# @!method self.values
|
|
61
|
-
# @return [Array<Symbol>]
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# Language to use for speech recognition with nova-2 model
|
|
65
|
-
#
|
|
66
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2#language
|
|
67
|
-
module Language
|
|
68
|
-
extend Telnyx::Internal::Type::Enum
|
|
69
|
-
|
|
70
|
-
BG = :bg
|
|
71
|
-
CA = :ca
|
|
72
|
-
ZH_CN = :"zh-CN"
|
|
73
|
-
ZH_HANS = :"zh-Hans"
|
|
74
|
-
ZH_TW = :"zh-TW"
|
|
75
|
-
ZH_HANT = :"zh-Hant"
|
|
76
|
-
ZH_HK = :"zh-HK"
|
|
77
|
-
CS = :cs
|
|
78
|
-
DA_DK = :"da-DK"
|
|
79
|
-
NL_BE = :"nl-BE"
|
|
80
|
-
EN_US = :"en-US"
|
|
81
|
-
EN_AU = :"en-AU"
|
|
82
|
-
EN_GB = :"en-GB"
|
|
83
|
-
EN_NZ = :"en-NZ"
|
|
84
|
-
EN_IN = :"en-IN"
|
|
85
|
-
ET = :et
|
|
86
|
-
FI = :fi
|
|
87
|
-
FR = :fr
|
|
88
|
-
FR_CA = :"fr-CA"
|
|
89
|
-
DE_CH = :"de-CH"
|
|
90
|
-
EL = :el
|
|
91
|
-
HI = :hi
|
|
92
|
-
HU = :hu
|
|
93
|
-
ID = :id
|
|
94
|
-
IT = :it
|
|
95
|
-
JA = :ja
|
|
96
|
-
KO_KR = :"ko-KR"
|
|
97
|
-
LV = :lv
|
|
98
|
-
LT = :lt
|
|
99
|
-
MS = :ms
|
|
100
|
-
NO = :no
|
|
101
|
-
PL = :pl
|
|
102
|
-
PT_BR = :"pt-BR"
|
|
103
|
-
PT_PT = :"pt-PT"
|
|
104
|
-
RO = :ro
|
|
105
|
-
RU = :ru
|
|
106
|
-
SK = :sk
|
|
107
|
-
ES_419 = :"es-419"
|
|
108
|
-
SV_SE = :"sv-SE"
|
|
109
|
-
TH_TH = :"th-TH"
|
|
110
|
-
TR = :tr
|
|
111
|
-
UK = :uk
|
|
112
|
-
VI = :vi
|
|
113
|
-
AUTO_DETECT = :auto_detect
|
|
114
|
-
|
|
115
|
-
# @!method self.values
|
|
116
|
-
# @return [Array<Symbol>]
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
class DeepgramNova3 < Telnyx::Internal::Type::BaseModel
|
|
121
|
-
# @!attribute transcription_engine
|
|
122
|
-
#
|
|
123
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::TranscriptionEngine]
|
|
124
|
-
required :transcription_engine,
|
|
125
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::TranscriptionEngine }
|
|
126
|
-
|
|
127
|
-
# @!attribute transcription_model
|
|
128
|
-
#
|
|
129
|
-
# @return [Symbol, :"deepgram/nova-3"]
|
|
130
|
-
required :transcription_model, const: :"deepgram/nova-3"
|
|
131
|
-
|
|
132
|
-
# @!attribute keywords_boosting
|
|
133
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
134
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
135
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
136
|
-
#
|
|
137
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
138
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
139
|
-
|
|
140
|
-
# @!attribute language
|
|
141
|
-
# Language to use for speech recognition with nova-3 model
|
|
142
|
-
#
|
|
143
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::Language, nil]
|
|
144
|
-
optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::Language }
|
|
145
|
-
|
|
146
|
-
# @!method initialize(transcription_engine:, keywords_boosting: nil, language: nil, transcription_model: :"deepgram/nova-3")
|
|
147
|
-
# Some parameter documentations has been truncated, see
|
|
148
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3} for
|
|
149
|
-
# more details.
|
|
150
|
-
#
|
|
151
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::TranscriptionEngine]
|
|
152
|
-
#
|
|
153
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
154
|
-
#
|
|
155
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3::Language] Language to use for speech recognition with nova-3 model
|
|
156
|
-
#
|
|
157
|
-
# @param transcription_model [Symbol, :"deepgram/nova-3"]
|
|
158
|
-
|
|
159
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3#transcription_engine
|
|
160
|
-
module TranscriptionEngine
|
|
161
|
-
extend Telnyx::Internal::Type::Enum
|
|
162
|
-
|
|
163
|
-
DEEPGRAM = :Deepgram
|
|
164
|
-
|
|
165
|
-
# @!method self.values
|
|
166
|
-
# @return [Array<Symbol>]
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
# Language to use for speech recognition with nova-3 model
|
|
170
|
-
#
|
|
171
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3#language
|
|
172
|
-
module Language
|
|
173
|
-
extend Telnyx::Internal::Type::Enum
|
|
174
|
-
|
|
175
|
-
EN_US = :"en-US"
|
|
176
|
-
EN_AU = :"en-AU"
|
|
177
|
-
EN_GB = :"en-GB"
|
|
178
|
-
EN_IN = :"en-IN"
|
|
179
|
-
EN_NZ = :"en-NZ"
|
|
180
|
-
DE = :de
|
|
181
|
-
NL = :nl
|
|
182
|
-
SV_SE = :"sv-SE"
|
|
183
|
-
DA_DK = :"da-DK"
|
|
184
|
-
ES = :es
|
|
185
|
-
ES_419 = :"es-419"
|
|
186
|
-
FR = :fr
|
|
187
|
-
FR_CA = :"fr-CA"
|
|
188
|
-
PT_BR = :"pt-BR"
|
|
189
|
-
PT_PT = :"pt-PT"
|
|
190
|
-
AUTO_DETECT = :auto_detect
|
|
191
|
-
|
|
192
|
-
# @!method self.values
|
|
193
|
-
# @return [Array<Symbol>]
|
|
194
|
-
end
|
|
195
|
-
end
|
|
13
|
+
variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
|
|
196
14
|
|
|
197
15
|
# @!method self.variants
|
|
198
|
-
# @return [Array(Telnyx::Models::Calls::
|
|
16
|
+
# @return [Array(Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
199
17
|
end
|
|
200
18
|
end
|
|
201
19
|
end
|
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
|
|
28
28
|
# @!attribute transcription_engine_config
|
|
29
29
|
#
|
|
30
|
-
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::
|
|
30
|
+
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
|
|
31
31
|
optional :transcription_engine_config,
|
|
32
32
|
union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ module Telnyx
|
|
|
49
49
|
#
|
|
50
50
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
51
51
|
#
|
|
52
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::
|
|
52
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
53
53
|
#
|
|
54
54
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
55
55
|
|
|
@@ -87,196 +87,12 @@ module Telnyx
|
|
|
87
87
|
|
|
88
88
|
variant :B, -> { Telnyx::Calls::TranscriptionEngineBConfig }
|
|
89
89
|
|
|
90
|
-
variant -> { Telnyx::Calls::
|
|
90
|
+
variant -> { Telnyx::Calls::DeepgramNova2Config }
|
|
91
91
|
|
|
92
|
-
variant -> { Telnyx::Calls::
|
|
93
|
-
|
|
94
|
-
class DeepgramNova2Config < Telnyx::Internal::Type::BaseModel
|
|
95
|
-
# @!attribute transcription_engine
|
|
96
|
-
#
|
|
97
|
-
# @return [Symbol, :Deepgram]
|
|
98
|
-
required :transcription_engine, const: :Deepgram
|
|
99
|
-
|
|
100
|
-
# @!attribute transcription_model
|
|
101
|
-
#
|
|
102
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::TranscriptionModel]
|
|
103
|
-
required :transcription_model,
|
|
104
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::TranscriptionModel }
|
|
105
|
-
|
|
106
|
-
# @!attribute keywords_boosting
|
|
107
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
108
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
109
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
110
|
-
#
|
|
111
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
112
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
113
|
-
|
|
114
|
-
# @!attribute language
|
|
115
|
-
# Language to use for speech recognition with nova-2 model
|
|
116
|
-
#
|
|
117
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language, nil]
|
|
118
|
-
optional :language,
|
|
119
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language }
|
|
120
|
-
|
|
121
|
-
# @!method initialize(transcription_model:, keywords_boosting: nil, language: nil, transcription_engine: :Deepgram)
|
|
122
|
-
# Some parameter documentations has been truncated, see
|
|
123
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config}
|
|
124
|
-
# for more details.
|
|
125
|
-
#
|
|
126
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::TranscriptionModel]
|
|
127
|
-
#
|
|
128
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
129
|
-
#
|
|
130
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config::Language] Language to use for speech recognition with nova-2 model
|
|
131
|
-
#
|
|
132
|
-
# @param transcription_engine [Symbol, :Deepgram]
|
|
133
|
-
|
|
134
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config#transcription_model
|
|
135
|
-
module TranscriptionModel
|
|
136
|
-
extend Telnyx::Internal::Type::Enum
|
|
137
|
-
|
|
138
|
-
DEEPGRAM_NOVA_2 = :"deepgram/nova-2"
|
|
139
|
-
|
|
140
|
-
# @!method self.values
|
|
141
|
-
# @return [Array<Symbol>]
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Language to use for speech recognition with nova-2 model
|
|
145
|
-
#
|
|
146
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2Config#language
|
|
147
|
-
module Language
|
|
148
|
-
extend Telnyx::Internal::Type::Enum
|
|
149
|
-
|
|
150
|
-
BG = :bg
|
|
151
|
-
CA = :ca
|
|
152
|
-
ZH_CN = :"zh-CN"
|
|
153
|
-
ZH_HANS = :"zh-Hans"
|
|
154
|
-
ZH_TW = :"zh-TW"
|
|
155
|
-
ZH_HANT = :"zh-Hant"
|
|
156
|
-
ZH_HK = :"zh-HK"
|
|
157
|
-
CS = :cs
|
|
158
|
-
DA_DK = :"da-DK"
|
|
159
|
-
NL_BE = :"nl-BE"
|
|
160
|
-
EN_US = :"en-US"
|
|
161
|
-
EN_AU = :"en-AU"
|
|
162
|
-
EN_GB = :"en-GB"
|
|
163
|
-
EN_NZ = :"en-NZ"
|
|
164
|
-
EN_IN = :"en-IN"
|
|
165
|
-
ET = :et
|
|
166
|
-
FI = :fi
|
|
167
|
-
FR = :fr
|
|
168
|
-
FR_CA = :"fr-CA"
|
|
169
|
-
DE_CH = :"de-CH"
|
|
170
|
-
EL = :el
|
|
171
|
-
HI = :hi
|
|
172
|
-
HU = :hu
|
|
173
|
-
ID = :id
|
|
174
|
-
IT = :it
|
|
175
|
-
JA = :ja
|
|
176
|
-
KO_KR = :"ko-KR"
|
|
177
|
-
LV = :lv
|
|
178
|
-
LT = :lt
|
|
179
|
-
MS = :ms
|
|
180
|
-
NO = :no
|
|
181
|
-
PL = :pl
|
|
182
|
-
PT_BR = :"pt-BR"
|
|
183
|
-
PT_PT = :"pt-PT"
|
|
184
|
-
RO = :ro
|
|
185
|
-
RU = :ru
|
|
186
|
-
SK = :sk
|
|
187
|
-
ES_419 = :"es-419"
|
|
188
|
-
SV_SE = :"sv-SE"
|
|
189
|
-
TH_TH = :"th-TH"
|
|
190
|
-
TR = :tr
|
|
191
|
-
UK = :uk
|
|
192
|
-
VI = :vi
|
|
193
|
-
AUTO_DETECT = :auto_detect
|
|
194
|
-
|
|
195
|
-
# @!method self.values
|
|
196
|
-
# @return [Array<Symbol>]
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
class DeepgramNova3Config < Telnyx::Internal::Type::BaseModel
|
|
201
|
-
# @!attribute transcription_engine
|
|
202
|
-
#
|
|
203
|
-
# @return [Symbol, :Deepgram]
|
|
204
|
-
required :transcription_engine, const: :Deepgram
|
|
205
|
-
|
|
206
|
-
# @!attribute transcription_model
|
|
207
|
-
#
|
|
208
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::TranscriptionModel]
|
|
209
|
-
required :transcription_model,
|
|
210
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::TranscriptionModel }
|
|
211
|
-
|
|
212
|
-
# @!attribute keywords_boosting
|
|
213
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
214
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
215
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
216
|
-
#
|
|
217
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
218
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
219
|
-
|
|
220
|
-
# @!attribute language
|
|
221
|
-
# Language to use for speech recognition with nova-3 model
|
|
222
|
-
#
|
|
223
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::Language, nil]
|
|
224
|
-
optional :language,
|
|
225
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::Language }
|
|
226
|
-
|
|
227
|
-
# @!method initialize(transcription_model:, keywords_boosting: nil, language: nil, transcription_engine: :Deepgram)
|
|
228
|
-
# Some parameter documentations has been truncated, see
|
|
229
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config}
|
|
230
|
-
# for more details.
|
|
231
|
-
#
|
|
232
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::TranscriptionModel]
|
|
233
|
-
#
|
|
234
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
235
|
-
#
|
|
236
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config::Language] Language to use for speech recognition with nova-3 model
|
|
237
|
-
#
|
|
238
|
-
# @param transcription_engine [Symbol, :Deepgram]
|
|
239
|
-
|
|
240
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config#transcription_model
|
|
241
|
-
module TranscriptionModel
|
|
242
|
-
extend Telnyx::Internal::Type::Enum
|
|
243
|
-
|
|
244
|
-
DEEPGRAM_NOVA_3 = :"deepgram/nova-3"
|
|
245
|
-
|
|
246
|
-
# @!method self.values
|
|
247
|
-
# @return [Array<Symbol>]
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# Language to use for speech recognition with nova-3 model
|
|
251
|
-
#
|
|
252
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3Config#language
|
|
253
|
-
module Language
|
|
254
|
-
extend Telnyx::Internal::Type::Enum
|
|
255
|
-
|
|
256
|
-
EN_US = :"en-US"
|
|
257
|
-
EN_AU = :"en-AU"
|
|
258
|
-
EN_GB = :"en-GB"
|
|
259
|
-
EN_IN = :"en-IN"
|
|
260
|
-
EN_NZ = :"en-NZ"
|
|
261
|
-
DE = :de
|
|
262
|
-
NL = :nl
|
|
263
|
-
SV_SE = :"sv-SE"
|
|
264
|
-
DA_DK = :"da-DK"
|
|
265
|
-
ES = :es
|
|
266
|
-
ES_419 = :"es-419"
|
|
267
|
-
FR = :fr
|
|
268
|
-
FR_CA = :"fr-CA"
|
|
269
|
-
PT_BR = :"pt-BR"
|
|
270
|
-
PT_PT = :"pt-PT"
|
|
271
|
-
AUTO_DETECT = :auto_detect
|
|
272
|
-
|
|
273
|
-
# @!method self.values
|
|
274
|
-
# @return [Array<Symbol>]
|
|
275
|
-
end
|
|
276
|
-
end
|
|
92
|
+
variant -> { Telnyx::Calls::DeepgramNova3Config }
|
|
277
93
|
|
|
278
94
|
# @!method self.variants
|
|
279
|
-
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::
|
|
95
|
+
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
280
96
|
end
|
|
281
97
|
end
|
|
282
98
|
end
|