telnyx 3.2.0__py3-none-any.whl → 3.3.0__py3-none-any.whl
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.
Potentially problematic release.
This version of telnyx might be problematic. Click here for more details.
- telnyx/_version.py +1 -1
- telnyx/resources/calls/actions.py +6 -4
- telnyx/types/calls/action_start_transcription_params.py +260 -6
- telnyx/types/calls/transcription_start_request_param.py +261 -6
- {telnyx-3.2.0.dist-info → telnyx-3.3.0.dist-info}/METADATA +1 -1
- {telnyx-3.2.0.dist-info → telnyx-3.3.0.dist-info}/RECORD +8 -8
- {telnyx-3.2.0.dist-info → telnyx-3.3.0.dist-info}/WHEEL +0 -0
- {telnyx-3.2.0.dist-info → telnyx-3.3.0.dist-info}/licenses/LICENSE +0 -0
telnyx/_version.py
CHANGED
|
@@ -2506,7 +2506,7 @@ class ActionsResource(SyncAPIResource):
|
|
|
2506
2506
|
*,
|
|
2507
2507
|
client_state: str | Omit = omit,
|
|
2508
2508
|
command_id: str | Omit = omit,
|
|
2509
|
-
transcription_engine: Literal["A", "B"] | Omit = omit,
|
|
2509
|
+
transcription_engine: Literal["Google", "Telnyx", "Deepgram", "A", "B"] | Omit = omit,
|
|
2510
2510
|
transcription_engine_config: action_start_transcription_params.TranscriptionEngineConfig | Omit = omit,
|
|
2511
2511
|
transcription_tracks: str | Omit = omit,
|
|
2512
2512
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -2532,7 +2532,8 @@ class ActionsResource(SyncAPIResource):
|
|
|
2532
2532
|
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
2533
2533
|
the same `command_id` for the same `call_control_id`.
|
|
2534
2534
|
|
|
2535
|
-
transcription_engine: Engine to use for speech recognition. `A` - `Google`, `B` -
|
|
2535
|
+
transcription_engine: Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
2536
|
+
`Telnyx` are supported for backward compatibility.
|
|
2536
2537
|
|
|
2537
2538
|
transcription_tracks: Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
2538
2539
|
that requested the transcription, `outbound` for the other leg, and `both` for
|
|
@@ -5748,7 +5749,7 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
5748
5749
|
*,
|
|
5749
5750
|
client_state: str | Omit = omit,
|
|
5750
5751
|
command_id: str | Omit = omit,
|
|
5751
|
-
transcription_engine: Literal["A", "B"] | Omit = omit,
|
|
5752
|
+
transcription_engine: Literal["Google", "Telnyx", "Deepgram", "A", "B"] | Omit = omit,
|
|
5752
5753
|
transcription_engine_config: action_start_transcription_params.TranscriptionEngineConfig | Omit = omit,
|
|
5753
5754
|
transcription_tracks: str | Omit = omit,
|
|
5754
5755
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -5774,7 +5775,8 @@ class AsyncActionsResource(AsyncAPIResource):
|
|
|
5774
5775
|
command_id: Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
5775
5776
|
the same `command_id` for the same `call_control_id`.
|
|
5776
5777
|
|
|
5777
|
-
transcription_engine: Engine to use for speech recognition. `A` - `Google`, `B` -
|
|
5778
|
+
transcription_engine: Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
5779
|
+
`Telnyx` are supported for backward compatibility.
|
|
5778
5780
|
|
|
5779
5781
|
transcription_tracks: Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
5780
5782
|
that requested the transcription, `outbound` for the other leg, and `both` for
|
|
@@ -2,13 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union
|
|
6
|
-
from typing_extensions import Literal, TypeAlias, TypedDict
|
|
5
|
+
from typing import Union, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
|
+
from ..._types import SequenceNotStr
|
|
9
|
+
from .google_transcription_language import GoogleTranscriptionLanguage
|
|
8
10
|
from .transcription_engine_a_config_param import TranscriptionEngineAConfigParam
|
|
9
11
|
from .transcription_engine_b_config_param import TranscriptionEngineBConfigParam
|
|
10
12
|
|
|
11
|
-
__all__ = [
|
|
13
|
+
__all__ = [
|
|
14
|
+
"ActionStartTranscriptionParams",
|
|
15
|
+
"TranscriptionEngineConfig",
|
|
16
|
+
"TranscriptionEngineConfigTranscriptionEngineGoogleConfig",
|
|
17
|
+
"TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext",
|
|
18
|
+
"TranscriptionEngineConfigTranscriptionEngineTelnyxConfig",
|
|
19
|
+
"TranscriptionEngineConfigTranscriptionEngineDeepgramConfig",
|
|
20
|
+
]
|
|
12
21
|
|
|
13
22
|
|
|
14
23
|
class ActionStartTranscriptionParams(TypedDict, total=False):
|
|
@@ -25,8 +34,12 @@ class ActionStartTranscriptionParams(TypedDict, total=False):
|
|
|
25
34
|
`call_control_id`.
|
|
26
35
|
"""
|
|
27
36
|
|
|
28
|
-
transcription_engine: Literal["A", "B"]
|
|
29
|
-
"""Engine to use for speech recognition.
|
|
37
|
+
transcription_engine: Literal["Google", "Telnyx", "Deepgram", "A", "B"]
|
|
38
|
+
"""Engine to use for speech recognition.
|
|
39
|
+
|
|
40
|
+
Legacy values `A` - `Google`, `B` - `Telnyx` are supported for backward
|
|
41
|
+
compatibility.
|
|
42
|
+
"""
|
|
30
43
|
|
|
31
44
|
transcription_engine_config: TranscriptionEngineConfig
|
|
32
45
|
|
|
@@ -38,4 +51,245 @@ class ActionStartTranscriptionParams(TypedDict, total=False):
|
|
|
38
51
|
"""
|
|
39
52
|
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
class TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext(TypedDict, total=False):
|
|
55
|
+
boost: float
|
|
56
|
+
"""Boost factor for the speech context."""
|
|
57
|
+
|
|
58
|
+
phrases: SequenceNotStr[str]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class TranscriptionEngineConfigTranscriptionEngineGoogleConfig(TypedDict, total=False):
|
|
62
|
+
enable_speaker_diarization: bool
|
|
63
|
+
"""Enables speaker diarization."""
|
|
64
|
+
|
|
65
|
+
hints: SequenceNotStr[str]
|
|
66
|
+
"""Hints to improve transcription accuracy."""
|
|
67
|
+
|
|
68
|
+
interim_results: bool
|
|
69
|
+
"""Whether to send also interim results.
|
|
70
|
+
|
|
71
|
+
If set to false, only final results will be sent.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
language: GoogleTranscriptionLanguage
|
|
75
|
+
"""Language to use for speech recognition"""
|
|
76
|
+
|
|
77
|
+
max_speaker_count: int
|
|
78
|
+
"""Defines maximum number of speakers in the conversation."""
|
|
79
|
+
|
|
80
|
+
min_speaker_count: int
|
|
81
|
+
"""Defines minimum number of speakers in the conversation."""
|
|
82
|
+
|
|
83
|
+
model: Literal[
|
|
84
|
+
"latest_long",
|
|
85
|
+
"latest_short",
|
|
86
|
+
"command_and_search",
|
|
87
|
+
"phone_call",
|
|
88
|
+
"video",
|
|
89
|
+
"default",
|
|
90
|
+
"medical_conversation",
|
|
91
|
+
"medical_dictation",
|
|
92
|
+
]
|
|
93
|
+
"""The model to use for transcription."""
|
|
94
|
+
|
|
95
|
+
profanity_filter: bool
|
|
96
|
+
"""Enables profanity_filter."""
|
|
97
|
+
|
|
98
|
+
speech_context: Iterable[TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext]
|
|
99
|
+
"""Speech context to improve transcription accuracy."""
|
|
100
|
+
|
|
101
|
+
transcription_engine: Literal["Google"]
|
|
102
|
+
"""Engine identifier for Google transcription service"""
|
|
103
|
+
|
|
104
|
+
use_enhanced: bool
|
|
105
|
+
"""Enables enhanced transcription, this works for models `phone_call` and `video`."""
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class TranscriptionEngineConfigTranscriptionEngineTelnyxConfig(TypedDict, total=False):
|
|
109
|
+
language: Literal[
|
|
110
|
+
"en",
|
|
111
|
+
"zh",
|
|
112
|
+
"de",
|
|
113
|
+
"es",
|
|
114
|
+
"ru",
|
|
115
|
+
"ko",
|
|
116
|
+
"fr",
|
|
117
|
+
"ja",
|
|
118
|
+
"pt",
|
|
119
|
+
"tr",
|
|
120
|
+
"pl",
|
|
121
|
+
"ca",
|
|
122
|
+
"nl",
|
|
123
|
+
"ar",
|
|
124
|
+
"sv",
|
|
125
|
+
"it",
|
|
126
|
+
"id",
|
|
127
|
+
"hi",
|
|
128
|
+
"fi",
|
|
129
|
+
"vi",
|
|
130
|
+
"he",
|
|
131
|
+
"uk",
|
|
132
|
+
"el",
|
|
133
|
+
"ms",
|
|
134
|
+
"cs",
|
|
135
|
+
"ro",
|
|
136
|
+
"da",
|
|
137
|
+
"hu",
|
|
138
|
+
"ta",
|
|
139
|
+
"no",
|
|
140
|
+
"th",
|
|
141
|
+
"ur",
|
|
142
|
+
"hr",
|
|
143
|
+
"bg",
|
|
144
|
+
"lt",
|
|
145
|
+
"la",
|
|
146
|
+
"mi",
|
|
147
|
+
"ml",
|
|
148
|
+
"cy",
|
|
149
|
+
"sk",
|
|
150
|
+
"te",
|
|
151
|
+
"fa",
|
|
152
|
+
"lv",
|
|
153
|
+
"bn",
|
|
154
|
+
"sr",
|
|
155
|
+
"az",
|
|
156
|
+
"sl",
|
|
157
|
+
"kn",
|
|
158
|
+
"et",
|
|
159
|
+
"mk",
|
|
160
|
+
"br",
|
|
161
|
+
"eu",
|
|
162
|
+
"is",
|
|
163
|
+
"hy",
|
|
164
|
+
"ne",
|
|
165
|
+
"mn",
|
|
166
|
+
"bs",
|
|
167
|
+
"kk",
|
|
168
|
+
"sq",
|
|
169
|
+
"sw",
|
|
170
|
+
"gl",
|
|
171
|
+
"mr",
|
|
172
|
+
"pa",
|
|
173
|
+
"si",
|
|
174
|
+
"km",
|
|
175
|
+
"sn",
|
|
176
|
+
"yo",
|
|
177
|
+
"so",
|
|
178
|
+
"af",
|
|
179
|
+
"oc",
|
|
180
|
+
"ka",
|
|
181
|
+
"be",
|
|
182
|
+
"tg",
|
|
183
|
+
"sd",
|
|
184
|
+
"gu",
|
|
185
|
+
"am",
|
|
186
|
+
"yi",
|
|
187
|
+
"lo",
|
|
188
|
+
"uz",
|
|
189
|
+
"fo",
|
|
190
|
+
"ht",
|
|
191
|
+
"ps",
|
|
192
|
+
"tk",
|
|
193
|
+
"nn",
|
|
194
|
+
"mt",
|
|
195
|
+
"sa",
|
|
196
|
+
"lb",
|
|
197
|
+
"my",
|
|
198
|
+
"bo",
|
|
199
|
+
"tl",
|
|
200
|
+
"mg",
|
|
201
|
+
"as",
|
|
202
|
+
"tt",
|
|
203
|
+
"haw",
|
|
204
|
+
"ln",
|
|
205
|
+
"ha",
|
|
206
|
+
"ba",
|
|
207
|
+
"jw",
|
|
208
|
+
"su",
|
|
209
|
+
"auto_detect",
|
|
210
|
+
]
|
|
211
|
+
"""Language to use for speech recognition"""
|
|
212
|
+
|
|
213
|
+
transcription_engine: Literal["Telnyx"]
|
|
214
|
+
"""Engine identifier for Telnyx transcription service"""
|
|
215
|
+
|
|
216
|
+
transcription_model: Literal["openai/whisper-tiny", "openai/whisper-large-v3-turbo"]
|
|
217
|
+
"""The model to use for transcription."""
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
class TranscriptionEngineConfigTranscriptionEngineDeepgramConfig(TypedDict, total=False):
|
|
221
|
+
transcription_engine: Required[Literal["Deepgram"]]
|
|
222
|
+
"""Engine identifier for Deepgram transcription service"""
|
|
223
|
+
|
|
224
|
+
transcription_model: Required[Literal["deepgram/nova-2", "deepgram/nova-3"]]
|
|
225
|
+
"""The model to use for transcription."""
|
|
226
|
+
|
|
227
|
+
language: Literal[
|
|
228
|
+
"bg",
|
|
229
|
+
"ca",
|
|
230
|
+
"zh",
|
|
231
|
+
"zh-CN",
|
|
232
|
+
"zh-Hans",
|
|
233
|
+
"zh-TW",
|
|
234
|
+
"zh-Hant",
|
|
235
|
+
"zh-HK",
|
|
236
|
+
"cs",
|
|
237
|
+
"da",
|
|
238
|
+
"da-DK",
|
|
239
|
+
"nl",
|
|
240
|
+
"en",
|
|
241
|
+
"en-US",
|
|
242
|
+
"en-AU",
|
|
243
|
+
"en-GB",
|
|
244
|
+
"en-NZ",
|
|
245
|
+
"en-IN",
|
|
246
|
+
"et",
|
|
247
|
+
"fi",
|
|
248
|
+
"nl-BE",
|
|
249
|
+
"fr",
|
|
250
|
+
"fr-CA",
|
|
251
|
+
"de",
|
|
252
|
+
"de-CH",
|
|
253
|
+
"el",
|
|
254
|
+
"hi",
|
|
255
|
+
"hu",
|
|
256
|
+
"id",
|
|
257
|
+
"it",
|
|
258
|
+
"ja",
|
|
259
|
+
"ko",
|
|
260
|
+
"ko-KR",
|
|
261
|
+
"lv",
|
|
262
|
+
"lt",
|
|
263
|
+
"ms",
|
|
264
|
+
"no",
|
|
265
|
+
"pl",
|
|
266
|
+
"pt",
|
|
267
|
+
"pt-BR",
|
|
268
|
+
"pt-PT",
|
|
269
|
+
"ro",
|
|
270
|
+
"ru",
|
|
271
|
+
"sk",
|
|
272
|
+
"es",
|
|
273
|
+
"es-419",
|
|
274
|
+
"sv",
|
|
275
|
+
"sv-SE",
|
|
276
|
+
"th",
|
|
277
|
+
"th-TH",
|
|
278
|
+
"tr",
|
|
279
|
+
"uk",
|
|
280
|
+
"vi",
|
|
281
|
+
"auto_detect",
|
|
282
|
+
]
|
|
283
|
+
"""Language to use for speech recognition.
|
|
284
|
+
|
|
285
|
+
Available languages depend on the selected model.
|
|
286
|
+
"""
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
TranscriptionEngineConfig: TypeAlias = Union[
|
|
290
|
+
TranscriptionEngineConfigTranscriptionEngineGoogleConfig,
|
|
291
|
+
TranscriptionEngineConfigTranscriptionEngineTelnyxConfig,
|
|
292
|
+
TranscriptionEngineConfigTranscriptionEngineDeepgramConfig,
|
|
293
|
+
TranscriptionEngineAConfigParam,
|
|
294
|
+
TranscriptionEngineBConfigParam,
|
|
295
|
+
]
|
|
@@ -2,15 +2,266 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union
|
|
6
|
-
from typing_extensions import Literal, TypeAlias, TypedDict
|
|
5
|
+
from typing import Union, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
7
|
|
|
8
|
+
from ..._types import SequenceNotStr
|
|
9
|
+
from .google_transcription_language import GoogleTranscriptionLanguage
|
|
8
10
|
from .transcription_engine_a_config_param import TranscriptionEngineAConfigParam
|
|
9
11
|
from .transcription_engine_b_config_param import TranscriptionEngineBConfigParam
|
|
10
12
|
|
|
11
|
-
__all__ = [
|
|
13
|
+
__all__ = [
|
|
14
|
+
"TranscriptionStartRequestParam",
|
|
15
|
+
"TranscriptionEngineConfig",
|
|
16
|
+
"TranscriptionEngineConfigTranscriptionEngineGoogleConfig",
|
|
17
|
+
"TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext",
|
|
18
|
+
"TranscriptionEngineConfigTranscriptionEngineTelnyxConfig",
|
|
19
|
+
"TranscriptionEngineConfigTranscriptionEngineDeepgramConfig",
|
|
20
|
+
]
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
|
|
23
|
+
class TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext(TypedDict, total=False):
|
|
24
|
+
boost: float
|
|
25
|
+
"""Boost factor for the speech context."""
|
|
26
|
+
|
|
27
|
+
phrases: SequenceNotStr[str]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TranscriptionEngineConfigTranscriptionEngineGoogleConfig(TypedDict, total=False):
|
|
31
|
+
enable_speaker_diarization: bool
|
|
32
|
+
"""Enables speaker diarization."""
|
|
33
|
+
|
|
34
|
+
hints: SequenceNotStr[str]
|
|
35
|
+
"""Hints to improve transcription accuracy."""
|
|
36
|
+
|
|
37
|
+
interim_results: bool
|
|
38
|
+
"""Whether to send also interim results.
|
|
39
|
+
|
|
40
|
+
If set to false, only final results will be sent.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
language: GoogleTranscriptionLanguage
|
|
44
|
+
"""Language to use for speech recognition"""
|
|
45
|
+
|
|
46
|
+
max_speaker_count: int
|
|
47
|
+
"""Defines maximum number of speakers in the conversation."""
|
|
48
|
+
|
|
49
|
+
min_speaker_count: int
|
|
50
|
+
"""Defines minimum number of speakers in the conversation."""
|
|
51
|
+
|
|
52
|
+
model: Literal[
|
|
53
|
+
"latest_long",
|
|
54
|
+
"latest_short",
|
|
55
|
+
"command_and_search",
|
|
56
|
+
"phone_call",
|
|
57
|
+
"video",
|
|
58
|
+
"default",
|
|
59
|
+
"medical_conversation",
|
|
60
|
+
"medical_dictation",
|
|
61
|
+
]
|
|
62
|
+
"""The model to use for transcription."""
|
|
63
|
+
|
|
64
|
+
profanity_filter: bool
|
|
65
|
+
"""Enables profanity_filter."""
|
|
66
|
+
|
|
67
|
+
speech_context: Iterable[TranscriptionEngineConfigTranscriptionEngineGoogleConfigSpeechContext]
|
|
68
|
+
"""Speech context to improve transcription accuracy."""
|
|
69
|
+
|
|
70
|
+
transcription_engine: Literal["Google"]
|
|
71
|
+
"""Engine identifier for Google transcription service"""
|
|
72
|
+
|
|
73
|
+
use_enhanced: bool
|
|
74
|
+
"""Enables enhanced transcription, this works for models `phone_call` and `video`."""
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class TranscriptionEngineConfigTranscriptionEngineTelnyxConfig(TypedDict, total=False):
|
|
78
|
+
language: Literal[
|
|
79
|
+
"en",
|
|
80
|
+
"zh",
|
|
81
|
+
"de",
|
|
82
|
+
"es",
|
|
83
|
+
"ru",
|
|
84
|
+
"ko",
|
|
85
|
+
"fr",
|
|
86
|
+
"ja",
|
|
87
|
+
"pt",
|
|
88
|
+
"tr",
|
|
89
|
+
"pl",
|
|
90
|
+
"ca",
|
|
91
|
+
"nl",
|
|
92
|
+
"ar",
|
|
93
|
+
"sv",
|
|
94
|
+
"it",
|
|
95
|
+
"id",
|
|
96
|
+
"hi",
|
|
97
|
+
"fi",
|
|
98
|
+
"vi",
|
|
99
|
+
"he",
|
|
100
|
+
"uk",
|
|
101
|
+
"el",
|
|
102
|
+
"ms",
|
|
103
|
+
"cs",
|
|
104
|
+
"ro",
|
|
105
|
+
"da",
|
|
106
|
+
"hu",
|
|
107
|
+
"ta",
|
|
108
|
+
"no",
|
|
109
|
+
"th",
|
|
110
|
+
"ur",
|
|
111
|
+
"hr",
|
|
112
|
+
"bg",
|
|
113
|
+
"lt",
|
|
114
|
+
"la",
|
|
115
|
+
"mi",
|
|
116
|
+
"ml",
|
|
117
|
+
"cy",
|
|
118
|
+
"sk",
|
|
119
|
+
"te",
|
|
120
|
+
"fa",
|
|
121
|
+
"lv",
|
|
122
|
+
"bn",
|
|
123
|
+
"sr",
|
|
124
|
+
"az",
|
|
125
|
+
"sl",
|
|
126
|
+
"kn",
|
|
127
|
+
"et",
|
|
128
|
+
"mk",
|
|
129
|
+
"br",
|
|
130
|
+
"eu",
|
|
131
|
+
"is",
|
|
132
|
+
"hy",
|
|
133
|
+
"ne",
|
|
134
|
+
"mn",
|
|
135
|
+
"bs",
|
|
136
|
+
"kk",
|
|
137
|
+
"sq",
|
|
138
|
+
"sw",
|
|
139
|
+
"gl",
|
|
140
|
+
"mr",
|
|
141
|
+
"pa",
|
|
142
|
+
"si",
|
|
143
|
+
"km",
|
|
144
|
+
"sn",
|
|
145
|
+
"yo",
|
|
146
|
+
"so",
|
|
147
|
+
"af",
|
|
148
|
+
"oc",
|
|
149
|
+
"ka",
|
|
150
|
+
"be",
|
|
151
|
+
"tg",
|
|
152
|
+
"sd",
|
|
153
|
+
"gu",
|
|
154
|
+
"am",
|
|
155
|
+
"yi",
|
|
156
|
+
"lo",
|
|
157
|
+
"uz",
|
|
158
|
+
"fo",
|
|
159
|
+
"ht",
|
|
160
|
+
"ps",
|
|
161
|
+
"tk",
|
|
162
|
+
"nn",
|
|
163
|
+
"mt",
|
|
164
|
+
"sa",
|
|
165
|
+
"lb",
|
|
166
|
+
"my",
|
|
167
|
+
"bo",
|
|
168
|
+
"tl",
|
|
169
|
+
"mg",
|
|
170
|
+
"as",
|
|
171
|
+
"tt",
|
|
172
|
+
"haw",
|
|
173
|
+
"ln",
|
|
174
|
+
"ha",
|
|
175
|
+
"ba",
|
|
176
|
+
"jw",
|
|
177
|
+
"su",
|
|
178
|
+
"auto_detect",
|
|
179
|
+
]
|
|
180
|
+
"""Language to use for speech recognition"""
|
|
181
|
+
|
|
182
|
+
transcription_engine: Literal["Telnyx"]
|
|
183
|
+
"""Engine identifier for Telnyx transcription service"""
|
|
184
|
+
|
|
185
|
+
transcription_model: Literal["openai/whisper-tiny", "openai/whisper-large-v3-turbo"]
|
|
186
|
+
"""The model to use for transcription."""
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class TranscriptionEngineConfigTranscriptionEngineDeepgramConfig(TypedDict, total=False):
|
|
190
|
+
transcription_engine: Required[Literal["Deepgram"]]
|
|
191
|
+
"""Engine identifier for Deepgram transcription service"""
|
|
192
|
+
|
|
193
|
+
transcription_model: Required[Literal["deepgram/nova-2", "deepgram/nova-3"]]
|
|
194
|
+
"""The model to use for transcription."""
|
|
195
|
+
|
|
196
|
+
language: Literal[
|
|
197
|
+
"bg",
|
|
198
|
+
"ca",
|
|
199
|
+
"zh",
|
|
200
|
+
"zh-CN",
|
|
201
|
+
"zh-Hans",
|
|
202
|
+
"zh-TW",
|
|
203
|
+
"zh-Hant",
|
|
204
|
+
"zh-HK",
|
|
205
|
+
"cs",
|
|
206
|
+
"da",
|
|
207
|
+
"da-DK",
|
|
208
|
+
"nl",
|
|
209
|
+
"en",
|
|
210
|
+
"en-US",
|
|
211
|
+
"en-AU",
|
|
212
|
+
"en-GB",
|
|
213
|
+
"en-NZ",
|
|
214
|
+
"en-IN",
|
|
215
|
+
"et",
|
|
216
|
+
"fi",
|
|
217
|
+
"nl-BE",
|
|
218
|
+
"fr",
|
|
219
|
+
"fr-CA",
|
|
220
|
+
"de",
|
|
221
|
+
"de-CH",
|
|
222
|
+
"el",
|
|
223
|
+
"hi",
|
|
224
|
+
"hu",
|
|
225
|
+
"id",
|
|
226
|
+
"it",
|
|
227
|
+
"ja",
|
|
228
|
+
"ko",
|
|
229
|
+
"ko-KR",
|
|
230
|
+
"lv",
|
|
231
|
+
"lt",
|
|
232
|
+
"ms",
|
|
233
|
+
"no",
|
|
234
|
+
"pl",
|
|
235
|
+
"pt",
|
|
236
|
+
"pt-BR",
|
|
237
|
+
"pt-PT",
|
|
238
|
+
"ro",
|
|
239
|
+
"ru",
|
|
240
|
+
"sk",
|
|
241
|
+
"es",
|
|
242
|
+
"es-419",
|
|
243
|
+
"sv",
|
|
244
|
+
"sv-SE",
|
|
245
|
+
"th",
|
|
246
|
+
"th-TH",
|
|
247
|
+
"tr",
|
|
248
|
+
"uk",
|
|
249
|
+
"vi",
|
|
250
|
+
"auto_detect",
|
|
251
|
+
]
|
|
252
|
+
"""Language to use for speech recognition.
|
|
253
|
+
|
|
254
|
+
Available languages depend on the selected model.
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
TranscriptionEngineConfig: TypeAlias = Union[
|
|
259
|
+
TranscriptionEngineConfigTranscriptionEngineGoogleConfig,
|
|
260
|
+
TranscriptionEngineConfigTranscriptionEngineTelnyxConfig,
|
|
261
|
+
TranscriptionEngineConfigTranscriptionEngineDeepgramConfig,
|
|
262
|
+
TranscriptionEngineAConfigParam,
|
|
263
|
+
TranscriptionEngineBConfigParam,
|
|
264
|
+
]
|
|
14
265
|
|
|
15
266
|
|
|
16
267
|
class TranscriptionStartRequestParam(TypedDict, total=False):
|
|
@@ -27,8 +278,12 @@ class TranscriptionStartRequestParam(TypedDict, total=False):
|
|
|
27
278
|
`call_control_id`.
|
|
28
279
|
"""
|
|
29
280
|
|
|
30
|
-
transcription_engine: Literal["A", "B"]
|
|
31
|
-
"""Engine to use for speech recognition.
|
|
281
|
+
transcription_engine: Literal["Google", "Telnyx", "Deepgram", "A", "B"]
|
|
282
|
+
"""Engine to use for speech recognition.
|
|
283
|
+
|
|
284
|
+
Legacy values `A` - `Google`, `B` - `Telnyx` are supported for backward
|
|
285
|
+
compatibility.
|
|
286
|
+
"""
|
|
32
287
|
|
|
33
288
|
transcription_engine_config: TranscriptionEngineConfig
|
|
34
289
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: telnyx
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: The official Python library for the telnyx API
|
|
5
5
|
Project-URL: Homepage, https://github.com/team-telnyx/telnyx-python
|
|
6
6
|
Project-URL: Repository, https://github.com/team-telnyx/telnyx-python
|
|
@@ -11,7 +11,7 @@ telnyx/_resource.py,sha256=B4Qg-uO2a34FQHHZskn89eVURqMuSvv1TdeBJH1z1rU,1100
|
|
|
11
11
|
telnyx/_response.py,sha256=4X24wr7uQn2hnM_b0xqQ92zSgxRFFfWG2lTg93-KzNo,28788
|
|
12
12
|
telnyx/_streaming.py,sha256=OfSFcMQJ_mnvfkbIdOG7Ajp0SMbXnOJSga4xXHjNAJk,10100
|
|
13
13
|
telnyx/_types.py,sha256=Du3G2vdqeLhhdJZ4Jtck4vOqEvAKI9rB1FnrwB1b_k8,7236
|
|
14
|
-
telnyx/_version.py,sha256=
|
|
14
|
+
telnyx/_version.py,sha256=hqy684E7ugz6YWO8oYNl9iW6capQiFmtTjkruZgnnjk,158
|
|
15
15
|
telnyx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
telnyx/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
telnyx/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -185,7 +185,7 @@ telnyx/resources/bundle_pricing/billing_bundles.py,sha256=qMCmAtoj48PbHObmv53B-6
|
|
|
185
185
|
telnyx/resources/bundle_pricing/bundle_pricing.py,sha256=d3L80tHqOCfcTxVQ7c6DDLfO-5FkG7HMlOfTLVz52-A,5371
|
|
186
186
|
telnyx/resources/bundle_pricing/user_bundles.py,sha256=d44DFB_SSgXQcFceR3vY4wsQ8pukdATqWoSBoLUcYLA,28714
|
|
187
187
|
telnyx/resources/calls/__init__.py,sha256=zQUq3YFSSLeXKg5bb5oG2Hh7VJsNmm_Z5nm68sU98LY,1002
|
|
188
|
-
telnyx/resources/calls/actions.py,sha256=
|
|
188
|
+
telnyx/resources/calls/actions.py,sha256=qsymEsb8J-HKQToHl1uZcLvvitsb5Qvo2fx18lDfUEA,308994
|
|
189
189
|
telnyx/resources/calls/calls.py,sha256=XdR-_hUTqdpnylpMCBFxKgwEsWG0yuIxArwzyTogNNQ,44443
|
|
190
190
|
telnyx/resources/campaign/__init__.py,sha256=MGF-U4sQL_jE6xQKvsDXhucn5snUbtl1naBlZDaujPk,1452
|
|
191
191
|
telnyx/resources/campaign/campaign.py,sha256=CDmsWo_1eAg9tIdAu9SwU-8xTusuxSU76o2V_mKuCiI,41458
|
|
@@ -1502,7 +1502,7 @@ telnyx/types/calls/action_start_siprec_params.py,sha256=t1H8_BDwS2Lukg42wTkyiEyc
|
|
|
1502
1502
|
telnyx/types/calls/action_start_siprec_response.py,sha256=wYyiEf8nK5iDlSyhMUqjI5LGIuh47i0bllqfB3SA7oA,354
|
|
1503
1503
|
telnyx/types/calls/action_start_streaming_params.py,sha256=qYO2XbSYvuNRgxTJSuwxAoqRIhp9VWDHs6KLvloaZto,2087
|
|
1504
1504
|
telnyx/types/calls/action_start_streaming_response.py,sha256=eGSo9KvyzBx-Q4MkunrOeKh9oF2RXMyQD_yM-F-Rbck,360
|
|
1505
|
-
telnyx/types/calls/action_start_transcription_params.py,sha256=
|
|
1505
|
+
telnyx/types/calls/action_start_transcription_params.py,sha256=HRhUrJDHuVmHvyykIi_XuHzSCUmloAEb_TA8HcfdmRg,6810
|
|
1506
1506
|
telnyx/types/calls/action_start_transcription_response.py,sha256=YBz5cet2N0xXBQWVWqaGRnHT4mMYgq_zE1n1gWtJCZk,368
|
|
1507
1507
|
telnyx/types/calls/action_stop_ai_assistant_params.py,sha256=dpiR3dGM3Fcz5PdqTDhq2s5Y9vmBFkJYIWhIJ1hv25Q,588
|
|
1508
1508
|
telnyx/types/calls/action_stop_ai_assistant_response.py,sha256=dlDTKZd_L46ZZTuNSUUYds2iteLKVBpFhFvPZw9ERuI,362
|
|
@@ -1538,7 +1538,7 @@ telnyx/types/calls/telnyx_voice_settings_param.py,sha256=cKNxCHVAYAyub7djKQRrVhs
|
|
|
1538
1538
|
telnyx/types/calls/transcription_config_param.py,sha256=Vs5N08QkJC_yjhLdm4msoejBgSN4MkNG8w29duTOyMo,652
|
|
1539
1539
|
telnyx/types/calls/transcription_engine_a_config_param.py,sha256=k4piu8I-WlUzX14N0LOyExjYUcPmF_XYu-nJgVP72LQ,1810
|
|
1540
1540
|
telnyx/types/calls/transcription_engine_b_config_param.py,sha256=7gWLXIHR2LF5jMO8Pq2Di9iYZIEiyIB8aOG-J08Bw6Q,2009
|
|
1541
|
-
telnyx/types/calls/transcription_start_request_param.py,sha256=
|
|
1541
|
+
telnyx/types/calls/transcription_start_request_param.py,sha256=1Qh12G8zr_bTIlFZZphvS7t7AsC9Kqc3Pcgk-HICFj4,6810
|
|
1542
1542
|
telnyx/types/campaign/__init__.py,sha256=EiCQNPPvDeCHP-bO9yVxHoeoEvU_Ln529j81ptDzk2s,293
|
|
1543
1543
|
telnyx/types/campaign/usecase_get_cost_params.py,sha256=IpXXEkkWs6BrDL2wqbac-GbN4UGrP3vVpU1cPNosUQE,290
|
|
1544
1544
|
telnyx/types/campaign/usecase_get_cost_response.py,sha256=oOKguNRxUrMrTrPjGSho7OW5qwq9ZLb6fPqNk0_v3nU,440
|
|
@@ -2025,7 +2025,7 @@ telnyx/types/wireless/detail_records_report_list_params.py,sha256=cfjsh4L_8mpDkg
|
|
|
2025
2025
|
telnyx/types/wireless/detail_records_report_list_response.py,sha256=S_6nD0fm5EseRIZHnML-UN0-g8Q_0J1cXfg_eLNUev8,331
|
|
2026
2026
|
telnyx/types/wireless/detail_records_report_retrieve_response.py,sha256=f0C8z8uo_QeCyi3nSDME4f4F3vqcy7o0MpinwDIqe_s,327
|
|
2027
2027
|
telnyx/types/wireless/wdr_report.py,sha256=bxRr-dc_IW6D0E3i_PUHK-bbu9w114Qql1uoJ_znxEE,1068
|
|
2028
|
-
telnyx-3.
|
|
2029
|
-
telnyx-3.
|
|
2030
|
-
telnyx-3.
|
|
2031
|
-
telnyx-3.
|
|
2028
|
+
telnyx-3.3.0.dist-info/METADATA,sha256=72vRn2BfNIuarePF_fCFYoZ06gMNArS8_lqp30pa1jM,15530
|
|
2029
|
+
telnyx-3.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
2030
|
+
telnyx-3.3.0.dist-info/licenses/LICENSE,sha256=PprdXvskBJR41_t2uhgs5rHYGME_Ek-lh2PAxKtdZs8,1046
|
|
2031
|
+
telnyx-3.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|