@wildix/wilma-voice-client 0.0.25 → 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 -0
- package/dist-cjs/commands/ListVoicesCommand.js +20 -0
- package/dist-cjs/commands/TextToSpeechCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/enums.js +5 -1
- package/dist-cjs/schemas/schemas_0.js +95 -16
- package/dist-es/WilmaVoice.js +4 -0
- package/dist-es/commands/ListVoicesCommand.js +16 -0
- package/dist-es/commands/TextToSpeechCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +93 -14
- package/dist-types/WilmaVoice.d.ts +14 -0
- package/dist-types/WilmaVoiceClient.d.ts +4 -2
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +12 -0
- package/dist-types/commands/ListVoicesCommand.d.ts +87 -0
- package/dist-types/commands/SendSayCommand.d.ts +1 -0
- package/dist-types/commands/TextToSpeechCommand.d.ts +103 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +205 -2
- package/dist-types/schemas/schemas_0.d.ts +9 -0
- package/package.json +2 -2
package/dist-cjs/WilmaVoice.js
CHANGED
|
@@ -3,19 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WilmaVoice = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
const DescribeVoiceProtocolCommand_1 = require("./commands/DescribeVoiceProtocolCommand");
|
|
6
|
+
const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
|
|
6
7
|
const SendHangupCommand_1 = require("./commands/SendHangupCommand");
|
|
7
8
|
const SendPlayCommand_1 = require("./commands/SendPlayCommand");
|
|
8
9
|
const SendSayCommand_1 = require("./commands/SendSayCommand");
|
|
9
10
|
const SendStopCommand_1 = require("./commands/SendStopCommand");
|
|
10
11
|
const SendTransferCommand_1 = require("./commands/SendTransferCommand");
|
|
12
|
+
const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
|
|
11
13
|
const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
|
|
12
14
|
const commands = {
|
|
13
15
|
DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
|
|
16
|
+
ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
|
|
14
17
|
SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
|
|
15
18
|
SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
|
|
16
19
|
SendSayCommand: SendSayCommand_1.SendSayCommand,
|
|
17
20
|
SendStopCommand: SendStopCommand_1.SendStopCommand,
|
|
18
21
|
SendTransferCommand: SendTransferCommand_1.SendTransferCommand,
|
|
22
|
+
TextToSpeechCommand: TextToSpeechCommand_1.TextToSpeechCommand,
|
|
19
23
|
};
|
|
20
24
|
class WilmaVoice extends WilmaVoiceClient_1.WilmaVoiceClient {
|
|
21
25
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListVoicesCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class ListVoicesCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("WilmaVoice", "ListVoices", {})
|
|
16
|
+
.n("WilmaVoiceClient", "ListVoicesCommand")
|
|
17
|
+
.sc(schemas_0_1.ListVoices$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.ListVoicesCommand = ListVoicesCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextToSpeechCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class TextToSpeechCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("WilmaVoice", "TextToSpeech", {})
|
|
16
|
+
.n("WilmaVoiceClient", "TextToSpeechCommand")
|
|
17
|
+
.sc(schemas_0_1.TextToSpeech$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.TextToSpeechCommand = TextToSpeechCommand;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeVoiceProtocolCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./SendHangupCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./SendPlayCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./SendSayCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./SendStopCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./SendTransferCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./TextToSpeechCommand"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceControlAction = exports.VoiceEventType = void 0;
|
|
3
|
+
exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
4
|
+
exports.VoicePronunciationEncoding = {
|
|
5
|
+
ALIAS: "alias",
|
|
6
|
+
IPA: "ipa",
|
|
7
|
+
};
|
|
4
8
|
exports.VoiceEventType = {
|
|
5
9
|
AUDIO: "audio",
|
|
6
10
|
COMPLETE: "complete",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.DescribeVoiceProtocol$ = void 0;
|
|
3
|
+
exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = exports.StopWebsocketCommand$ = exports.StopCommandData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebsocketEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommand$ = exports.SayCommandData$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = exports.ReplyEvent$ = exports.PlayWebsocketCommand$ = exports.PlayCommandData$ = exports.PlaybackWebsocketEvent$ = exports.PlaybackEvent$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.ErrorWebsocketEvent$ = exports.DescribeVoiceProtocolOutput$ = exports.DescribeVoiceProtocolInput$ = exports.ControlWebsocketEvent$ = exports.ControlEvent$ = exports.CompleteWebsocketEvent$ = exports.CompleteEvent$ = exports.AudioWebsocketEvent$ = exports.AudioEvent$ = exports.VoicePronunciation$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
|
|
4
|
+
exports.TextToSpeech$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoices$ = exports.DescribeVoiceProtocol$ = exports.VoiceSpeechPayload$ = exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = void 0;
|
|
5
5
|
const _AE = "AudioEvent";
|
|
6
6
|
const _AWE = "AudioWebsocketEvent";
|
|
7
7
|
const _CE = "CompleteEvent";
|
|
@@ -17,6 +17,9 @@ const _HCD = "HangupCommandData";
|
|
|
17
17
|
const _HWC = "HangupWebsocketCommand";
|
|
18
18
|
const _IE = "InterruptionEvent";
|
|
19
19
|
const _IWE = "InterruptionWebsocketEvent";
|
|
20
|
+
const _LV = "ListVoices";
|
|
21
|
+
const _LVI = "ListVoicesInput";
|
|
22
|
+
const _LVO = "ListVoicesOutput";
|
|
20
23
|
const _NFE = "NotFoundException";
|
|
21
24
|
const _PCD = "PlayCommandData";
|
|
22
25
|
const _PE = "PlaybackEvent";
|
|
@@ -24,6 +27,7 @@ const _PWC = "PlayWebsocketCommand";
|
|
|
24
27
|
const _PWE = "PlaybackWebsocketEvent";
|
|
25
28
|
const _RE = "ReplyEvent";
|
|
26
29
|
const _RWE = "ReplyWebsocketEvent";
|
|
30
|
+
const _SC = "SpeechCredential";
|
|
27
31
|
const _SCAO = "SayCommandAudioOptions";
|
|
28
32
|
const _SCD = "SayCommandData";
|
|
29
33
|
const _SCDt = "StopCommandData";
|
|
@@ -50,19 +54,30 @@ const _SWC = "SayWebsocketCommand";
|
|
|
50
54
|
const _SWCt = "StopWebsocketCommand";
|
|
51
55
|
const _TCD = "TransferCommandData";
|
|
52
56
|
const _TE = "TranscriptionEvent";
|
|
57
|
+
const _TTS = "TextToSpeech";
|
|
58
|
+
const _TTSI = "TextToSpeechInput";
|
|
59
|
+
const _TTSO = "TextToSpeechOutput";
|
|
53
60
|
const _TWC = "TransferWebsocketCommand";
|
|
54
61
|
const _TWE = "TranscriptionWebsocketEvent";
|
|
62
|
+
const _V = "Voice";
|
|
55
63
|
const _VAF = "VoiceAudioFormat";
|
|
56
64
|
const _VCP = "VoiceConnectParams";
|
|
57
65
|
const _VE = "ValidationException";
|
|
58
66
|
const _VEE = "VoiceErrorEvent";
|
|
59
|
-
const
|
|
67
|
+
const _VL = "VoiceList";
|
|
68
|
+
const _VP = "VoicePronunciation";
|
|
69
|
+
const _VPL = "VoicePronunciationList";
|
|
70
|
+
const _VSP = "VoiceSpeechPayload";
|
|
71
|
+
const _a = "as";
|
|
60
72
|
const _aD = "agentDraft";
|
|
73
|
+
const _aDu = "autoDetect";
|
|
61
74
|
const _aI = "agentId";
|
|
62
75
|
const _aN = "agentName";
|
|
63
76
|
const _aV = "agentVersion";
|
|
64
77
|
const _aWE = "audioWebsocketEvent";
|
|
78
|
+
const _ac = "action";
|
|
65
79
|
const _au = "audio";
|
|
80
|
+
const _bS = "backgroundSound";
|
|
66
81
|
const _c = "client";
|
|
67
82
|
const _cC = "callerCompany";
|
|
68
83
|
const _cE = "callerEmail";
|
|
@@ -79,17 +94,20 @@ const _cod = "code";
|
|
|
79
94
|
const _com = "complete";
|
|
80
95
|
const _con = "context";
|
|
81
96
|
const _conf = "confidence";
|
|
97
|
+
const _cr = "credential";
|
|
82
98
|
const _d = "data";
|
|
83
99
|
const _e = "error";
|
|
84
100
|
const _eT = "endTime";
|
|
85
101
|
const _eWE = "errorWebsocketEvent";
|
|
86
102
|
const _en = "encoding";
|
|
103
|
+
const _eng = "engine";
|
|
87
104
|
const _ev = "event";
|
|
88
105
|
const _ex = "extension";
|
|
89
106
|
const _f = "final";
|
|
90
107
|
const _gI = "groupId";
|
|
91
108
|
const _h = "http";
|
|
92
109
|
const _hE = "httpError";
|
|
110
|
+
const _hQ = "httpQuery";
|
|
93
111
|
const _hWC = "hangupWebsocketCommand";
|
|
94
112
|
const _i = "id";
|
|
95
113
|
const _iA = "inputAudio";
|
|
@@ -98,13 +116,20 @@ const _iMn = "inputMode";
|
|
|
98
116
|
const _iWE = "interruptionWebsocketEvent";
|
|
99
117
|
const _in = "interruptible";
|
|
100
118
|
const _l = "language";
|
|
119
|
+
const _la = "languages";
|
|
101
120
|
const _m = "message";
|
|
121
|
+
const _n = "name";
|
|
122
|
+
const _o = "options";
|
|
102
123
|
const _oA = "outputAudio";
|
|
103
124
|
const _oT = "originalText";
|
|
125
|
+
const _p = "phrase";
|
|
126
|
+
const _pL = "preferredLanguage";
|
|
104
127
|
const _pT = "playedText";
|
|
105
128
|
const _pV = "protocolVersion";
|
|
106
129
|
const _pWC = "playWebsocketCommand";
|
|
107
130
|
const _pWE = "playbackWebsocketEvent";
|
|
131
|
+
const _pr = "provider";
|
|
132
|
+
const _pro = "pronunciations";
|
|
108
133
|
const _r = "reason";
|
|
109
134
|
const _rI = "replyId";
|
|
110
135
|
const _rWE = "replyWebsocketEvent";
|
|
@@ -118,16 +143,21 @@ const _sT = "startTime";
|
|
|
118
143
|
const _sWC = "sayWebsocketCommand";
|
|
119
144
|
const _sWCt = "stopWebsocketCommand";
|
|
120
145
|
const _se = "seq";
|
|
146
|
+
const _sea = "search";
|
|
147
|
+
const _sp = "speech";
|
|
121
148
|
const _t = "type";
|
|
122
149
|
const _tI = "traceId";
|
|
123
150
|
const _tWC = "transferWebsocketCommand";
|
|
124
151
|
const _tWE = "transcriptionWebsocketEvent";
|
|
125
152
|
const _te = "text";
|
|
126
153
|
const _ti = "time";
|
|
127
|
-
const
|
|
154
|
+
const _u = "uri";
|
|
155
|
+
const _v = "voices";
|
|
128
156
|
const _va = "variables";
|
|
157
|
+
const _vo = "voice";
|
|
129
158
|
const n0 = "smithy.framework";
|
|
130
159
|
const n1 = "wildix.wilma.voice";
|
|
160
|
+
const n2 = "wildix.wilma.agents";
|
|
131
161
|
const schema_1 = require("@smithy/core/schema");
|
|
132
162
|
const errors_1 = require("../models/errors");
|
|
133
163
|
const WilmaVoiceServiceException_1 = require("../models/WilmaVoiceServiceException");
|
|
@@ -157,6 +187,12 @@ exports.errorTypeRegistries = [
|
|
|
157
187
|
_s_registry,
|
|
158
188
|
n0_registry,
|
|
159
189
|
];
|
|
190
|
+
var SpeechCredential = [0, n1, _SC, 8, 0];
|
|
191
|
+
exports.VoicePronunciation$ = [3, n2, _VP,
|
|
192
|
+
0,
|
|
193
|
+
[_p, _a, _en],
|
|
194
|
+
[0, 0, 0], 2
|
|
195
|
+
];
|
|
160
196
|
exports.AudioEvent$ = [3, n1, _AE,
|
|
161
197
|
0,
|
|
162
198
|
[_t, _d, _se],
|
|
@@ -179,7 +215,7 @@ exports.CompleteWebsocketEvent$ = [3, n1, _CWE,
|
|
|
179
215
|
];
|
|
180
216
|
exports.ControlEvent$ = [3, n1, _CEo,
|
|
181
217
|
0,
|
|
182
|
-
[_t,
|
|
218
|
+
[_t, _ac],
|
|
183
219
|
[0, 0], 2
|
|
184
220
|
];
|
|
185
221
|
exports.ControlWebsocketEvent$ = [3, n1, _CWEo,
|
|
@@ -222,6 +258,16 @@ exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
|
222
258
|
[_t, _ev],
|
|
223
259
|
[0, () => exports.InterruptionEvent$], 2
|
|
224
260
|
];
|
|
261
|
+
exports.ListVoicesInput$ = [3, n1, _LVI,
|
|
262
|
+
0,
|
|
263
|
+
[_pr, _l, _sea, _cr],
|
|
264
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [() => SpeechCredential, { [_hQ]: _cr }]], 1
|
|
265
|
+
];
|
|
266
|
+
exports.ListVoicesOutput$ = [3, n1, _LVO,
|
|
267
|
+
0,
|
|
268
|
+
[_v],
|
|
269
|
+
[() => VoiceList], 1
|
|
270
|
+
];
|
|
225
271
|
exports.PlaybackEvent$ = [3, n1, _PE,
|
|
226
272
|
0,
|
|
227
273
|
[_t, _rI, _te, _com, _sT, _eT],
|
|
@@ -244,8 +290,8 @@ exports.PlayWebsocketCommand$ = [3, n1, _PWC,
|
|
|
244
290
|
];
|
|
245
291
|
exports.ReplyEvent$ = [3, n1, _RE,
|
|
246
292
|
0,
|
|
247
|
-
[_t, _i, _te, _sT, _eT],
|
|
248
|
-
[0, 0, 0, 1, 1], 5
|
|
293
|
+
[_t, _i, _te, _sT, _eT, _l],
|
|
294
|
+
[0, 0, 0, 1, 1, 0], 5
|
|
249
295
|
];
|
|
250
296
|
exports.ReplyWebsocketEvent$ = [3, n1, _RWE,
|
|
251
297
|
0,
|
|
@@ -259,8 +305,8 @@ exports.SayCommandAudioOptions$ = [3, n1, _SCAO,
|
|
|
259
305
|
];
|
|
260
306
|
exports.SayCommandData$ = [3, n1, _SCD,
|
|
261
307
|
0,
|
|
262
|
-
[_te, _rI, _t, _in, _au],
|
|
263
|
-
[0, 0, 0, 2, () => exports.SayCommandAudioOptions$], 3
|
|
308
|
+
[_te, _rI, _t, _in, _vo, _au],
|
|
309
|
+
[0, 0, 0, 2, 0, () => exports.SayCommandAudioOptions$], 3
|
|
264
310
|
];
|
|
265
311
|
exports.SayWebsocketCommand$ = [3, n1, _SWC,
|
|
266
312
|
0,
|
|
@@ -289,8 +335,8 @@ exports.SendPlayOutput$ = [3, n1, _SPO,
|
|
|
289
335
|
];
|
|
290
336
|
exports.SendSayInput$ = [3, n1, _SSI,
|
|
291
337
|
0,
|
|
292
|
-
[_te, _rI, _sIe, _in, _au],
|
|
293
|
-
[0, 0, [0, 1], 2, () => exports.SayCommandAudioOptions$], 3
|
|
338
|
+
[_te, _rI, _sIe, _in, _vo, _au],
|
|
339
|
+
[0, 0, [0, 1], 2, 0, () => exports.SayCommandAudioOptions$], 3
|
|
294
340
|
];
|
|
295
341
|
exports.SendSayOutput$ = [3, n1, _SSO,
|
|
296
342
|
0,
|
|
@@ -329,8 +375,8 @@ exports.SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
|
|
|
329
375
|
];
|
|
330
376
|
exports.SessionStartedEvent$ = [3, n1, _SSE,
|
|
331
377
|
0,
|
|
332
|
-
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _iA, _oA],
|
|
333
|
-
[0, 1, 0, 0, 1, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 4
|
|
378
|
+
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
|
|
379
|
+
[0, 1, 0, 0, 1, 0, 0, 0, 0, () => exports.VoiceSpeechPayload$, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 4
|
|
334
380
|
];
|
|
335
381
|
exports.SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
|
|
336
382
|
0,
|
|
@@ -347,10 +393,20 @@ exports.StopWebsocketCommand$ = [3, n1, _SWCt,
|
|
|
347
393
|
[_t, _co],
|
|
348
394
|
[0, () => exports.StopCommandData$], 2
|
|
349
395
|
];
|
|
396
|
+
exports.TextToSpeechInput$ = [3, n1, _TTSI,
|
|
397
|
+
0,
|
|
398
|
+
[_vo, _l, _te, _pro],
|
|
399
|
+
[0, 0, 0, () => VoicePronunciationList], 3
|
|
400
|
+
];
|
|
401
|
+
exports.TextToSpeechOutput$ = [3, n1, _TTSO,
|
|
402
|
+
0,
|
|
403
|
+
[_au],
|
|
404
|
+
[[21, 16]], 1
|
|
405
|
+
];
|
|
350
406
|
exports.TranscriptionEvent$ = [3, n1, _TE,
|
|
351
407
|
0,
|
|
352
|
-
[_t, _i, _te, _ti, _conf, _f],
|
|
353
|
-
[0, 0, 0, 1, 1, 2], 4
|
|
408
|
+
[_t, _i, _te, _ti, _conf, _f, _l],
|
|
409
|
+
[0, 0, 0, 1, 1, 2, 0], 4
|
|
354
410
|
];
|
|
355
411
|
exports.TranscriptionWebsocketEvent$ = [3, n1, _TWE,
|
|
356
412
|
0,
|
|
@@ -367,6 +423,11 @@ exports.TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
|
367
423
|
[_t, _co],
|
|
368
424
|
[0, () => exports.TransferCommandData$], 2
|
|
369
425
|
];
|
|
426
|
+
exports.Voice$ = [3, n1, _V,
|
|
427
|
+
0,
|
|
428
|
+
[_u, _n, _o],
|
|
429
|
+
[0, 0, 15], 2
|
|
430
|
+
];
|
|
370
431
|
exports.VoiceAudioFormat$ = [3, n1, _VAF,
|
|
371
432
|
0,
|
|
372
433
|
[_en, _sR, _ch],
|
|
@@ -374,7 +435,7 @@ exports.VoiceAudioFormat$ = [3, n1, _VAF,
|
|
|
374
435
|
];
|
|
375
436
|
exports.VoiceConnectParams$ = [3, n1, _VCP,
|
|
376
437
|
0,
|
|
377
|
-
[_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC,
|
|
438
|
+
[_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
378
439
|
[0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
379
440
|
];
|
|
380
441
|
exports.VoiceErrorEvent$ = [3, n1, _VEE,
|
|
@@ -382,9 +443,24 @@ exports.VoiceErrorEvent$ = [3, n1, _VEE,
|
|
|
382
443
|
[_t, _cod, _m, _ti],
|
|
383
444
|
[0, 0, 0, 1], 4
|
|
384
445
|
];
|
|
446
|
+
exports.VoiceSpeechPayload$ = [3, n1, _VSP,
|
|
447
|
+
0,
|
|
448
|
+
[_eng, _la, _pL, _aDu],
|
|
449
|
+
[0, 64 | 0, 0, 2], 4
|
|
450
|
+
];
|
|
451
|
+
var LanguageCodeList = 64 | 0;
|
|
452
|
+
var VoicePronunciationList = [1, n2, _VPL,
|
|
453
|
+
0, () => exports.VoicePronunciation$
|
|
454
|
+
];
|
|
455
|
+
var VoiceList = [1, n1, _VL,
|
|
456
|
+
0, () => exports.Voice$
|
|
457
|
+
];
|
|
385
458
|
exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
386
459
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
|
|
387
460
|
];
|
|
461
|
+
exports.ListVoices$ = [9, n1, _LV,
|
|
462
|
+
{ [_h]: ["GET", "/v2/voice/voices", 200] }, () => exports.ListVoicesInput$, () => exports.ListVoicesOutput$
|
|
463
|
+
];
|
|
388
464
|
exports.SendHangup$ = [9, n1, _SH,
|
|
389
465
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => exports.SendHangupInput$, () => exports.SendHangupOutput$
|
|
390
466
|
];
|
|
@@ -400,3 +476,6 @@ exports.SendStop$ = [9, n1, _SSe,
|
|
|
400
476
|
exports.SendTransfer$ = [9, n1, _ST,
|
|
401
477
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => exports.SendTransferInput$, () => exports.SendTransferOutput$
|
|
402
478
|
];
|
|
479
|
+
exports.TextToSpeech$ = [9, n1, _TTS,
|
|
480
|
+
{ [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => exports.TextToSpeechInput$, () => exports.TextToSpeechOutput$
|
|
481
|
+
];
|
package/dist-es/WilmaVoice.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { DescribeVoiceProtocolCommand, } from "./commands/DescribeVoiceProtocolCommand";
|
|
3
|
+
import { ListVoicesCommand, } from "./commands/ListVoicesCommand";
|
|
3
4
|
import { SendHangupCommand, } from "./commands/SendHangupCommand";
|
|
4
5
|
import { SendPlayCommand } from "./commands/SendPlayCommand";
|
|
5
6
|
import { SendSayCommand } from "./commands/SendSayCommand";
|
|
6
7
|
import { SendStopCommand } from "./commands/SendStopCommand";
|
|
7
8
|
import { SendTransferCommand, } from "./commands/SendTransferCommand";
|
|
9
|
+
import { TextToSpeechCommand, } from "./commands/TextToSpeechCommand";
|
|
8
10
|
import { WilmaVoiceClient } from "./WilmaVoiceClient";
|
|
9
11
|
const commands = {
|
|
10
12
|
DescribeVoiceProtocolCommand,
|
|
13
|
+
ListVoicesCommand,
|
|
11
14
|
SendHangupCommand,
|
|
12
15
|
SendPlayCommand,
|
|
13
16
|
SendSayCommand,
|
|
14
17
|
SendStopCommand,
|
|
15
18
|
SendTransferCommand,
|
|
19
|
+
TextToSpeechCommand,
|
|
16
20
|
};
|
|
17
21
|
export class WilmaVoice extends WilmaVoiceClient {
|
|
18
22
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListVoices$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListVoicesCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaVoice", "ListVoices", {})
|
|
13
|
+
.n("WilmaVoiceClient", "ListVoicesCommand")
|
|
14
|
+
.sc(ListVoices$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { TextToSpeech$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class TextToSpeechCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaVoice", "TextToSpeech", {})
|
|
13
|
+
.n("WilmaVoiceClient", "TextToSpeechCommand")
|
|
14
|
+
.sc(TextToSpeech$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./DescribeVoiceProtocolCommand";
|
|
2
|
+
export * from "./ListVoicesCommand";
|
|
2
3
|
export * from "./SendHangupCommand";
|
|
3
4
|
export * from "./SendPlayCommand";
|
|
4
5
|
export * from "./SendSayCommand";
|
|
5
6
|
export * from "./SendStopCommand";
|
|
6
7
|
export * from "./SendTransferCommand";
|
|
8
|
+
export * from "./TextToSpeechCommand";
|