@wildix/wilma-voice-client 0.0.24 → 0.0.26

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.
@@ -1,3 +1,15 @@
1
+ export const VoicePronunciationEncoding = {
2
+ ALIAS: "alias",
3
+ IPA: "ipa",
4
+ };
5
+ export const VoiceSpeechProvider = {
6
+ AMAZON_POLLY: "amazon_polly",
7
+ ELEVENLABS: "elevenlabs",
8
+ GOOGLE: "google",
9
+ };
10
+ export const VoiceTranscriptionVendor = {
11
+ AWS: "aws",
12
+ };
1
13
  export const VoiceEventType = {
2
14
  AUDIO: "audio",
3
15
  COMPLETE: "complete",
@@ -13,9 +13,15 @@ const _HCD = "HangupCommandData";
13
13
  const _HWC = "HangupWebsocketCommand";
14
14
  const _IE = "InterruptionEvent";
15
15
  const _IWE = "InterruptionWebsocketEvent";
16
+ const _LSV = "ListSpeechVoices";
17
+ const _LSVI = "ListSpeechVoicesInput";
18
+ const _LSVO = "ListSpeechVoicesOutput";
16
19
  const _NFE = "NotFoundException";
17
20
  const _PCD = "PlayCommandData";
18
21
  const _PE = "PlaybackEvent";
22
+ const _PS = "PreviewSpeech";
23
+ const _PSI = "PreviewSpeechInput";
24
+ const _PSO = "PreviewSpeechOutput";
19
25
  const _PWC = "PlayWebsocketCommand";
20
26
  const _PWE = "PlaybackWebsocketEvent";
21
27
  const _RE = "ReplyEvent";
@@ -42,6 +48,8 @@ const _SSe = "SendStop";
42
48
  const _ST = "SendTransfer";
43
49
  const _STI = "SendTransferInput";
44
50
  const _STO = "SendTransferOutput";
51
+ const _SV = "SpeechVoice";
52
+ const _SVL = "SpeechVoiceList";
45
53
  const _SWC = "SayWebsocketCommand";
46
54
  const _SWCt = "StopWebsocketCommand";
47
55
  const _TCD = "TransferCommandData";
@@ -52,13 +60,21 @@ const _VAF = "VoiceAudioFormat";
52
60
  const _VCP = "VoiceConnectParams";
53
61
  const _VE = "ValidationException";
54
62
  const _VEE = "VoiceErrorEvent";
55
- const _a = "action";
63
+ const _VP = "VoicePronunciation";
64
+ const _VPL = "VoicePronunciationList";
65
+ const _VSO = "VoiceSynthesisOptions";
66
+ const _VSP = "VoiceSpeechPayload";
67
+ const _a = "as";
56
68
  const _aD = "agentDraft";
69
+ const _aDu = "autoDetect";
57
70
  const _aI = "agentId";
58
71
  const _aN = "agentName";
59
72
  const _aV = "agentVersion";
60
73
  const _aWE = "audioWebsocketEvent";
74
+ const _ac = "action";
75
+ const _acc = "accent";
61
76
  const _au = "audio";
77
+ const _bS = "backgroundSound";
62
78
  const _c = "client";
63
79
  const _cC = "callerCompany";
64
80
  const _cE = "callerEmail";
@@ -75,6 +91,7 @@ const _cod = "code";
75
91
  const _com = "complete";
76
92
  const _con = "context";
77
93
  const _conf = "confidence";
94
+ const _cr = "credential";
78
95
  const _d = "data";
79
96
  const _e = "error";
80
97
  const _eT = "endTime";
@@ -83,9 +100,11 @@ const _en = "encoding";
83
100
  const _ev = "event";
84
101
  const _ex = "extension";
85
102
  const _f = "final";
103
+ const _g = "gender";
86
104
  const _gI = "groupId";
87
105
  const _h = "http";
88
106
  const _hE = "httpError";
107
+ const _hQ = "httpQuery";
89
108
  const _hWC = "hangupWebsocketCommand";
90
109
  const _i = "id";
91
110
  const _iA = "inputAudio";
@@ -94,17 +113,30 @@ const _iMn = "inputMode";
94
113
  const _iWE = "interruptionWebsocketEvent";
95
114
  const _in = "interruptible";
96
115
  const _l = "language";
116
+ const _lS = "languageSynthesis";
117
+ const _la = "languages";
97
118
  const _m = "message";
119
+ const _mo = "model";
120
+ const _mod = "models";
121
+ const _n = "name";
98
122
  const _oA = "outputAudio";
99
123
  const _oT = "originalText";
124
+ const _p = "phrase";
125
+ const _pL = "preferredLanguage";
100
126
  const _pT = "playedText";
127
+ const _pU = "previewUrl";
101
128
  const _pV = "protocolVersion";
102
129
  const _pWC = "playWebsocketCommand";
103
130
  const _pWE = "playbackWebsocketEvent";
131
+ const _pi = "pitch";
132
+ const _pr = "provider";
133
+ const _pro = "pronunciations";
104
134
  const _r = "reason";
135
+ const _rA = "refreshedAt";
105
136
  const _rI = "replyId";
106
137
  const _rWE = "replyWebsocketEvent";
107
138
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
139
+ const _sB = "speakerBoost";
108
140
  const _sEWE = "sessionEndedWebsocketEvent";
109
141
  const _sI = "streamId";
110
142
  const _sIe = "sessionId";
@@ -114,16 +146,29 @@ const _sT = "startTime";
114
146
  const _sWC = "sayWebsocketCommand";
115
147
  const _sWCt = "stopWebsocketCommand";
116
148
  const _se = "seq";
149
+ const _sea = "search";
150
+ const _si = "similarity";
151
+ const _sp = "speed";
152
+ const _spe = "speech";
153
+ const _st = "stability";
154
+ const _sta = "stale";
155
+ const _sty = "style";
156
+ const _su = "suppressions";
157
+ const _sy = "synthesis";
117
158
  const _t = "type";
118
159
  const _tI = "traceId";
119
160
  const _tWC = "transferWebsocketCommand";
120
161
  const _tWE = "transcriptionWebsocketEvent";
121
162
  const _te = "text";
122
163
  const _ti = "time";
123
- const _v = "voice";
164
+ const _v = "voices";
165
+ const _vG = "volumeGain";
124
166
  const _va = "variables";
167
+ const _ve = "vendor";
168
+ const _vo = "voice";
125
169
  const n0 = "smithy.framework";
126
- const n1 = "wildix.wilma.voice";
170
+ const n1 = "wildix.wilma.agents";
171
+ const n2 = "wildix.wilma.voice";
127
172
  import { TypeRegistry } from "@smithy/core/schema";
128
173
  import { ForbiddenException, NotFoundException, ValidationException } from "../models/errors";
129
174
  import { WilmaVoiceServiceException } from "../models/WilmaVoiceServiceException";
@@ -153,246 +198,302 @@ export const errorTypeRegistries = [
153
198
  _s_registry,
154
199
  n0_registry,
155
200
  ];
156
- export var AudioEvent$ = [3, n1, _AE,
201
+ export var VoicePronunciation$ = [3, n1, _VP,
202
+ 0,
203
+ [_p, _a, _en],
204
+ [0, 0, 0], 2
205
+ ];
206
+ export var VoiceSynthesisOptions$ = [3, n1, _VSO,
207
+ 0,
208
+ [_mo, _sp, _st, _si, _sty, _sB, _pi, _vG],
209
+ [0, 1, 1, 1, 1, 2, 1, 1]
210
+ ];
211
+ export var AudioEvent$ = [3, n2, _AE,
157
212
  0,
158
213
  [_t, _d, _se],
159
214
  [0, 0, 1], 2
160
215
  ];
161
- export var AudioWebsocketEvent$ = [3, n1, _AWE,
216
+ export var AudioWebsocketEvent$ = [3, n2, _AWE,
162
217
  0,
163
218
  [_t, _ev],
164
219
  [0, () => AudioEvent$], 2
165
220
  ];
166
- export var CompleteEvent$ = [3, n1, _CE,
221
+ export var CompleteEvent$ = [3, n2, _CE,
167
222
  0,
168
223
  [_t, _r, _ti],
169
224
  [0, 0, 1], 3
170
225
  ];
171
- export var CompleteWebsocketEvent$ = [3, n1, _CWE,
226
+ export var CompleteWebsocketEvent$ = [3, n2, _CWE,
172
227
  0,
173
228
  [_t, _ev],
174
229
  [0, () => CompleteEvent$], 2
175
230
  ];
176
- export var ControlEvent$ = [3, n1, _CEo,
231
+ export var ControlEvent$ = [3, n2, _CEo,
177
232
  0,
178
- [_t, _a],
233
+ [_t, _ac],
179
234
  [0, 0], 2
180
235
  ];
181
- export var ControlWebsocketEvent$ = [3, n1, _CWEo,
236
+ export var ControlWebsocketEvent$ = [3, n2, _CWEo,
182
237
  0,
183
238
  [_t, _ev],
184
239
  [0, () => ControlEvent$], 2
185
240
  ];
186
- export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
241
+ export var DescribeVoiceProtocolInput$ = [3, n2, _DVPI,
187
242
  0,
188
243
  [],
189
244
  []
190
245
  ];
191
- export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
246
+ export var DescribeVoiceProtocolOutput$ = [3, n2, _DVPO,
192
247
  0,
193
248
  [_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
194
249
  [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$]
195
250
  ];
196
- export var ErrorWebsocketEvent$ = [3, n1, _EWE,
251
+ export var ErrorWebsocketEvent$ = [3, n2, _EWE,
197
252
  0,
198
253
  [_t, _ev],
199
254
  [0, () => VoiceErrorEvent$], 2
200
255
  ];
201
- export var HangupCommandData$ = [3, n1, _HCD,
256
+ export var HangupCommandData$ = [3, n2, _HCD,
202
257
  0,
203
258
  [_t, _r],
204
259
  [0, 0], 1
205
260
  ];
206
- export var HangupWebsocketCommand$ = [3, n1, _HWC,
261
+ export var HangupWebsocketCommand$ = [3, n2, _HWC,
207
262
  0,
208
263
  [_t, _co],
209
264
  [0, () => HangupCommandData$], 2
210
265
  ];
211
- export var InterruptionEvent$ = [3, n1, _IE,
266
+ export var InterruptionEvent$ = [3, n2, _IE,
212
267
  0,
213
268
  [_t, _rI, _pT, _oT, _ti],
214
269
  [0, 0, 0, 0, 1], 5
215
270
  ];
216
- export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
271
+ export var InterruptionWebsocketEvent$ = [3, n2, _IWE,
217
272
  0,
218
273
  [_t, _ev],
219
274
  [0, () => InterruptionEvent$], 2
220
275
  ];
221
- export var PlaybackEvent$ = [3, n1, _PE,
276
+ export var ListSpeechVoicesInput$ = [3, n2, _LSVI,
277
+ 0,
278
+ [_pr, _l, _sea, _cr],
279
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
280
+ ];
281
+ export var ListSpeechVoicesOutput$ = [3, n2, _LSVO,
282
+ 0,
283
+ [_v, _rA, _la, _sta],
284
+ [() => SpeechVoiceList, 0, 64 | 0, 2], 2
285
+ ];
286
+ export var PlaybackEvent$ = [3, n2, _PE,
222
287
  0,
223
288
  [_t, _rI, _te, _com, _sT, _eT],
224
289
  [0, 0, 0, 2, 1, 1], 5
225
290
  ];
226
- export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
291
+ export var PlaybackWebsocketEvent$ = [3, n2, _PWE,
227
292
  0,
228
293
  [_t, _ev],
229
294
  [0, () => PlaybackEvent$], 2
230
295
  ];
231
- export var PlayCommandData$ = [3, n1, _PCD,
296
+ export var PlayCommandData$ = [3, n2, _PCD,
232
297
  0,
233
298
  [_rI, _sI, _d, _t],
234
299
  [0, 0, 0, 0], 4
235
300
  ];
236
- export var PlayWebsocketCommand$ = [3, n1, _PWC,
301
+ export var PlayWebsocketCommand$ = [3, n2, _PWC,
237
302
  0,
238
303
  [_t, _co],
239
304
  [0, () => PlayCommandData$], 2
240
305
  ];
241
- export var ReplyEvent$ = [3, n1, _RE,
306
+ export var PreviewSpeechInput$ = [3, n2, _PSI,
307
+ 0,
308
+ [_pr, _vo, _l, _te, _sy, _lS, _pro, _su, _cr],
309
+ [0, 0, 0, 0, () => VoiceSynthesisOptions$, () => VoiceSynthesisOptions$, () => VoicePronunciationList, 64 | 0, 0], 4
310
+ ];
311
+ export var PreviewSpeechOutput$ = [3, n2, _PSO,
242
312
  0,
243
- [_t, _i, _te, _sT, _eT],
244
- [0, 0, 0, 1, 1], 5
313
+ [_au],
314
+ [[21, 16]], 1
245
315
  ];
246
- export var ReplyWebsocketEvent$ = [3, n1, _RWE,
316
+ export var ReplyEvent$ = [3, n2, _RE,
317
+ 0,
318
+ [_t, _i, _te, _sT, _eT, _l],
319
+ [0, 0, 0, 1, 1, 0], 5
320
+ ];
321
+ export var ReplyWebsocketEvent$ = [3, n2, _RWE,
247
322
  0,
248
323
  [_t, _ev],
249
324
  [0, () => ReplyEvent$], 2
250
325
  ];
251
- export var SayCommandAudioOptions$ = [3, n1, _SCAO,
326
+ export var SayCommandAudioOptions$ = [3, n2, _SCAO,
252
327
  0,
253
328
  [_sI, _sR],
254
329
  [0, 1], 2
255
330
  ];
256
- export var SayCommandData$ = [3, n1, _SCD,
331
+ export var SayCommandData$ = [3, n2, _SCD,
257
332
  0,
258
- [_te, _rI, _t, _in, _au],
259
- [0, 0, 0, 2, () => SayCommandAudioOptions$], 3
333
+ [_te, _rI, _t, _in, _vo, _au],
334
+ [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
260
335
  ];
261
- export var SayWebsocketCommand$ = [3, n1, _SWC,
336
+ export var SayWebsocketCommand$ = [3, n2, _SWC,
262
337
  0,
263
338
  [_t, _co],
264
339
  [0, () => SayCommandData$], 2
265
340
  ];
266
- export var SendHangupInput$ = [3, n1, _SHI,
341
+ export var SendHangupInput$ = [3, n2, _SHI,
267
342
  0,
268
343
  [_sIe, _r],
269
344
  [[0, 1], 0], 1
270
345
  ];
271
- export var SendHangupOutput$ = [3, n1, _SHO,
346
+ export var SendHangupOutput$ = [3, n2, _SHO,
272
347
  0,
273
348
  [],
274
349
  []
275
350
  ];
276
- export var SendPlayInput$ = [3, n1, _SPI,
351
+ export var SendPlayInput$ = [3, n2, _SPI,
277
352
  0,
278
353
  [_rI, _sI, _d, _sIe],
279
354
  [0, 0, 0, [0, 1]], 4
280
355
  ];
281
- export var SendPlayOutput$ = [3, n1, _SPO,
356
+ export var SendPlayOutput$ = [3, n2, _SPO,
282
357
  0,
283
358
  [],
284
359
  []
285
360
  ];
286
- export var SendSayInput$ = [3, n1, _SSI,
361
+ export var SendSayInput$ = [3, n2, _SSI,
287
362
  0,
288
- [_te, _rI, _sIe, _in, _au],
289
- [0, 0, [0, 1], 2, () => SayCommandAudioOptions$], 3
363
+ [_te, _rI, _sIe, _in, _vo, _au],
364
+ [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
290
365
  ];
291
- export var SendSayOutput$ = [3, n1, _SSO,
366
+ export var SendSayOutput$ = [3, n2, _SSO,
292
367
  0,
293
368
  [],
294
369
  []
295
370
  ];
296
- export var SendStopInput$ = [3, n1, _SSIe,
371
+ export var SendStopInput$ = [3, n2, _SSIe,
297
372
  0,
298
373
  [_sIe],
299
374
  [[0, 1]], 1
300
375
  ];
301
- export var SendStopOutput$ = [3, n1, _SSOe,
376
+ export var SendStopOutput$ = [3, n2, _SSOe,
302
377
  0,
303
378
  [],
304
379
  []
305
380
  ];
306
- export var SendTransferInput$ = [3, n1, _STI,
381
+ export var SendTransferInput$ = [3, n2, _STI,
307
382
  0,
308
383
  [_con, _ex, _sIe],
309
384
  [0, 0, [0, 1]], 3
310
385
  ];
311
- export var SendTransferOutput$ = [3, n1, _STO,
386
+ export var SendTransferOutput$ = [3, n2, _STO,
312
387
  0,
313
388
  [],
314
389
  []
315
390
  ];
316
- export var SessionEndedEvent$ = [3, n1, _SEE,
391
+ export var SessionEndedEvent$ = [3, n2, _SEE,
317
392
  0,
318
393
  [_t, _ti, _r, _e],
319
394
  [0, 1, 0, 0], 2
320
395
  ];
321
- export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
396
+ export var SessionEndedWebsocketEvent$ = [3, n2, _SEWE,
322
397
  0,
323
398
  [_t, _ev],
324
399
  [0, () => SessionEndedEvent$], 2
325
400
  ];
326
- export var SessionStartedEvent$ = [3, n1, _SSE,
401
+ export var SessionStartedEvent$ = [3, n2, _SSE,
327
402
  0,
328
- [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _iA, _oA],
329
- [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
403
+ [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _spe, _bS, _iA, _oA],
404
+ [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
330
405
  ];
331
- export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
406
+ export var SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
332
407
  0,
333
408
  [_t, _ev],
334
409
  [0, () => SessionStartedEvent$], 2
335
410
  ];
336
- export var StopCommandData$ = [3, n1, _SCDt,
411
+ export var SpeechVoice$ = [3, n2, _SV,
412
+ 0,
413
+ [_i, _n, _la, _g, _acc, _ca, _pU, _mod],
414
+ [0, 0, 64 | 0, 0, 0, 0, 0, 64 | 0], 2
415
+ ];
416
+ export var StopCommandData$ = [3, n2, _SCDt,
337
417
  0,
338
418
  [_t],
339
419
  [0], 1
340
420
  ];
341
- export var StopWebsocketCommand$ = [3, n1, _SWCt,
421
+ export var StopWebsocketCommand$ = [3, n2, _SWCt,
342
422
  0,
343
423
  [_t, _co],
344
424
  [0, () => StopCommandData$], 2
345
425
  ];
346
- export var TranscriptionEvent$ = [3, n1, _TE,
426
+ export var TranscriptionEvent$ = [3, n2, _TE,
347
427
  0,
348
- [_t, _i, _te, _ti, _conf, _f],
349
- [0, 0, 0, 1, 1, 2], 4
428
+ [_t, _i, _te, _ti, _conf, _f, _l],
429
+ [0, 0, 0, 1, 1, 2, 0], 4
350
430
  ];
351
- export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
431
+ export var TranscriptionWebsocketEvent$ = [3, n2, _TWE,
352
432
  0,
353
433
  [_t, _ev],
354
434
  [0, () => TranscriptionEvent$], 2
355
435
  ];
356
- export var TransferCommandData$ = [3, n1, _TCD,
436
+ export var TransferCommandData$ = [3, n2, _TCD,
357
437
  0,
358
438
  [_con, _ex, _t],
359
439
  [0, 0, 0], 3
360
440
  ];
361
- export var TransferWebsocketCommand$ = [3, n1, _TWC,
441
+ export var TransferWebsocketCommand$ = [3, n2, _TWC,
362
442
  0,
363
443
  [_t, _co],
364
444
  [0, () => TransferCommandData$], 2
365
445
  ];
366
- export var VoiceAudioFormat$ = [3, n1, _VAF,
446
+ export var VoiceAudioFormat$ = [3, n2, _VAF,
367
447
  0,
368
448
  [_en, _sR, _ch],
369
449
  [0, 1, 1], 2
370
450
  ];
371
- export var VoiceConnectParams$ = [3, n1, _VCP,
451
+ export var VoiceConnectParams$ = [3, n2, _VCP,
372
452
  0,
373
- [_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _v, _iM, _va, _iMn, _iA, _oA],
453
+ [_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
374
454
  [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
375
455
  ];
376
- export var VoiceErrorEvent$ = [3, n1, _VEE,
456
+ export var VoiceErrorEvent$ = [3, n2, _VEE,
377
457
  0,
378
458
  [_t, _cod, _m, _ti],
379
459
  [0, 0, 0, 1], 4
380
460
  ];
381
- export var DescribeVoiceProtocol$ = [9, n1, _DVP,
461
+ export var VoiceSpeechPayload$ = [3, n2, _VSP,
462
+ 0,
463
+ [_ve, _la, _pL, _aDu],
464
+ [0, 64 | 0, 0, 2], 4
465
+ ];
466
+ var LanguageCodeList = 64 | 0;
467
+ var VoicePronunciationList = [1, n1, _VPL,
468
+ 0, () => VoicePronunciation$
469
+ ];
470
+ var VoicePronunciationSuppressionList = 64 | 0;
471
+ var ProviderLanguageTagList = 64 | 0;
472
+ var SpeechVoiceList = [1, n2, _SVL,
473
+ 0, () => SpeechVoice$
474
+ ];
475
+ var SpeechVoiceModelList = 64 | 0;
476
+ export var DescribeVoiceProtocol$ = [9, n2, _DVP,
382
477
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
383
478
  ];
384
- export var SendHangup$ = [9, n1, _SH,
479
+ export var ListSpeechVoices$ = [9, n2, _LSV,
480
+ { [_h]: ["GET", "/v2/voice/speech-voices", 200] }, () => ListSpeechVoicesInput$, () => ListSpeechVoicesOutput$
481
+ ];
482
+ export var PreviewSpeech$ = [9, n2, _PS,
483
+ { [_h]: ["POST", "/v2/voice/speech-preview", 200] }, () => PreviewSpeechInput$, () => PreviewSpeechOutput$
484
+ ];
485
+ export var SendHangup$ = [9, n2, _SH,
385
486
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
386
487
  ];
387
- export var SendPlay$ = [9, n1, _SP,
488
+ export var SendPlay$ = [9, n2, _SP,
388
489
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
389
490
  ];
390
- export var SendSay$ = [9, n1, _SS,
491
+ export var SendSay$ = [9, n2, _SS,
391
492
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
392
493
  ];
393
- export var SendStop$ = [9, n1, _SSe,
494
+ export var SendStop$ = [9, n2, _SSe,
394
495
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
395
496
  ];
396
- export var SendTransfer$ = [9, n1, _ST,
497
+ export var SendTransfer$ = [9, n2, _ST,
397
498
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
398
499
  ];
@@ -1,5 +1,7 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { type DescribeVoiceProtocolCommandInput, type DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
3
+ import { type ListSpeechVoicesCommandInput, type ListSpeechVoicesCommandOutput } from "./commands/ListSpeechVoicesCommand";
4
+ import { type PreviewSpeechCommandInput, type PreviewSpeechCommandOutput } from "./commands/PreviewSpeechCommand";
3
5
  import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
4
6
  import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
5
7
  import { type SendSayCommandInput, type SendSayCommandOutput } from "./commands/SendSayCommand";
@@ -14,6 +16,18 @@ export interface WilmaVoice {
14
16
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVoiceProtocolCommandOutput>;
15
17
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
16
18
  describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
19
+ /**
20
+ * @see {@link ListSpeechVoicesCommand}
21
+ */
22
+ listSpeechVoices(args: ListSpeechVoicesCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeechVoicesCommandOutput>;
23
+ listSpeechVoices(args: ListSpeechVoicesCommandInput, cb: (err: any, data?: ListSpeechVoicesCommandOutput) => void): void;
24
+ listSpeechVoices(args: ListSpeechVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeechVoicesCommandOutput) => void): void;
25
+ /**
26
+ * @see {@link PreviewSpeechCommand}
27
+ */
28
+ previewSpeech(args: PreviewSpeechCommandInput, options?: __HttpHandlerOptions): Promise<PreviewSpeechCommandOutput>;
29
+ previewSpeech(args: PreviewSpeechCommandInput, cb: (err: any, data?: PreviewSpeechCommandOutput) => void): void;
30
+ previewSpeech(args: PreviewSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PreviewSpeechCommandOutput) => void): void;
17
31
  /**
18
32
  * @see {@link SendHangupCommand}
19
33
  */
@@ -6,6 +6,8 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
6
6
  import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
7
7
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
8
8
  import type { DescribeVoiceProtocolCommandInput, DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
9
+ import type { ListSpeechVoicesCommandInput, ListSpeechVoicesCommandOutput } from "./commands/ListSpeechVoicesCommand";
10
+ import type { PreviewSpeechCommandInput, PreviewSpeechCommandOutput } from "./commands/PreviewSpeechCommand";
9
11
  import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
10
12
  import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
11
13
  import type { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
@@ -17,11 +19,11 @@ export { __Client };
17
19
  /**
18
20
  * @public
19
21
  */
20
- export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput;
22
+ export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListSpeechVoicesCommandInput | PreviewSpeechCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput;
21
23
  /**
22
24
  * @public
23
25
  */
24
- export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput;
26
+ export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListSpeechVoicesCommandOutput | PreviewSpeechCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput;
25
27
  /**
26
28
  * @public
27
29
  */
@@ -83,6 +83,7 @@ declare const DescribeVoiceProtocolCommand_base: {
83
83
  * // text: "STRING_VALUE", // required
84
84
  * // confidence: Number("double"),
85
85
  * // final: true || false,
86
+ * // language: "STRING_VALUE",
86
87
  * // time: Number("long"), // required
87
88
  * // },
88
89
  * // },
@@ -92,6 +93,7 @@ declare const DescribeVoiceProtocolCommand_base: {
92
93
  * // type: "started" || "ended" || "error" || "audio" || "transcription" || "reply" || "playback" || "interruption" || "complete" || "control", // required
93
94
  * // id: "STRING_VALUE", // required
94
95
  * // text: "STRING_VALUE", // required
96
+ * // language: "STRING_VALUE",
95
97
  * // startTime: Number("long"), // required
96
98
  * // endTime: Number("long"), // required
97
99
  * // },
@@ -144,6 +146,15 @@ declare const DescribeVoiceProtocolCommand_base: {
144
146
  * // agentName: "STRING_VALUE",
145
147
  * // category: "STRING_VALUE",
146
148
  * // groupId: "STRING_VALUE",
149
+ * // speech: { // VoiceSpeechPayload
150
+ * // vendor: "aws", // required
151
+ * // languages: [ // LanguageCodeList // required
152
+ * // "STRING_VALUE",
153
+ * // ],
154
+ * // preferredLanguage: "STRING_VALUE", // required
155
+ * // autoDetect: true || false, // required
156
+ * // },
157
+ * // backgroundSound: "STRING_VALUE",
147
158
  * // inputAudio: {
148
159
  * // encoding: "pcm_s16le" || "mulaw" || "alaw" || "opus", // required
149
160
  * // sampleRate: Number("int"), // required
@@ -180,6 +191,7 @@ declare const DescribeVoiceProtocolCommand_base: {
180
191
  * // text: "STRING_VALUE", // required
181
192
  * // replyId: "STRING_VALUE", // required
182
193
  * // interruptible: true || false,
194
+ * // voice: "STRING_VALUE",
183
195
  * // audio: { // SayCommandAudioOptions
184
196
  * // streamId: "STRING_VALUE", // required
185
197
  * // sampleRate: Number("int"), // required