telnyx 5.7.0 → 5.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/audio_transcribe_params.rb +32 -5
- data/lib/telnyx/models/calls/action_start_recording_params.rb +122 -7
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_update_response.rb +9 -1
- data/lib/telnyx/resources/ai/audio.rb +5 -1
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/texml/calls.rb +0 -130
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +0 -4
- data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +53 -7
- data/rbi/telnyx/models/calls/action_start_recording_params.rbi +565 -9
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_update_response.rbi +11 -0
- data/rbi/telnyx/resources/ai/audio.rbi +18 -3
- data/rbi/telnyx/resources/calls/actions.rbi +5 -3
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/calls.rbi +0 -180
- data/sig/telnyx/models/ai/audio_transcribe_params.rbs +18 -1
- data/sig/telnyx/models/calls/action_start_recording_params.rbs +219 -5
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_update_response.rbs +7 -0
- data/sig/telnyx/resources/ai/audio.rbs +2 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/texml/calls.rbs +0 -49
- metadata +2 -14
- data/lib/telnyx/models/texml/call_initiate_params.rb +0 -427
- data/lib/telnyx/models/texml/call_initiate_response.rb +0 -41
- data/lib/telnyx/models/texml/call_update_params.rb +0 -16
- data/lib/telnyx/models/texml/call_update_response.rb +0 -35
- data/rbi/telnyx/models/texml/call_initiate_params.rbi +0 -886
- data/rbi/telnyx/models/texml/call_initiate_response.rbi +0 -85
- data/rbi/telnyx/models/texml/call_update_params.rbi +0 -29
- data/rbi/telnyx/models/texml/call_update_response.rbi +0 -75
- data/sig/telnyx/models/texml/call_initiate_params.rbs +0 -371
- data/sig/telnyx/models/texml/call_initiate_response.rbs +0 -44
- data/sig/telnyx/models/texml/call_update_params.rbs +0 -17
- data/sig/telnyx/models/texml/call_update_response.rbs +0 -40
|
@@ -48,6 +48,13 @@ module Telnyx
|
|
|
48
48
|
sig { params(page_size: Integer).void }
|
|
49
49
|
attr_writer :page_size
|
|
50
50
|
|
|
51
|
+
# List of participant resources.
|
|
52
|
+
sig { returns(T.nilable(T::Array[T.anything])) }
|
|
53
|
+
attr_reader :participants
|
|
54
|
+
|
|
55
|
+
sig { params(participants: T::Array[T.anything]).void }
|
|
56
|
+
attr_writer :participants
|
|
57
|
+
|
|
51
58
|
sig do
|
|
52
59
|
returns(
|
|
53
60
|
T.nilable(
|
|
@@ -90,6 +97,7 @@ module Telnyx
|
|
|
90
97
|
next_page_uri: String,
|
|
91
98
|
page: Integer,
|
|
92
99
|
page_size: Integer,
|
|
100
|
+
participants: T::Array[T.anything],
|
|
93
101
|
recordings:
|
|
94
102
|
T::Array[
|
|
95
103
|
Telnyx::Models::Texml::Accounts::ConferenceRetrieveRecordingsResponse::Recording::OrHash
|
|
@@ -109,6 +117,8 @@ module Telnyx
|
|
|
109
117
|
page: nil,
|
|
110
118
|
# The number of items on the page
|
|
111
119
|
page_size: nil,
|
|
120
|
+
# List of participant resources.
|
|
121
|
+
participants: nil,
|
|
112
122
|
recordings: nil,
|
|
113
123
|
# The number of the first element on the page, zero-indexed.
|
|
114
124
|
start: nil,
|
|
@@ -125,6 +135,7 @@ module Telnyx
|
|
|
125
135
|
next_page_uri: String,
|
|
126
136
|
page: Integer,
|
|
127
137
|
page_size: Integer,
|
|
138
|
+
participants: T::Array[T.anything],
|
|
128
139
|
recordings:
|
|
129
140
|
T::Array[
|
|
130
141
|
Telnyx::Models::Texml::Accounts::ConferenceRetrieveRecordingsResponse::Recording
|
|
@@ -42,6 +42,13 @@ module Telnyx
|
|
|
42
42
|
sig { params(coaching_call_sid: String).void }
|
|
43
43
|
attr_writer :coaching_call_sid
|
|
44
44
|
|
|
45
|
+
# The unique identifier for the conference.
|
|
46
|
+
sig { returns(T.nilable(String)) }
|
|
47
|
+
attr_reader :conference_sid
|
|
48
|
+
|
|
49
|
+
sig { params(conference_sid: String).void }
|
|
50
|
+
attr_writer :conference_sid
|
|
51
|
+
|
|
45
52
|
# Whether the conference ends when the participant leaves.
|
|
46
53
|
sig { returns(T.nilable(T::Boolean)) }
|
|
47
54
|
attr_reader :end_conference_on_exit
|
|
@@ -94,6 +101,7 @@ module Telnyx
|
|
|
94
101
|
call_sid: String,
|
|
95
102
|
coaching: T::Boolean,
|
|
96
103
|
coaching_call_sid: String,
|
|
104
|
+
conference_sid: String,
|
|
97
105
|
end_conference_on_exit: T::Boolean,
|
|
98
106
|
hold: T::Boolean,
|
|
99
107
|
muted: T::Boolean,
|
|
@@ -111,6 +119,8 @@ module Telnyx
|
|
|
111
119
|
coaching: nil,
|
|
112
120
|
# The identifier of the coached participant's call.
|
|
113
121
|
coaching_call_sid: nil,
|
|
122
|
+
# The unique identifier for the conference.
|
|
123
|
+
conference_sid: nil,
|
|
114
124
|
# Whether the conference ends when the participant leaves.
|
|
115
125
|
end_conference_on_exit: nil,
|
|
116
126
|
# Whether the participant is on hold.
|
|
@@ -131,6 +141,7 @@ module Telnyx
|
|
|
131
141
|
call_sid: String,
|
|
132
142
|
coaching: T::Boolean,
|
|
133
143
|
coaching_call_sid: String,
|
|
144
|
+
conference_sid: String,
|
|
134
145
|
end_conference_on_exit: T::Boolean,
|
|
135
146
|
hold: T::Boolean,
|
|
136
147
|
muted: T::Boolean,
|
data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbi
CHANGED
|
@@ -196,6 +196,13 @@ module Telnyx
|
|
|
196
196
|
sig { params(coaching_call_sid_legacy: String).void }
|
|
197
197
|
attr_writer :coaching_call_sid_legacy
|
|
198
198
|
|
|
199
|
+
# The unique identifier for the conference.
|
|
200
|
+
sig { returns(T.nilable(String)) }
|
|
201
|
+
attr_reader :conference_sid
|
|
202
|
+
|
|
203
|
+
sig { params(conference_sid: String).void }
|
|
204
|
+
attr_writer :conference_sid
|
|
205
|
+
|
|
199
206
|
# The timestamp of when the resource was created.
|
|
200
207
|
sig { returns(T.nilable(String)) }
|
|
201
208
|
attr_reader :date_created
|
|
@@ -265,6 +272,7 @@ module Telnyx
|
|
|
265
272
|
coaching: T::Boolean,
|
|
266
273
|
coaching_call_sid: String,
|
|
267
274
|
coaching_call_sid_legacy: String,
|
|
275
|
+
conference_sid: String,
|
|
268
276
|
date_created: String,
|
|
269
277
|
date_updated: String,
|
|
270
278
|
end_conference_on_exit: T::Boolean,
|
|
@@ -290,6 +298,8 @@ module Telnyx
|
|
|
290
298
|
coaching_call_sid: nil,
|
|
291
299
|
# The identifier of the coached participant's call.
|
|
292
300
|
coaching_call_sid_legacy: nil,
|
|
301
|
+
# The unique identifier for the conference.
|
|
302
|
+
conference_sid: nil,
|
|
293
303
|
# The timestamp of when the resource was created.
|
|
294
304
|
date_created: nil,
|
|
295
305
|
# The timestamp of when the resource was last updated.
|
|
@@ -317,6 +327,7 @@ module Telnyx
|
|
|
317
327
|
coaching: T::Boolean,
|
|
318
328
|
coaching_call_sid: String,
|
|
319
329
|
coaching_call_sid_legacy: String,
|
|
330
|
+
conference_sid: String,
|
|
320
331
|
date_created: String,
|
|
321
332
|
date_updated: String,
|
|
322
333
|
end_conference_on_exit: T::Boolean,
|
|
@@ -63,6 +63,13 @@ module Telnyx
|
|
|
63
63
|
sig { params(coaching_call_sid_legacy: String).void }
|
|
64
64
|
attr_writer :coaching_call_sid_legacy
|
|
65
65
|
|
|
66
|
+
# The unique identifier for the conference.
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_reader :conference_sid
|
|
69
|
+
|
|
70
|
+
sig { params(conference_sid: String).void }
|
|
71
|
+
attr_writer :conference_sid
|
|
72
|
+
|
|
66
73
|
# The timestamp of when the resource was created.
|
|
67
74
|
sig { returns(T.nilable(String)) }
|
|
68
75
|
attr_reader :date_created
|
|
@@ -132,6 +139,7 @@ module Telnyx
|
|
|
132
139
|
coaching: T::Boolean,
|
|
133
140
|
coaching_call_sid: String,
|
|
134
141
|
coaching_call_sid_legacy: String,
|
|
142
|
+
conference_sid: String,
|
|
135
143
|
date_created: String,
|
|
136
144
|
date_updated: String,
|
|
137
145
|
end_conference_on_exit: T::Boolean,
|
|
@@ -157,6 +165,8 @@ module Telnyx
|
|
|
157
165
|
coaching_call_sid: nil,
|
|
158
166
|
# The identifier of the coached participant's call.
|
|
159
167
|
coaching_call_sid_legacy: nil,
|
|
168
|
+
# The unique identifier for the conference.
|
|
169
|
+
conference_sid: nil,
|
|
160
170
|
# The timestamp of when the resource was created.
|
|
161
171
|
date_created: nil,
|
|
162
172
|
# The timestamp of when the resource was last updated.
|
|
@@ -184,6 +194,7 @@ module Telnyx
|
|
|
184
194
|
coaching: T::Boolean,
|
|
185
195
|
coaching_call_sid: String,
|
|
186
196
|
coaching_call_sid_legacy: String,
|
|
197
|
+
conference_sid: String,
|
|
187
198
|
date_created: String,
|
|
188
199
|
date_updated: String,
|
|
189
200
|
end_conference_on_exit: T::Boolean,
|
|
@@ -63,6 +63,13 @@ module Telnyx
|
|
|
63
63
|
sig { params(coaching_call_sid_legacy: String).void }
|
|
64
64
|
attr_writer :coaching_call_sid_legacy
|
|
65
65
|
|
|
66
|
+
# The unique identifier for the conference.
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_reader :conference_sid
|
|
69
|
+
|
|
70
|
+
sig { params(conference_sid: String).void }
|
|
71
|
+
attr_writer :conference_sid
|
|
72
|
+
|
|
66
73
|
# The timestamp of when the resource was created.
|
|
67
74
|
sig { returns(T.nilable(String)) }
|
|
68
75
|
attr_reader :date_created
|
|
@@ -132,6 +139,7 @@ module Telnyx
|
|
|
132
139
|
coaching: T::Boolean,
|
|
133
140
|
coaching_call_sid: String,
|
|
134
141
|
coaching_call_sid_legacy: String,
|
|
142
|
+
conference_sid: String,
|
|
135
143
|
date_created: String,
|
|
136
144
|
date_updated: String,
|
|
137
145
|
end_conference_on_exit: T::Boolean,
|
|
@@ -157,6 +165,8 @@ module Telnyx
|
|
|
157
165
|
coaching_call_sid: nil,
|
|
158
166
|
# The identifier of the coached participant's call.
|
|
159
167
|
coaching_call_sid_legacy: nil,
|
|
168
|
+
# The unique identifier for the conference.
|
|
169
|
+
conference_sid: nil,
|
|
160
170
|
# The timestamp of when the resource was created.
|
|
161
171
|
date_created: nil,
|
|
162
172
|
# The timestamp of when the resource was last updated.
|
|
@@ -184,6 +194,7 @@ module Telnyx
|
|
|
184
194
|
coaching: T::Boolean,
|
|
185
195
|
coaching_call_sid: String,
|
|
186
196
|
coaching_call_sid_legacy: String,
|
|
197
|
+
conference_sid: String,
|
|
187
198
|
date_created: String,
|
|
188
199
|
date_updated: String,
|
|
189
200
|
end_conference_on_exit: T::Boolean,
|
|
@@ -12,6 +12,8 @@ module Telnyx
|
|
|
12
12
|
model: Telnyx::AI::AudioTranscribeParams::Model::OrSymbol,
|
|
13
13
|
file: Telnyx::Internal::FileInput,
|
|
14
14
|
file_url: String,
|
|
15
|
+
language: String,
|
|
16
|
+
model_config: T::Hash[Symbol, T.anything],
|
|
15
17
|
response_format:
|
|
16
18
|
Telnyx::AI::AudioTranscribeParams::ResponseFormat::OrSymbol,
|
|
17
19
|
timestamp_granularities:
|
|
@@ -22,16 +24,29 @@ module Telnyx
|
|
|
22
24
|
def transcribe(
|
|
23
25
|
# ID of the model to use. `distil-whisper/distil-large-v2` is lower latency but
|
|
24
26
|
# English-only. `openai/whisper-large-v3-turbo` is multi-lingual but slightly
|
|
25
|
-
# higher latency.
|
|
27
|
+
# higher latency. `deepgram/nova-3` supports English variants (en, en-US, en-GB,
|
|
28
|
+
# en-AU, en-NZ, en-IN) and only accepts mp3/wav files.
|
|
26
29
|
model:,
|
|
27
30
|
# The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
28
31
|
# mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
|
|
29
|
-
# be used together with `file_url`
|
|
32
|
+
# be used together with `file_url`. Note: `deepgram/nova-3` only supports mp3 and
|
|
33
|
+
# wav formats.
|
|
30
34
|
file: nil,
|
|
31
35
|
# Link to audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a,
|
|
32
36
|
# ogg, wav, or webm. Support for hosted files is limited to 100MB. Cannot be used
|
|
33
|
-
# together with `file`
|
|
37
|
+
# together with `file`. Note: `deepgram/nova-3` only supports mp3 and wav formats.
|
|
34
38
|
file_url: nil,
|
|
39
|
+
# The language of the audio to be transcribed. For `deepgram/nova-3`, only English
|
|
40
|
+
# variants are supported: `en`, `en-US`, `en-GB`, `en-AU`, `en-NZ`, `en-IN`. For
|
|
41
|
+
# `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
42
|
+
# `distil-whisper/distil-large-v2` does not support language parameter.
|
|
43
|
+
language: nil,
|
|
44
|
+
# Additional model-specific configuration parameters. Only allowed with
|
|
45
|
+
# `deepgram/nova-3` model. Can include Deepgram-specific options such as
|
|
46
|
+
# `smart_format`, `punctuate`, `diarize`, `utterance`, `numerals`, and `language`.
|
|
47
|
+
# If `language` is provided both as a top-level parameter and in `model_config`,
|
|
48
|
+
# the top-level parameter takes precedence.
|
|
49
|
+
model_config: nil,
|
|
35
50
|
# The format of the transcript output. Use `verbose_json` to take advantage of
|
|
36
51
|
# timestamps.
|
|
37
52
|
response_format: nil,
|
|
@@ -1283,7 +1283,8 @@ module Telnyx
|
|
|
1283
1283
|
Telnyx::Calls::ActionStartRecordingParams::RecordingTrack::OrSymbol,
|
|
1284
1284
|
timeout_secs: Integer,
|
|
1285
1285
|
transcription: T::Boolean,
|
|
1286
|
-
transcription_engine:
|
|
1286
|
+
transcription_engine:
|
|
1287
|
+
Telnyx::Calls::ActionStartRecordingParams::TranscriptionEngine::OrSymbol,
|
|
1287
1288
|
transcription_language:
|
|
1288
1289
|
Telnyx::Calls::ActionStartRecordingParams::TranscriptionLanguage::OrSymbol,
|
|
1289
1290
|
transcription_max_speaker_count: Integer,
|
|
@@ -1328,9 +1329,10 @@ module Telnyx
|
|
|
1328
1329
|
timeout_secs: nil,
|
|
1329
1330
|
# Enable post recording transcription. The default value is false.
|
|
1330
1331
|
transcription: nil,
|
|
1331
|
-
# Engine to use for speech recognition. `A` - `Google`
|
|
1332
|
+
# Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`,
|
|
1333
|
+
# `deepgram/nova-3` - `Deepgram Nova-3`. Note: `deepgram/nova-3` supports only
|
|
1334
|
+
# `en` and `en-{Region}` languages.
|
|
1332
1335
|
transcription_engine: nil,
|
|
1333
|
-
# Language to use for speech recognition
|
|
1334
1336
|
transcription_language: nil,
|
|
1335
1337
|
# Defines maximum number of speakers in the conversation. Applies to `google`
|
|
1336
1338
|
# engine only.
|
|
@@ -73,7 +73,7 @@ module Telnyx
|
|
|
73
73
|
end
|
|
74
74
|
def list(
|
|
75
75
|
# Consolidated filter parameter for SIM cards (deepObject style). Originally:
|
|
76
|
-
# filter[
|
|
76
|
+
# filter[iccid], filter[msisdn], filter[status], filter[tags]
|
|
77
77
|
filter: nil,
|
|
78
78
|
# A valid SIM card group ID.
|
|
79
79
|
filter_sim_card_group_id: nil,
|
|
@@ -4,186 +4,6 @@ module Telnyx
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Texml
|
|
6
6
|
class Calls
|
|
7
|
-
# Update TeXML call. Please note that the keys present in the payload MUST BE
|
|
8
|
-
# formatted in CamelCase as specified in the example.
|
|
9
|
-
sig do
|
|
10
|
-
params(
|
|
11
|
-
call_sid: String,
|
|
12
|
-
fallback_method:
|
|
13
|
-
Telnyx::Texml::Accounts::UpdateCall::FallbackMethod::OrSymbol,
|
|
14
|
-
fallback_url: String,
|
|
15
|
-
method_: Telnyx::Texml::Accounts::UpdateCall::Method::OrSymbol,
|
|
16
|
-
status: String,
|
|
17
|
-
status_callback: String,
|
|
18
|
-
status_callback_method:
|
|
19
|
-
Telnyx::Texml::Accounts::UpdateCall::StatusCallbackMethod::OrSymbol,
|
|
20
|
-
texml: String,
|
|
21
|
-
url: String,
|
|
22
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
23
|
-
).returns(Telnyx::Models::Texml::CallUpdateResponse)
|
|
24
|
-
end
|
|
25
|
-
def update(
|
|
26
|
-
# The CallSid that identifies the call to update.
|
|
27
|
-
call_sid,
|
|
28
|
-
# HTTP request type used for `FallbackUrl`.
|
|
29
|
-
fallback_method: nil,
|
|
30
|
-
# A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
31
|
-
# Url is not responding.
|
|
32
|
-
fallback_url: nil,
|
|
33
|
-
# HTTP request type used for `Url`.
|
|
34
|
-
method_: nil,
|
|
35
|
-
# The value to set the call status to. Setting the status to completed ends the
|
|
36
|
-
# call.
|
|
37
|
-
status: nil,
|
|
38
|
-
# URL destination for Telnyx to send status callback events to for the call.
|
|
39
|
-
status_callback: nil,
|
|
40
|
-
# HTTP request type used for `StatusCallback`.
|
|
41
|
-
status_callback_method: nil,
|
|
42
|
-
# TeXML to replace the current one with.
|
|
43
|
-
texml: nil,
|
|
44
|
-
# The URL where TeXML will make a request to retrieve a new set of TeXML
|
|
45
|
-
# instructions to continue the call flow.
|
|
46
|
-
url: nil,
|
|
47
|
-
request_options: {}
|
|
48
|
-
)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request
|
|
52
|
-
# URL configured for the connection in the Mission Control Portal.
|
|
53
|
-
sig do
|
|
54
|
-
params(
|
|
55
|
-
application_id: String,
|
|
56
|
-
from: String,
|
|
57
|
-
to: String,
|
|
58
|
-
async_amd: T::Boolean,
|
|
59
|
-
async_amd_status_callback: String,
|
|
60
|
-
async_amd_status_callback_method:
|
|
61
|
-
Telnyx::Texml::CallInitiateParams::AsyncAmdStatusCallbackMethod::OrSymbol,
|
|
62
|
-
caller_id: String,
|
|
63
|
-
cancel_playback_on_detect_message_end: T::Boolean,
|
|
64
|
-
cancel_playback_on_machine_detection: T::Boolean,
|
|
65
|
-
detection_mode:
|
|
66
|
-
Telnyx::Texml::CallInitiateParams::DetectionMode::OrSymbol,
|
|
67
|
-
fallback_url: String,
|
|
68
|
-
machine_detection:
|
|
69
|
-
Telnyx::Texml::CallInitiateParams::MachineDetection::OrSymbol,
|
|
70
|
-
machine_detection_silence_timeout: Integer,
|
|
71
|
-
machine_detection_speech_end_threshold: Integer,
|
|
72
|
-
machine_detection_speech_threshold: Integer,
|
|
73
|
-
machine_detection_timeout: Integer,
|
|
74
|
-
preferred_codecs: String,
|
|
75
|
-
record: T::Boolean,
|
|
76
|
-
recording_channels:
|
|
77
|
-
Telnyx::Texml::CallInitiateParams::RecordingChannels::OrSymbol,
|
|
78
|
-
recording_status_callback: String,
|
|
79
|
-
recording_status_callback_event: String,
|
|
80
|
-
recording_status_callback_method:
|
|
81
|
-
Telnyx::Texml::CallInitiateParams::RecordingStatusCallbackMethod::OrSymbol,
|
|
82
|
-
recording_timeout: Integer,
|
|
83
|
-
recording_track:
|
|
84
|
-
Telnyx::Texml::CallInitiateParams::RecordingTrack::OrSymbol,
|
|
85
|
-
sip_auth_password: String,
|
|
86
|
-
sip_auth_username: String,
|
|
87
|
-
status_callback: String,
|
|
88
|
-
status_callback_event:
|
|
89
|
-
Telnyx::Texml::CallInitiateParams::StatusCallbackEvent::OrSymbol,
|
|
90
|
-
status_callback_method:
|
|
91
|
-
Telnyx::Texml::CallInitiateParams::StatusCallbackMethod::OrSymbol,
|
|
92
|
-
trim: Telnyx::Texml::CallInitiateParams::Trim::OrSymbol,
|
|
93
|
-
url: String,
|
|
94
|
-
url_method: Telnyx::Texml::CallInitiateParams::URLMethod::OrSymbol,
|
|
95
|
-
request_options: Telnyx::RequestOptions::OrHash
|
|
96
|
-
).returns(Telnyx::Models::Texml::CallInitiateResponse)
|
|
97
|
-
end
|
|
98
|
-
def initiate(
|
|
99
|
-
# The ID of the TeXML application used for the call.
|
|
100
|
-
application_id,
|
|
101
|
-
# The phone number of the party that initiated the call. Phone numbers are
|
|
102
|
-
# formatted with a `+` and country code.
|
|
103
|
-
from:,
|
|
104
|
-
# The phone number of the called party. Phone numbers are formatted with a `+` and
|
|
105
|
-
# country code.
|
|
106
|
-
to:,
|
|
107
|
-
# Select whether to perform answering machine detection in the background. By
|
|
108
|
-
# default execution is blocked until Answering Machine Detection is completed.
|
|
109
|
-
async_amd: nil,
|
|
110
|
-
# URL destination for Telnyx to send AMD callback events to for the call.
|
|
111
|
-
async_amd_status_callback: nil,
|
|
112
|
-
# HTTP request type used for `AsyncAmdStatusCallback`. The default value is
|
|
113
|
-
# inherited from TeXML Application setting.
|
|
114
|
-
async_amd_status_callback_method: nil,
|
|
115
|
-
# To be used as the caller id name (SIP From Display Name) presented to the
|
|
116
|
-
# destination (`To` number). The string should have a maximum of 128 characters,
|
|
117
|
-
# containing only letters, numbers, spaces, and `-_~!.+` special characters. If
|
|
118
|
-
# ommited, the display name will be the same as the number in the `From` field.
|
|
119
|
-
caller_id: nil,
|
|
120
|
-
# Whether to cancel ongoing playback on `greeting ended` detection. Defaults to
|
|
121
|
-
# `true`.
|
|
122
|
-
cancel_playback_on_detect_message_end: nil,
|
|
123
|
-
# Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
|
|
124
|
-
cancel_playback_on_machine_detection: nil,
|
|
125
|
-
# Allows you to chose between Premium and Standard detections.
|
|
126
|
-
detection_mode: nil,
|
|
127
|
-
# A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
128
|
-
# `Url` is not responding.
|
|
129
|
-
fallback_url: nil,
|
|
130
|
-
# Enables Answering Machine Detection.
|
|
131
|
-
machine_detection: nil,
|
|
132
|
-
# If initial silence duration is greater than this value, consider it a machine.
|
|
133
|
-
# Ignored when `premium` detection is used.
|
|
134
|
-
machine_detection_silence_timeout: nil,
|
|
135
|
-
# Silence duration threshold after a greeting message or voice for it be
|
|
136
|
-
# considered human. Ignored when `premium` detection is used.
|
|
137
|
-
machine_detection_speech_end_threshold: nil,
|
|
138
|
-
# Maximum threshold of a human greeting. If greeting longer than this value,
|
|
139
|
-
# considered machine. Ignored when `premium` detection is used.
|
|
140
|
-
machine_detection_speech_threshold: nil,
|
|
141
|
-
# Maximum timeout threshold in milliseconds for overall detection.
|
|
142
|
-
machine_detection_timeout: nil,
|
|
143
|
-
# The list of comma-separated codecs to be offered on a call.
|
|
144
|
-
preferred_codecs: nil,
|
|
145
|
-
# Whether to record the entire participant's call leg. Defaults to `false`.
|
|
146
|
-
record: nil,
|
|
147
|
-
# The number of channels in the final recording. Defaults to `mono`.
|
|
148
|
-
recording_channels: nil,
|
|
149
|
-
# The URL the recording callbacks will be sent to.
|
|
150
|
-
recording_status_callback: nil,
|
|
151
|
-
# The changes to the recording's state that should generate a call to
|
|
152
|
-
# `RecoridngStatusCallback`. Can be: `in-progress`, `completed` and `absent`.
|
|
153
|
-
# Separate multiple values with a space. Defaults to `completed`.
|
|
154
|
-
recording_status_callback_event: nil,
|
|
155
|
-
# HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
|
|
156
|
-
recording_status_callback_method: nil,
|
|
157
|
-
# The number of seconds that Telnyx will wait for the recording to be stopped if
|
|
158
|
-
# silence is detected. The timer only starts when the speech is detected. Please
|
|
159
|
-
# note that the transcription is used to detect silence and the related charge
|
|
160
|
-
# will be applied. The minimum value is 0. The default value is 0 (infinite)
|
|
161
|
-
recording_timeout: nil,
|
|
162
|
-
# The audio track to record for the call. The default is `both`.
|
|
163
|
-
recording_track: nil,
|
|
164
|
-
# The password to use for SIP authentication.
|
|
165
|
-
sip_auth_password: nil,
|
|
166
|
-
# The username to use for SIP authentication.
|
|
167
|
-
sip_auth_username: nil,
|
|
168
|
-
# URL destination for Telnyx to send status callback events to for the call.
|
|
169
|
-
status_callback: nil,
|
|
170
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
171
|
-
# defined when separated by a space.
|
|
172
|
-
status_callback_event: nil,
|
|
173
|
-
# HTTP request type used for `StatusCallback`.
|
|
174
|
-
status_callback_method: nil,
|
|
175
|
-
# Whether to trim any leading and trailing silence from the recording. Defaults to
|
|
176
|
-
# `trim-silence`.
|
|
177
|
-
trim: nil,
|
|
178
|
-
# The URL from which Telnyx will retrieve the TeXML call instructions.
|
|
179
|
-
url: nil,
|
|
180
|
-
# HTTP request type used for `Url`. The default value is inherited from TeXML
|
|
181
|
-
# Application setting.
|
|
182
|
-
url_method: nil,
|
|
183
|
-
request_options: {}
|
|
184
|
-
)
|
|
185
|
-
end
|
|
186
|
-
|
|
187
7
|
# @api private
|
|
188
8
|
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
189
9
|
def self.new(client:)
|
|
@@ -6,6 +6,8 @@ module Telnyx
|
|
|
6
6
|
model: Telnyx::Models::AI::AudioTranscribeParams::model,
|
|
7
7
|
file: Telnyx::Internal::file_input,
|
|
8
8
|
file_url: String,
|
|
9
|
+
language: String,
|
|
10
|
+
model_config: ::Hash[Symbol, top],
|
|
9
11
|
response_format: Telnyx::Models::AI::AudioTranscribeParams::response_format,
|
|
10
12
|
timestamp_granularities: Telnyx::Models::AI::AudioTranscribeParams::timestamp_granularities
|
|
11
13
|
}
|
|
@@ -27,6 +29,14 @@ module Telnyx
|
|
|
27
29
|
|
|
28
30
|
def file_url=: (String) -> String
|
|
29
31
|
|
|
32
|
+
attr_reader language: String?
|
|
33
|
+
|
|
34
|
+
def language=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader model_config: ::Hash[Symbol, top]?
|
|
37
|
+
|
|
38
|
+
def model_config=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
39
|
+
|
|
30
40
|
attr_reader response_format: Telnyx::Models::AI::AudioTranscribeParams::response_format?
|
|
31
41
|
|
|
32
42
|
def response_format=: (
|
|
@@ -43,6 +53,8 @@ module Telnyx
|
|
|
43
53
|
model: Telnyx::Models::AI::AudioTranscribeParams::model,
|
|
44
54
|
?file: Telnyx::Internal::file_input,
|
|
45
55
|
?file_url: String,
|
|
56
|
+
?language: String,
|
|
57
|
+
?model_config: ::Hash[Symbol, top],
|
|
46
58
|
?response_format: Telnyx::Models::AI::AudioTranscribeParams::response_format,
|
|
47
59
|
?timestamp_granularities: Telnyx::Models::AI::AudioTranscribeParams::timestamp_granularities,
|
|
48
60
|
?request_options: Telnyx::request_opts
|
|
@@ -52,19 +64,24 @@ module Telnyx
|
|
|
52
64
|
model: Telnyx::Models::AI::AudioTranscribeParams::model,
|
|
53
65
|
file: Telnyx::Internal::file_input,
|
|
54
66
|
file_url: String,
|
|
67
|
+
language: String,
|
|
68
|
+
model_config: ::Hash[Symbol, top],
|
|
55
69
|
response_format: Telnyx::Models::AI::AudioTranscribeParams::response_format,
|
|
56
70
|
timestamp_granularities: Telnyx::Models::AI::AudioTranscribeParams::timestamp_granularities,
|
|
57
71
|
request_options: Telnyx::RequestOptions
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
type model =
|
|
61
|
-
:"distil-whisper/distil-large-v2"
|
|
75
|
+
:"distil-whisper/distil-large-v2"
|
|
76
|
+
| :"openai/whisper-large-v3-turbo"
|
|
77
|
+
| :"deepgram/nova-3"
|
|
62
78
|
|
|
63
79
|
module Model
|
|
64
80
|
extend Telnyx::Internal::Type::Enum
|
|
65
81
|
|
|
66
82
|
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
67
83
|
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
84
|
+
DEEPGRAM_NOVA_3: :"deepgram/nova-3"
|
|
68
85
|
|
|
69
86
|
def self?.values: -> ::Array[Telnyx::Models::AI::AudioTranscribeParams::model]
|
|
70
87
|
end
|