@wildix/wilma-voice-client 0.0.26 → 0.0.27
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.
- package/dist-cjs/WilmaVoice.js +4 -4
- package/dist-cjs/commands/{PreviewSpeechCommand.js → ListVoicesCommand.js} +6 -6
- package/dist-cjs/commands/{ListSpeechVoicesCommand.js → TextToSpeechCommand.js} +6 -6
- package/dist-cjs/commands/index.js +2 -2
- package/dist-cjs/models/enums.js +1 -9
- package/dist-cjs/schemas/schemas_0.js +101 -123
- package/dist-es/WilmaVoice.js +4 -4
- package/dist-es/commands/{PreviewSpeechCommand.js → ListVoicesCommand.js} +5 -5
- package/dist-es/commands/{ListSpeechVoicesCommand.js → TextToSpeechCommand.js} +5 -5
- package/dist-es/commands/index.js +2 -2
- package/dist-es/models/enums.js +0 -8
- package/dist-es/schemas/schemas_0.js +99 -121
- package/dist-types/WilmaVoice.d.ts +12 -12
- package/dist-types/WilmaVoiceClient.d.ts +4 -4
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +1 -1
- package/dist-types/commands/ListVoicesCommand.d.ts +87 -0
- package/dist-types/commands/TextToSpeechCommand.d.ts +103 -0
- package/dist-types/commands/index.d.ts +2 -2
- package/dist-types/models/enums.d.ts +0 -24
- package/dist-types/models/models_0.d.ts +85 -165
- package/dist-types/schemas/schemas_0.d.ts +7 -8
- package/package.json +1 -1
- package/dist-types/commands/ListSpeechVoicesCommand.d.ts +0 -101
- package/dist-types/commands/PreviewSpeechCommand.d.ts +0 -119
package/dist-es/WilmaVoice.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { DescribeVoiceProtocolCommand, } from "./commands/DescribeVoiceProtocolCommand";
|
|
3
|
-
import {
|
|
4
|
-
import { PreviewSpeechCommand, } from "./commands/PreviewSpeechCommand";
|
|
3
|
+
import { ListVoicesCommand, } from "./commands/ListVoicesCommand";
|
|
5
4
|
import { SendHangupCommand, } from "./commands/SendHangupCommand";
|
|
6
5
|
import { SendPlayCommand } from "./commands/SendPlayCommand";
|
|
7
6
|
import { SendSayCommand } from "./commands/SendSayCommand";
|
|
8
7
|
import { SendStopCommand } from "./commands/SendStopCommand";
|
|
9
8
|
import { SendTransferCommand, } from "./commands/SendTransferCommand";
|
|
9
|
+
import { TextToSpeechCommand, } from "./commands/TextToSpeechCommand";
|
|
10
10
|
import { WilmaVoiceClient } from "./WilmaVoiceClient";
|
|
11
11
|
const commands = {
|
|
12
12
|
DescribeVoiceProtocolCommand,
|
|
13
|
-
|
|
14
|
-
PreviewSpeechCommand,
|
|
13
|
+
ListVoicesCommand,
|
|
15
14
|
SendHangupCommand,
|
|
16
15
|
SendPlayCommand,
|
|
17
16
|
SendSayCommand,
|
|
18
17
|
SendStopCommand,
|
|
19
18
|
SendTransferCommand,
|
|
19
|
+
TextToSpeechCommand,
|
|
20
20
|
};
|
|
21
21
|
export class WilmaVoice extends WilmaVoiceClient {
|
|
22
22
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { ListVoices$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class ListVoicesCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaVoice", "
|
|
13
|
-
.n("WilmaVoiceClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaVoice", "ListVoices", {})
|
|
13
|
+
.n("WilmaVoiceClient", "ListVoicesCommand")
|
|
14
|
+
.sc(ListVoices$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { TextToSpeech$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class TextToSpeechCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaVoice", "
|
|
13
|
-
.n("WilmaVoiceClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaVoice", "TextToSpeech", {})
|
|
13
|
+
.n("WilmaVoiceClient", "TextToSpeechCommand")
|
|
14
|
+
.sc(TextToSpeech$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./DescribeVoiceProtocolCommand";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./PreviewSpeechCommand";
|
|
2
|
+
export * from "./ListVoicesCommand";
|
|
4
3
|
export * from "./SendHangupCommand";
|
|
5
4
|
export * from "./SendPlayCommand";
|
|
6
5
|
export * from "./SendSayCommand";
|
|
7
6
|
export * from "./SendStopCommand";
|
|
8
7
|
export * from "./SendTransferCommand";
|
|
8
|
+
export * from "./TextToSpeechCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -2,14 +2,6 @@ export const VoicePronunciationEncoding = {
|
|
|
2
2
|
ALIAS: "alias",
|
|
3
3
|
IPA: "ipa",
|
|
4
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
|
-
};
|
|
13
5
|
export const VoiceEventType = {
|
|
14
6
|
AUDIO: "audio",
|
|
15
7
|
COMPLETE: "complete",
|
|
@@ -13,19 +13,17 @@ const _HCD = "HangupCommandData";
|
|
|
13
13
|
const _HWC = "HangupWebsocketCommand";
|
|
14
14
|
const _IE = "InterruptionEvent";
|
|
15
15
|
const _IWE = "InterruptionWebsocketEvent";
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
16
|
+
const _LV = "ListVoices";
|
|
17
|
+
const _LVI = "ListVoicesInput";
|
|
18
|
+
const _LVO = "ListVoicesOutput";
|
|
19
19
|
const _NFE = "NotFoundException";
|
|
20
20
|
const _PCD = "PlayCommandData";
|
|
21
21
|
const _PE = "PlaybackEvent";
|
|
22
|
-
const _PS = "PreviewSpeech";
|
|
23
|
-
const _PSI = "PreviewSpeechInput";
|
|
24
|
-
const _PSO = "PreviewSpeechOutput";
|
|
25
22
|
const _PWC = "PlayWebsocketCommand";
|
|
26
23
|
const _PWE = "PlaybackWebsocketEvent";
|
|
27
24
|
const _RE = "ReplyEvent";
|
|
28
25
|
const _RWE = "ReplyWebsocketEvent";
|
|
26
|
+
const _SC = "SpeechCredential";
|
|
29
27
|
const _SCAO = "SayCommandAudioOptions";
|
|
30
28
|
const _SCD = "SayCommandData";
|
|
31
29
|
const _SCDt = "StopCommandData";
|
|
@@ -48,21 +46,23 @@ const _SSe = "SendStop";
|
|
|
48
46
|
const _ST = "SendTransfer";
|
|
49
47
|
const _STI = "SendTransferInput";
|
|
50
48
|
const _STO = "SendTransferOutput";
|
|
51
|
-
const _SV = "SpeechVoice";
|
|
52
|
-
const _SVL = "SpeechVoiceList";
|
|
53
49
|
const _SWC = "SayWebsocketCommand";
|
|
54
50
|
const _SWCt = "StopWebsocketCommand";
|
|
55
51
|
const _TCD = "TransferCommandData";
|
|
56
52
|
const _TE = "TranscriptionEvent";
|
|
53
|
+
const _TTS = "TextToSpeech";
|
|
54
|
+
const _TTSI = "TextToSpeechInput";
|
|
55
|
+
const _TTSO = "TextToSpeechOutput";
|
|
57
56
|
const _TWC = "TransferWebsocketCommand";
|
|
58
57
|
const _TWE = "TranscriptionWebsocketEvent";
|
|
58
|
+
const _V = "Voice";
|
|
59
59
|
const _VAF = "VoiceAudioFormat";
|
|
60
60
|
const _VCP = "VoiceConnectParams";
|
|
61
61
|
const _VE = "ValidationException";
|
|
62
62
|
const _VEE = "VoiceErrorEvent";
|
|
63
|
+
const _VL = "VoiceList";
|
|
63
64
|
const _VP = "VoicePronunciation";
|
|
64
65
|
const _VPL = "VoicePronunciationList";
|
|
65
|
-
const _VSO = "VoiceSynthesisOptions";
|
|
66
66
|
const _VSP = "VoiceSpeechPayload";
|
|
67
67
|
const _a = "as";
|
|
68
68
|
const _aD = "agentDraft";
|
|
@@ -72,7 +72,6 @@ const _aN = "agentName";
|
|
|
72
72
|
const _aV = "agentVersion";
|
|
73
73
|
const _aWE = "audioWebsocketEvent";
|
|
74
74
|
const _ac = "action";
|
|
75
|
-
const _acc = "accent";
|
|
76
75
|
const _au = "audio";
|
|
77
76
|
const _bS = "backgroundSound";
|
|
78
77
|
const _c = "client";
|
|
@@ -97,10 +96,10 @@ const _e = "error";
|
|
|
97
96
|
const _eT = "endTime";
|
|
98
97
|
const _eWE = "errorWebsocketEvent";
|
|
99
98
|
const _en = "encoding";
|
|
99
|
+
const _eng = "engine";
|
|
100
100
|
const _ev = "event";
|
|
101
101
|
const _ex = "extension";
|
|
102
102
|
const _f = "final";
|
|
103
|
-
const _g = "gender";
|
|
104
103
|
const _gI = "groupId";
|
|
105
104
|
const _h = "http";
|
|
106
105
|
const _hE = "httpError";
|
|
@@ -113,30 +112,24 @@ const _iMn = "inputMode";
|
|
|
113
112
|
const _iWE = "interruptionWebsocketEvent";
|
|
114
113
|
const _in = "interruptible";
|
|
115
114
|
const _l = "language";
|
|
116
|
-
const _lS = "languageSynthesis";
|
|
117
115
|
const _la = "languages";
|
|
118
116
|
const _m = "message";
|
|
119
|
-
const _mo = "model";
|
|
120
|
-
const _mod = "models";
|
|
121
117
|
const _n = "name";
|
|
118
|
+
const _o = "options";
|
|
122
119
|
const _oA = "outputAudio";
|
|
123
120
|
const _oT = "originalText";
|
|
124
121
|
const _p = "phrase";
|
|
125
122
|
const _pL = "preferredLanguage";
|
|
126
123
|
const _pT = "playedText";
|
|
127
|
-
const _pU = "previewUrl";
|
|
128
124
|
const _pV = "protocolVersion";
|
|
129
125
|
const _pWC = "playWebsocketCommand";
|
|
130
126
|
const _pWE = "playbackWebsocketEvent";
|
|
131
|
-
const _pi = "pitch";
|
|
132
127
|
const _pr = "provider";
|
|
133
128
|
const _pro = "pronunciations";
|
|
134
129
|
const _r = "reason";
|
|
135
|
-
const _rA = "refreshedAt";
|
|
136
130
|
const _rI = "replyId";
|
|
137
131
|
const _rWE = "replyWebsocketEvent";
|
|
138
132
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
|
|
139
|
-
const _sB = "speakerBoost";
|
|
140
133
|
const _sEWE = "sessionEndedWebsocketEvent";
|
|
141
134
|
const _sI = "streamId";
|
|
142
135
|
const _sIe = "sessionId";
|
|
@@ -147,28 +140,20 @@ const _sWC = "sayWebsocketCommand";
|
|
|
147
140
|
const _sWCt = "stopWebsocketCommand";
|
|
148
141
|
const _se = "seq";
|
|
149
142
|
const _sea = "search";
|
|
150
|
-
const
|
|
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";
|
|
143
|
+
const _sp = "speech";
|
|
158
144
|
const _t = "type";
|
|
159
145
|
const _tI = "traceId";
|
|
160
146
|
const _tWC = "transferWebsocketCommand";
|
|
161
147
|
const _tWE = "transcriptionWebsocketEvent";
|
|
162
148
|
const _te = "text";
|
|
163
149
|
const _ti = "time";
|
|
150
|
+
const _u = "uri";
|
|
164
151
|
const _v = "voices";
|
|
165
|
-
const _vG = "volumeGain";
|
|
166
152
|
const _va = "variables";
|
|
167
|
-
const _ve = "vendor";
|
|
168
153
|
const _vo = "voice";
|
|
169
154
|
const n0 = "smithy.framework";
|
|
170
|
-
const n1 = "wildix.wilma.
|
|
171
|
-
const n2 = "wildix.wilma.
|
|
155
|
+
const n1 = "wildix.wilma.voice";
|
|
156
|
+
const n2 = "wildix.wilma.agents";
|
|
172
157
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
173
158
|
import { ForbiddenException, NotFoundException, ValidationException } from "../models/errors";
|
|
174
159
|
import { WilmaVoiceServiceException } from "../models/WilmaVoiceServiceException";
|
|
@@ -198,302 +183,295 @@ export const errorTypeRegistries = [
|
|
|
198
183
|
_s_registry,
|
|
199
184
|
n0_registry,
|
|
200
185
|
];
|
|
201
|
-
|
|
186
|
+
var SpeechCredential = [0, n1, _SC, 8, 0];
|
|
187
|
+
export var VoicePronunciation$ = [3, n2, _VP,
|
|
202
188
|
0,
|
|
203
189
|
[_p, _a, _en],
|
|
204
190
|
[0, 0, 0], 2
|
|
205
191
|
];
|
|
206
|
-
export var
|
|
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,
|
|
192
|
+
export var AudioEvent$ = [3, n1, _AE,
|
|
212
193
|
0,
|
|
213
194
|
[_t, _d, _se],
|
|
214
195
|
[0, 0, 1], 2
|
|
215
196
|
];
|
|
216
|
-
export var AudioWebsocketEvent$ = [3,
|
|
197
|
+
export var AudioWebsocketEvent$ = [3, n1, _AWE,
|
|
217
198
|
0,
|
|
218
199
|
[_t, _ev],
|
|
219
200
|
[0, () => AudioEvent$], 2
|
|
220
201
|
];
|
|
221
|
-
export var CompleteEvent$ = [3,
|
|
202
|
+
export var CompleteEvent$ = [3, n1, _CE,
|
|
222
203
|
0,
|
|
223
204
|
[_t, _r, _ti],
|
|
224
205
|
[0, 0, 1], 3
|
|
225
206
|
];
|
|
226
|
-
export var CompleteWebsocketEvent$ = [3,
|
|
207
|
+
export var CompleteWebsocketEvent$ = [3, n1, _CWE,
|
|
227
208
|
0,
|
|
228
209
|
[_t, _ev],
|
|
229
210
|
[0, () => CompleteEvent$], 2
|
|
230
211
|
];
|
|
231
|
-
export var ControlEvent$ = [3,
|
|
212
|
+
export var ControlEvent$ = [3, n1, _CEo,
|
|
232
213
|
0,
|
|
233
214
|
[_t, _ac],
|
|
234
215
|
[0, 0], 2
|
|
235
216
|
];
|
|
236
|
-
export var ControlWebsocketEvent$ = [3,
|
|
217
|
+
export var ControlWebsocketEvent$ = [3, n1, _CWEo,
|
|
237
218
|
0,
|
|
238
219
|
[_t, _ev],
|
|
239
220
|
[0, () => ControlEvent$], 2
|
|
240
221
|
];
|
|
241
|
-
export var DescribeVoiceProtocolInput$ = [3,
|
|
222
|
+
export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
|
|
242
223
|
0,
|
|
243
224
|
[],
|
|
244
225
|
[]
|
|
245
226
|
];
|
|
246
|
-
export var DescribeVoiceProtocolOutput$ = [3,
|
|
227
|
+
export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
|
|
247
228
|
0,
|
|
248
229
|
[_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
|
|
249
230
|
[() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$]
|
|
250
231
|
];
|
|
251
|
-
export var ErrorWebsocketEvent$ = [3,
|
|
232
|
+
export var ErrorWebsocketEvent$ = [3, n1, _EWE,
|
|
252
233
|
0,
|
|
253
234
|
[_t, _ev],
|
|
254
235
|
[0, () => VoiceErrorEvent$], 2
|
|
255
236
|
];
|
|
256
|
-
export var HangupCommandData$ = [3,
|
|
237
|
+
export var HangupCommandData$ = [3, n1, _HCD,
|
|
257
238
|
0,
|
|
258
239
|
[_t, _r],
|
|
259
240
|
[0, 0], 1
|
|
260
241
|
];
|
|
261
|
-
export var HangupWebsocketCommand$ = [3,
|
|
242
|
+
export var HangupWebsocketCommand$ = [3, n1, _HWC,
|
|
262
243
|
0,
|
|
263
244
|
[_t, _co],
|
|
264
245
|
[0, () => HangupCommandData$], 2
|
|
265
246
|
];
|
|
266
|
-
export var InterruptionEvent$ = [3,
|
|
247
|
+
export var InterruptionEvent$ = [3, n1, _IE,
|
|
267
248
|
0,
|
|
268
249
|
[_t, _rI, _pT, _oT, _ti],
|
|
269
250
|
[0, 0, 0, 0, 1], 5
|
|
270
251
|
];
|
|
271
|
-
export var InterruptionWebsocketEvent$ = [3,
|
|
252
|
+
export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
272
253
|
0,
|
|
273
254
|
[_t, _ev],
|
|
274
255
|
[0, () => InterruptionEvent$], 2
|
|
275
256
|
];
|
|
276
|
-
export var
|
|
257
|
+
export var ListVoicesInput$ = [3, n1, _LVI,
|
|
277
258
|
0,
|
|
278
259
|
[_pr, _l, _sea, _cr],
|
|
279
|
-
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [
|
|
260
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [() => SpeechCredential, { [_hQ]: _cr }]], 1
|
|
280
261
|
];
|
|
281
|
-
export var
|
|
262
|
+
export var ListVoicesOutput$ = [3, n1, _LVO,
|
|
282
263
|
0,
|
|
283
|
-
[_v
|
|
284
|
-
[() =>
|
|
264
|
+
[_v],
|
|
265
|
+
[() => VoiceList], 1
|
|
285
266
|
];
|
|
286
|
-
export var PlaybackEvent$ = [3,
|
|
267
|
+
export var PlaybackEvent$ = [3, n1, _PE,
|
|
287
268
|
0,
|
|
288
269
|
[_t, _rI, _te, _com, _sT, _eT],
|
|
289
270
|
[0, 0, 0, 2, 1, 1], 5
|
|
290
271
|
];
|
|
291
|
-
export var PlaybackWebsocketEvent$ = [3,
|
|
272
|
+
export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
|
|
292
273
|
0,
|
|
293
274
|
[_t, _ev],
|
|
294
275
|
[0, () => PlaybackEvent$], 2
|
|
295
276
|
];
|
|
296
|
-
export var PlayCommandData$ = [3,
|
|
277
|
+
export var PlayCommandData$ = [3, n1, _PCD,
|
|
297
278
|
0,
|
|
298
279
|
[_rI, _sI, _d, _t],
|
|
299
280
|
[0, 0, 0, 0], 4
|
|
300
281
|
];
|
|
301
|
-
export var PlayWebsocketCommand$ = [3,
|
|
282
|
+
export var PlayWebsocketCommand$ = [3, n1, _PWC,
|
|
302
283
|
0,
|
|
303
284
|
[_t, _co],
|
|
304
285
|
[0, () => PlayCommandData$], 2
|
|
305
286
|
];
|
|
306
|
-
export var
|
|
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,
|
|
312
|
-
0,
|
|
313
|
-
[_au],
|
|
314
|
-
[[21, 16]], 1
|
|
315
|
-
];
|
|
316
|
-
export var ReplyEvent$ = [3, n2, _RE,
|
|
287
|
+
export var ReplyEvent$ = [3, n1, _RE,
|
|
317
288
|
0,
|
|
318
289
|
[_t, _i, _te, _sT, _eT, _l],
|
|
319
290
|
[0, 0, 0, 1, 1, 0], 5
|
|
320
291
|
];
|
|
321
|
-
export var ReplyWebsocketEvent$ = [3,
|
|
292
|
+
export var ReplyWebsocketEvent$ = [3, n1, _RWE,
|
|
322
293
|
0,
|
|
323
294
|
[_t, _ev],
|
|
324
295
|
[0, () => ReplyEvent$], 2
|
|
325
296
|
];
|
|
326
|
-
export var SayCommandAudioOptions$ = [3,
|
|
297
|
+
export var SayCommandAudioOptions$ = [3, n1, _SCAO,
|
|
327
298
|
0,
|
|
328
299
|
[_sI, _sR],
|
|
329
300
|
[0, 1], 2
|
|
330
301
|
];
|
|
331
|
-
export var SayCommandData$ = [3,
|
|
302
|
+
export var SayCommandData$ = [3, n1, _SCD,
|
|
332
303
|
0,
|
|
333
304
|
[_te, _rI, _t, _in, _vo, _au],
|
|
334
305
|
[0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
|
|
335
306
|
];
|
|
336
|
-
export var SayWebsocketCommand$ = [3,
|
|
307
|
+
export var SayWebsocketCommand$ = [3, n1, _SWC,
|
|
337
308
|
0,
|
|
338
309
|
[_t, _co],
|
|
339
310
|
[0, () => SayCommandData$], 2
|
|
340
311
|
];
|
|
341
|
-
export var SendHangupInput$ = [3,
|
|
312
|
+
export var SendHangupInput$ = [3, n1, _SHI,
|
|
342
313
|
0,
|
|
343
314
|
[_sIe, _r],
|
|
344
315
|
[[0, 1], 0], 1
|
|
345
316
|
];
|
|
346
|
-
export var SendHangupOutput$ = [3,
|
|
317
|
+
export var SendHangupOutput$ = [3, n1, _SHO,
|
|
347
318
|
0,
|
|
348
319
|
[],
|
|
349
320
|
[]
|
|
350
321
|
];
|
|
351
|
-
export var SendPlayInput$ = [3,
|
|
322
|
+
export var SendPlayInput$ = [3, n1, _SPI,
|
|
352
323
|
0,
|
|
353
324
|
[_rI, _sI, _d, _sIe],
|
|
354
325
|
[0, 0, 0, [0, 1]], 4
|
|
355
326
|
];
|
|
356
|
-
export var SendPlayOutput$ = [3,
|
|
327
|
+
export var SendPlayOutput$ = [3, n1, _SPO,
|
|
357
328
|
0,
|
|
358
329
|
[],
|
|
359
330
|
[]
|
|
360
331
|
];
|
|
361
|
-
export var SendSayInput$ = [3,
|
|
332
|
+
export var SendSayInput$ = [3, n1, _SSI,
|
|
362
333
|
0,
|
|
363
334
|
[_te, _rI, _sIe, _in, _vo, _au],
|
|
364
335
|
[0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
|
|
365
336
|
];
|
|
366
|
-
export var SendSayOutput$ = [3,
|
|
337
|
+
export var SendSayOutput$ = [3, n1, _SSO,
|
|
367
338
|
0,
|
|
368
339
|
[],
|
|
369
340
|
[]
|
|
370
341
|
];
|
|
371
|
-
export var SendStopInput$ = [3,
|
|
342
|
+
export var SendStopInput$ = [3, n1, _SSIe,
|
|
372
343
|
0,
|
|
373
344
|
[_sIe],
|
|
374
345
|
[[0, 1]], 1
|
|
375
346
|
];
|
|
376
|
-
export var SendStopOutput$ = [3,
|
|
347
|
+
export var SendStopOutput$ = [3, n1, _SSOe,
|
|
377
348
|
0,
|
|
378
349
|
[],
|
|
379
350
|
[]
|
|
380
351
|
];
|
|
381
|
-
export var SendTransferInput$ = [3,
|
|
352
|
+
export var SendTransferInput$ = [3, n1, _STI,
|
|
382
353
|
0,
|
|
383
354
|
[_con, _ex, _sIe],
|
|
384
355
|
[0, 0, [0, 1]], 3
|
|
385
356
|
];
|
|
386
|
-
export var SendTransferOutput$ = [3,
|
|
357
|
+
export var SendTransferOutput$ = [3, n1, _STO,
|
|
387
358
|
0,
|
|
388
359
|
[],
|
|
389
360
|
[]
|
|
390
361
|
];
|
|
391
|
-
export var SessionEndedEvent$ = [3,
|
|
362
|
+
export var SessionEndedEvent$ = [3, n1, _SEE,
|
|
392
363
|
0,
|
|
393
364
|
[_t, _ti, _r, _e],
|
|
394
365
|
[0, 1, 0, 0], 2
|
|
395
366
|
];
|
|
396
|
-
export var SessionEndedWebsocketEvent$ = [3,
|
|
367
|
+
export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
|
|
397
368
|
0,
|
|
398
369
|
[_t, _ev],
|
|
399
370
|
[0, () => SessionEndedEvent$], 2
|
|
400
371
|
];
|
|
401
|
-
export var SessionStartedEvent$ = [3,
|
|
372
|
+
export var SessionStartedEvent$ = [3, n1, _SSE,
|
|
402
373
|
0,
|
|
403
|
-
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI,
|
|
374
|
+
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
|
|
404
375
|
[0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
|
|
405
376
|
];
|
|
406
|
-
export var SessionStartedWebsocketEvent$ = [3,
|
|
377
|
+
export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
|
|
407
378
|
0,
|
|
408
379
|
[_t, _ev],
|
|
409
380
|
[0, () => SessionStartedEvent$], 2
|
|
410
381
|
];
|
|
411
|
-
export var
|
|
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,
|
|
382
|
+
export var StopCommandData$ = [3, n1, _SCDt,
|
|
417
383
|
0,
|
|
418
384
|
[_t],
|
|
419
385
|
[0], 1
|
|
420
386
|
];
|
|
421
|
-
export var StopWebsocketCommand$ = [3,
|
|
387
|
+
export var StopWebsocketCommand$ = [3, n1, _SWCt,
|
|
422
388
|
0,
|
|
423
389
|
[_t, _co],
|
|
424
390
|
[0, () => StopCommandData$], 2
|
|
425
391
|
];
|
|
426
|
-
export var
|
|
392
|
+
export var TextToSpeechInput$ = [3, n1, _TTSI,
|
|
393
|
+
0,
|
|
394
|
+
[_vo, _l, _te, _pro],
|
|
395
|
+
[0, 0, 0, () => VoicePronunciationList], 3
|
|
396
|
+
];
|
|
397
|
+
export var TextToSpeechOutput$ = [3, n1, _TTSO,
|
|
398
|
+
0,
|
|
399
|
+
[_au],
|
|
400
|
+
[[21, 16]], 1
|
|
401
|
+
];
|
|
402
|
+
export var TranscriptionEvent$ = [3, n1, _TE,
|
|
427
403
|
0,
|
|
428
404
|
[_t, _i, _te, _ti, _conf, _f, _l],
|
|
429
405
|
[0, 0, 0, 1, 1, 2, 0], 4
|
|
430
406
|
];
|
|
431
|
-
export var TranscriptionWebsocketEvent$ = [3,
|
|
407
|
+
export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
|
|
432
408
|
0,
|
|
433
409
|
[_t, _ev],
|
|
434
410
|
[0, () => TranscriptionEvent$], 2
|
|
435
411
|
];
|
|
436
|
-
export var TransferCommandData$ = [3,
|
|
412
|
+
export var TransferCommandData$ = [3, n1, _TCD,
|
|
437
413
|
0,
|
|
438
414
|
[_con, _ex, _t],
|
|
439
415
|
[0, 0, 0], 3
|
|
440
416
|
];
|
|
441
|
-
export var TransferWebsocketCommand$ = [3,
|
|
417
|
+
export var TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
442
418
|
0,
|
|
443
419
|
[_t, _co],
|
|
444
420
|
[0, () => TransferCommandData$], 2
|
|
445
421
|
];
|
|
446
|
-
export var
|
|
422
|
+
export var Voice$ = [3, n1, _V,
|
|
423
|
+
0,
|
|
424
|
+
[_u, _n, _o],
|
|
425
|
+
[0, 0, 15], 2
|
|
426
|
+
];
|
|
427
|
+
export var VoiceAudioFormat$ = [3, n1, _VAF,
|
|
447
428
|
0,
|
|
448
429
|
[_en, _sR, _ch],
|
|
449
430
|
[0, 1, 1], 2
|
|
450
431
|
];
|
|
451
|
-
export var VoiceConnectParams$ = [3,
|
|
432
|
+
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
452
433
|
0,
|
|
453
434
|
[_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
454
435
|
[0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
455
436
|
];
|
|
456
|
-
export var VoiceErrorEvent$ = [3,
|
|
437
|
+
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
457
438
|
0,
|
|
458
439
|
[_t, _cod, _m, _ti],
|
|
459
440
|
[0, 0, 0, 1], 4
|
|
460
441
|
];
|
|
461
|
-
export var VoiceSpeechPayload$ = [3,
|
|
442
|
+
export var VoiceSpeechPayload$ = [3, n1, _VSP,
|
|
462
443
|
0,
|
|
463
|
-
[
|
|
444
|
+
[_eng, _la, _pL, _aDu],
|
|
464
445
|
[0, 64 | 0, 0, 2], 4
|
|
465
446
|
];
|
|
466
447
|
var LanguageCodeList = 64 | 0;
|
|
467
|
-
var VoicePronunciationList = [1,
|
|
448
|
+
var VoicePronunciationList = [1, n2, _VPL,
|
|
468
449
|
0, () => VoicePronunciation$
|
|
469
450
|
];
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
var SpeechVoiceList = [1, n2, _SVL,
|
|
473
|
-
0, () => SpeechVoice$
|
|
451
|
+
var VoiceList = [1, n1, _VL,
|
|
452
|
+
0, () => Voice$
|
|
474
453
|
];
|
|
475
|
-
var
|
|
476
|
-
export var DescribeVoiceProtocol$ = [9, n2, _DVP,
|
|
454
|
+
export var DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
477
455
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
|
|
478
456
|
];
|
|
479
|
-
export var
|
|
480
|
-
{ [_h]: ["GET", "/v2/voice/
|
|
457
|
+
export var ListVoices$ = [9, n1, _LV,
|
|
458
|
+
{ [_h]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
|
|
481
459
|
];
|
|
482
|
-
export var
|
|
483
|
-
{ [_h]: ["POST", "/v2/voice/speech-preview", 200] }, () => PreviewSpeechInput$, () => PreviewSpeechOutput$
|
|
484
|
-
];
|
|
485
|
-
export var SendHangup$ = [9, n2, _SH,
|
|
460
|
+
export var SendHangup$ = [9, n1, _SH,
|
|
486
461
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
|
|
487
462
|
];
|
|
488
|
-
export var SendPlay$ = [9,
|
|
463
|
+
export var SendPlay$ = [9, n1, _SP,
|
|
489
464
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
|
|
490
465
|
];
|
|
491
|
-
export var SendSay$ = [9,
|
|
466
|
+
export var SendSay$ = [9, n1, _SS,
|
|
492
467
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
|
|
493
468
|
];
|
|
494
|
-
export var SendStop$ = [9,
|
|
469
|
+
export var SendStop$ = [9, n1, _SSe,
|
|
495
470
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
|
|
496
471
|
];
|
|
497
|
-
export var SendTransfer$ = [9,
|
|
472
|
+
export var SendTransfer$ = [9, n1, _ST,
|
|
498
473
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
|
|
499
474
|
];
|
|
475
|
+
export var TextToSpeech$ = [9, n1, _TTS,
|
|
476
|
+
{ [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
|
|
477
|
+
];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { type DescribeVoiceProtocolCommandInput, type DescribeVoiceProtocolCommandOutput } from "./commands/DescribeVoiceProtocolCommand";
|
|
3
|
-
import { type
|
|
4
|
-
import { type PreviewSpeechCommandInput, type PreviewSpeechCommandOutput } from "./commands/PreviewSpeechCommand";
|
|
3
|
+
import { type ListVoicesCommandInput, type ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
|
|
5
4
|
import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
|
|
6
5
|
import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
|
|
7
6
|
import { type SendSayCommandInput, type SendSayCommandOutput } from "./commands/SendSayCommand";
|
|
8
7
|
import { type SendStopCommandInput, type SendStopCommandOutput } from "./commands/SendStopCommand";
|
|
9
8
|
import { type SendTransferCommandInput, type SendTransferCommandOutput } from "./commands/SendTransferCommand";
|
|
9
|
+
import { type TextToSpeechCommandInput, type TextToSpeechCommandOutput } from "./commands/TextToSpeechCommand";
|
|
10
10
|
import { WilmaVoiceClient } from "./WilmaVoiceClient";
|
|
11
11
|
export interface WilmaVoice {
|
|
12
12
|
/**
|
|
@@ -17,17 +17,11 @@ export interface WilmaVoice {
|
|
|
17
17
|
describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
|
|
18
18
|
describeVoiceProtocol(args: DescribeVoiceProtocolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVoiceProtocolCommandOutput) => void): void;
|
|
19
19
|
/**
|
|
20
|
-
* @see {@link
|
|
20
|
+
* @see {@link ListVoicesCommand}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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;
|
|
22
|
+
listVoices(args: ListVoicesCommandInput, options?: __HttpHandlerOptions): Promise<ListVoicesCommandOutput>;
|
|
23
|
+
listVoices(args: ListVoicesCommandInput, cb: (err: any, data?: ListVoicesCommandOutput) => void): void;
|
|
24
|
+
listVoices(args: ListVoicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVoicesCommandOutput) => void): void;
|
|
31
25
|
/**
|
|
32
26
|
* @see {@link SendHangupCommand}
|
|
33
27
|
*/
|
|
@@ -58,6 +52,12 @@ export interface WilmaVoice {
|
|
|
58
52
|
sendTransfer(args: SendTransferCommandInput, options?: __HttpHandlerOptions): Promise<SendTransferCommandOutput>;
|
|
59
53
|
sendTransfer(args: SendTransferCommandInput, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
|
|
60
54
|
sendTransfer(args: SendTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link TextToSpeechCommand}
|
|
57
|
+
*/
|
|
58
|
+
textToSpeech(args: TextToSpeechCommandInput, options?: __HttpHandlerOptions): Promise<TextToSpeechCommandOutput>;
|
|
59
|
+
textToSpeech(args: TextToSpeechCommandInput, cb: (err: any, data?: TextToSpeechCommandOutput) => void): void;
|
|
60
|
+
textToSpeech(args: TextToSpeechCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TextToSpeechCommandOutput) => void): void;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Voice-session runtime for the Wilma agent platform. Runs a wilma-agents agent on the voice
|