@wildix/wilma-voice-client 0.0.26 → 0.0.28
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 +42 -66
- 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 +40 -64
- 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 +81 -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-cjs/WilmaVoice.js
CHANGED
|
@@ -3,23 +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
|
|
7
|
-
const PreviewSpeechCommand_1 = require("./commands/PreviewSpeechCommand");
|
|
6
|
+
const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
|
|
8
7
|
const SendHangupCommand_1 = require("./commands/SendHangupCommand");
|
|
9
8
|
const SendPlayCommand_1 = require("./commands/SendPlayCommand");
|
|
10
9
|
const SendSayCommand_1 = require("./commands/SendSayCommand");
|
|
11
10
|
const SendStopCommand_1 = require("./commands/SendStopCommand");
|
|
12
11
|
const SendTransferCommand_1 = require("./commands/SendTransferCommand");
|
|
12
|
+
const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
|
|
13
13
|
const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
|
|
14
14
|
const commands = {
|
|
15
15
|
DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
|
|
16
|
-
|
|
17
|
-
PreviewSpeechCommand: PreviewSpeechCommand_1.PreviewSpeechCommand,
|
|
16
|
+
ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
|
|
18
17
|
SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
|
|
19
18
|
SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
|
|
20
19
|
SendSayCommand: SendSayCommand_1.SendSayCommand,
|
|
21
20
|
SendStopCommand: SendStopCommand_1.SendStopCommand,
|
|
22
21
|
SendTransferCommand: SendTransferCommand_1.SendTransferCommand,
|
|
22
|
+
TextToSpeechCommand: TextToSpeechCommand_1.TextToSpeechCommand,
|
|
23
23
|
};
|
|
24
24
|
class WilmaVoice extends WilmaVoiceClient_1.WilmaVoiceClient {
|
|
25
25
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ListVoicesCommand = exports.$Command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
6
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
7
|
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
8
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class
|
|
9
|
+
class ListVoicesCommand extends client_1.Command
|
|
10
10
|
.classBuilder()
|
|
11
11
|
.ep(EndpointParameters_1.commonParams)
|
|
12
12
|
.m(function (Command, cs, config, o) {
|
|
13
13
|
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
14
|
})
|
|
15
|
-
.s("WilmaVoice", "
|
|
16
|
-
.n("WilmaVoiceClient", "
|
|
17
|
-
.sc(schemas_0_1.
|
|
15
|
+
.s("WilmaVoice", "ListVoices", {})
|
|
16
|
+
.n("WilmaVoiceClient", "ListVoicesCommand")
|
|
17
|
+
.sc(schemas_0_1.ListVoices$)
|
|
18
18
|
.build() {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.ListVoicesCommand = ListVoicesCommand;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TextToSpeechCommand = exports.$Command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
6
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
7
|
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
8
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class
|
|
9
|
+
class TextToSpeechCommand extends client_1.Command
|
|
10
10
|
.classBuilder()
|
|
11
11
|
.ep(EndpointParameters_1.commonParams)
|
|
12
12
|
.m(function (Command, cs, config, o) {
|
|
13
13
|
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
14
|
})
|
|
15
|
-
.s("WilmaVoice", "
|
|
16
|
-
.n("WilmaVoiceClient", "
|
|
17
|
-
.sc(schemas_0_1.
|
|
15
|
+
.s("WilmaVoice", "TextToSpeech", {})
|
|
16
|
+
.n("WilmaVoiceClient", "TextToSpeechCommand")
|
|
17
|
+
.sc(schemas_0_1.TextToSpeech$)
|
|
18
18
|
.build() {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.TextToSpeechCommand = TextToSpeechCommand;
|
|
@@ -2,10 +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("./
|
|
6
|
-
tslib_1.__exportStar(require("./PreviewSpeechCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
|
|
7
6
|
tslib_1.__exportStar(require("./SendHangupCommand"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./SendPlayCommand"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./SendSayCommand"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./SendStopCommand"), exports);
|
|
11
10
|
tslib_1.__exportStar(require("./SendTransferCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./TextToSpeechCommand"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,18 +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 = exports.
|
|
3
|
+
exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
4
4
|
exports.VoicePronunciationEncoding = {
|
|
5
5
|
ALIAS: "alias",
|
|
6
6
|
IPA: "ipa",
|
|
7
7
|
};
|
|
8
|
-
exports.VoiceSpeechProvider = {
|
|
9
|
-
AMAZON_POLLY: "amazon_polly",
|
|
10
|
-
ELEVENLABS: "elevenlabs",
|
|
11
|
-
GOOGLE: "google",
|
|
12
|
-
};
|
|
13
|
-
exports.VoiceTranscriptionVendor = {
|
|
14
|
-
AWS: "aws",
|
|
15
|
-
};
|
|
16
8
|
exports.VoiceEventType = {
|
|
17
9
|
AUDIO: "audio",
|
|
18
10
|
COMPLETE: "complete",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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,15 +17,12 @@ const _HCD = "HangupCommandData";
|
|
|
17
17
|
const _HWC = "HangupWebsocketCommand";
|
|
18
18
|
const _IE = "InterruptionEvent";
|
|
19
19
|
const _IWE = "InterruptionWebsocketEvent";
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
20
|
+
const _LV = "ListVoices";
|
|
21
|
+
const _LVI = "ListVoicesInput";
|
|
22
|
+
const _LVO = "ListVoicesOutput";
|
|
23
23
|
const _NFE = "NotFoundException";
|
|
24
24
|
const _PCD = "PlayCommandData";
|
|
25
25
|
const _PE = "PlaybackEvent";
|
|
26
|
-
const _PS = "PreviewSpeech";
|
|
27
|
-
const _PSI = "PreviewSpeechInput";
|
|
28
|
-
const _PSO = "PreviewSpeechOutput";
|
|
29
26
|
const _PWC = "PlayWebsocketCommand";
|
|
30
27
|
const _PWE = "PlaybackWebsocketEvent";
|
|
31
28
|
const _RE = "ReplyEvent";
|
|
@@ -52,21 +49,23 @@ const _SSe = "SendStop";
|
|
|
52
49
|
const _ST = "SendTransfer";
|
|
53
50
|
const _STI = "SendTransferInput";
|
|
54
51
|
const _STO = "SendTransferOutput";
|
|
55
|
-
const _SV = "SpeechVoice";
|
|
56
|
-
const _SVL = "SpeechVoiceList";
|
|
57
52
|
const _SWC = "SayWebsocketCommand";
|
|
58
53
|
const _SWCt = "StopWebsocketCommand";
|
|
59
54
|
const _TCD = "TransferCommandData";
|
|
60
55
|
const _TE = "TranscriptionEvent";
|
|
56
|
+
const _TTS = "TextToSpeech";
|
|
57
|
+
const _TTSI = "TextToSpeechInput";
|
|
58
|
+
const _TTSO = "TextToSpeechOutput";
|
|
61
59
|
const _TWC = "TransferWebsocketCommand";
|
|
62
60
|
const _TWE = "TranscriptionWebsocketEvent";
|
|
61
|
+
const _V = "Voice";
|
|
63
62
|
const _VAF = "VoiceAudioFormat";
|
|
64
63
|
const _VCP = "VoiceConnectParams";
|
|
65
64
|
const _VE = "ValidationException";
|
|
66
65
|
const _VEE = "VoiceErrorEvent";
|
|
66
|
+
const _VL = "VoiceList";
|
|
67
67
|
const _VP = "VoicePronunciation";
|
|
68
68
|
const _VPL = "VoicePronunciationList";
|
|
69
|
-
const _VSO = "VoiceSynthesisOptions";
|
|
70
69
|
const _VSP = "VoiceSpeechPayload";
|
|
71
70
|
const _a = "as";
|
|
72
71
|
const _aD = "agentDraft";
|
|
@@ -76,7 +75,6 @@ const _aN = "agentName";
|
|
|
76
75
|
const _aV = "agentVersion";
|
|
77
76
|
const _aWE = "audioWebsocketEvent";
|
|
78
77
|
const _ac = "action";
|
|
79
|
-
const _acc = "accent";
|
|
80
78
|
const _au = "audio";
|
|
81
79
|
const _bS = "backgroundSound";
|
|
82
80
|
const _c = "client";
|
|
@@ -101,10 +99,10 @@ const _e = "error";
|
|
|
101
99
|
const _eT = "endTime";
|
|
102
100
|
const _eWE = "errorWebsocketEvent";
|
|
103
101
|
const _en = "encoding";
|
|
102
|
+
const _eng = "engine";
|
|
104
103
|
const _ev = "event";
|
|
105
104
|
const _ex = "extension";
|
|
106
105
|
const _f = "final";
|
|
107
|
-
const _g = "gender";
|
|
108
106
|
const _gI = "groupId";
|
|
109
107
|
const _h = "http";
|
|
110
108
|
const _hE = "httpError";
|
|
@@ -117,30 +115,24 @@ const _iMn = "inputMode";
|
|
|
117
115
|
const _iWE = "interruptionWebsocketEvent";
|
|
118
116
|
const _in = "interruptible";
|
|
119
117
|
const _l = "language";
|
|
120
|
-
const _lS = "languageSynthesis";
|
|
121
118
|
const _la = "languages";
|
|
122
119
|
const _m = "message";
|
|
123
|
-
const _mo = "model";
|
|
124
|
-
const _mod = "models";
|
|
125
120
|
const _n = "name";
|
|
121
|
+
const _o = "options";
|
|
126
122
|
const _oA = "outputAudio";
|
|
127
123
|
const _oT = "originalText";
|
|
128
124
|
const _p = "phrase";
|
|
129
125
|
const _pL = "preferredLanguage";
|
|
130
126
|
const _pT = "playedText";
|
|
131
|
-
const _pU = "previewUrl";
|
|
132
127
|
const _pV = "protocolVersion";
|
|
133
128
|
const _pWC = "playWebsocketCommand";
|
|
134
129
|
const _pWE = "playbackWebsocketEvent";
|
|
135
|
-
const _pi = "pitch";
|
|
136
130
|
const _pr = "provider";
|
|
137
131
|
const _pro = "pronunciations";
|
|
138
132
|
const _r = "reason";
|
|
139
|
-
const _rA = "refreshedAt";
|
|
140
133
|
const _rI = "replyId";
|
|
141
134
|
const _rWE = "replyWebsocketEvent";
|
|
142
135
|
const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
|
|
143
|
-
const _sB = "speakerBoost";
|
|
144
136
|
const _sEWE = "sessionEndedWebsocketEvent";
|
|
145
137
|
const _sI = "streamId";
|
|
146
138
|
const _sIe = "sessionId";
|
|
@@ -151,24 +143,16 @@ const _sWC = "sayWebsocketCommand";
|
|
|
151
143
|
const _sWCt = "stopWebsocketCommand";
|
|
152
144
|
const _se = "seq";
|
|
153
145
|
const _sea = "search";
|
|
154
|
-
const
|
|
155
|
-
const _sp = "speed";
|
|
156
|
-
const _spe = "speech";
|
|
157
|
-
const _st = "stability";
|
|
158
|
-
const _sta = "stale";
|
|
159
|
-
const _sty = "style";
|
|
160
|
-
const _su = "suppressions";
|
|
161
|
-
const _sy = "synthesis";
|
|
146
|
+
const _sp = "speech";
|
|
162
147
|
const _t = "type";
|
|
163
148
|
const _tI = "traceId";
|
|
164
149
|
const _tWC = "transferWebsocketCommand";
|
|
165
150
|
const _tWE = "transcriptionWebsocketEvent";
|
|
166
151
|
const _te = "text";
|
|
167
152
|
const _ti = "time";
|
|
153
|
+
const _u = "uri";
|
|
168
154
|
const _v = "voices";
|
|
169
|
-
const _vG = "volumeGain";
|
|
170
155
|
const _va = "variables";
|
|
171
|
-
const _ve = "vendor";
|
|
172
156
|
const _vo = "voice";
|
|
173
157
|
const n0 = "smithy.framework";
|
|
174
158
|
const n1 = "wildix.wilma.agents";
|
|
@@ -207,11 +191,6 @@ exports.VoicePronunciation$ = [3, n1, _VP,
|
|
|
207
191
|
[_p, _a, _en],
|
|
208
192
|
[0, 0, 0], 2
|
|
209
193
|
];
|
|
210
|
-
exports.VoiceSynthesisOptions$ = [3, n1, _VSO,
|
|
211
|
-
0,
|
|
212
|
-
[_mo, _sp, _st, _si, _sty, _sB, _pi, _vG],
|
|
213
|
-
[0, 1, 1, 1, 1, 2, 1, 1]
|
|
214
|
-
];
|
|
215
194
|
exports.AudioEvent$ = [3, n2, _AE,
|
|
216
195
|
0,
|
|
217
196
|
[_t, _d, _se],
|
|
@@ -277,15 +256,15 @@ exports.InterruptionWebsocketEvent$ = [3, n2, _IWE,
|
|
|
277
256
|
[_t, _ev],
|
|
278
257
|
[0, () => exports.InterruptionEvent$], 2
|
|
279
258
|
];
|
|
280
|
-
exports.
|
|
259
|
+
exports.ListVoicesInput$ = [3, n2, _LVI,
|
|
281
260
|
0,
|
|
282
261
|
[_pr, _l, _sea, _cr],
|
|
283
262
|
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
|
|
284
263
|
];
|
|
285
|
-
exports.
|
|
264
|
+
exports.ListVoicesOutput$ = [3, n2, _LVO,
|
|
286
265
|
0,
|
|
287
|
-
[_v
|
|
288
|
-
[() =>
|
|
266
|
+
[_v],
|
|
267
|
+
[() => VoiceList], 1
|
|
289
268
|
];
|
|
290
269
|
exports.PlaybackEvent$ = [3, n2, _PE,
|
|
291
270
|
0,
|
|
@@ -307,16 +286,6 @@ exports.PlayWebsocketCommand$ = [3, n2, _PWC,
|
|
|
307
286
|
[_t, _co],
|
|
308
287
|
[0, () => exports.PlayCommandData$], 2
|
|
309
288
|
];
|
|
310
|
-
exports.PreviewSpeechInput$ = [3, n2, _PSI,
|
|
311
|
-
0,
|
|
312
|
-
[_pr, _vo, _l, _te, _sy, _lS, _pro, _su, _cr],
|
|
313
|
-
[0, 0, 0, 0, () => exports.VoiceSynthesisOptions$, () => exports.VoiceSynthesisOptions$, () => VoicePronunciationList, 64 | 0, 0], 4
|
|
314
|
-
];
|
|
315
|
-
exports.PreviewSpeechOutput$ = [3, n2, _PSO,
|
|
316
|
-
0,
|
|
317
|
-
[_au],
|
|
318
|
-
[[21, 16]], 1
|
|
319
|
-
];
|
|
320
289
|
exports.ReplyEvent$ = [3, n2, _RE,
|
|
321
290
|
0,
|
|
322
291
|
[_t, _i, _te, _sT, _eT, _l],
|
|
@@ -404,7 +373,7 @@ exports.SessionEndedWebsocketEvent$ = [3, n2, _SEWE,
|
|
|
404
373
|
];
|
|
405
374
|
exports.SessionStartedEvent$ = [3, n2, _SSE,
|
|
406
375
|
0,
|
|
407
|
-
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI,
|
|
376
|
+
[_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
|
|
408
377
|
[0, 1, 0, 0, 1, 0, 0, 0, 0, () => exports.VoiceSpeechPayload$, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 4
|
|
409
378
|
];
|
|
410
379
|
exports.SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
|
|
@@ -412,11 +381,6 @@ exports.SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
|
|
|
412
381
|
[_t, _ev],
|
|
413
382
|
[0, () => exports.SessionStartedEvent$], 2
|
|
414
383
|
];
|
|
415
|
-
exports.SpeechVoice$ = [3, n2, _SV,
|
|
416
|
-
0,
|
|
417
|
-
[_i, _n, _la, _g, _acc, _ca, _pU, _mod],
|
|
418
|
-
[0, 0, 64 | 0, 0, 0, 0, 0, 64 | 0], 2
|
|
419
|
-
];
|
|
420
384
|
exports.StopCommandData$ = [3, n2, _SCDt,
|
|
421
385
|
0,
|
|
422
386
|
[_t],
|
|
@@ -427,6 +391,16 @@ exports.StopWebsocketCommand$ = [3, n2, _SWCt,
|
|
|
427
391
|
[_t, _co],
|
|
428
392
|
[0, () => exports.StopCommandData$], 2
|
|
429
393
|
];
|
|
394
|
+
exports.TextToSpeechInput$ = [3, n2, _TTSI,
|
|
395
|
+
0,
|
|
396
|
+
[_vo, _l, _te, _pro],
|
|
397
|
+
[0, 0, 0, () => VoicePronunciationList], 3
|
|
398
|
+
];
|
|
399
|
+
exports.TextToSpeechOutput$ = [3, n2, _TTSO,
|
|
400
|
+
0,
|
|
401
|
+
[_au],
|
|
402
|
+
[[21, 16]], 1
|
|
403
|
+
];
|
|
430
404
|
exports.TranscriptionEvent$ = [3, n2, _TE,
|
|
431
405
|
0,
|
|
432
406
|
[_t, _i, _te, _ti, _conf, _f, _l],
|
|
@@ -447,6 +421,11 @@ exports.TransferWebsocketCommand$ = [3, n2, _TWC,
|
|
|
447
421
|
[_t, _co],
|
|
448
422
|
[0, () => exports.TransferCommandData$], 2
|
|
449
423
|
];
|
|
424
|
+
exports.Voice$ = [3, n2, _V,
|
|
425
|
+
0,
|
|
426
|
+
[_u, _n, _o],
|
|
427
|
+
[0, 0, 15], 2
|
|
428
|
+
];
|
|
450
429
|
exports.VoiceAudioFormat$ = [3, n2, _VAF,
|
|
451
430
|
0,
|
|
452
431
|
[_en, _sR, _ch],
|
|
@@ -464,27 +443,21 @@ exports.VoiceErrorEvent$ = [3, n2, _VEE,
|
|
|
464
443
|
];
|
|
465
444
|
exports.VoiceSpeechPayload$ = [3, n2, _VSP,
|
|
466
445
|
0,
|
|
467
|
-
[
|
|
446
|
+
[_eng, _la, _pL, _aDu],
|
|
468
447
|
[0, 64 | 0, 0, 2], 4
|
|
469
448
|
];
|
|
470
449
|
var LanguageCodeList = 64 | 0;
|
|
471
450
|
var VoicePronunciationList = [1, n1, _VPL,
|
|
472
451
|
0, () => exports.VoicePronunciation$
|
|
473
452
|
];
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
var SpeechVoiceList = [1, n2, _SVL,
|
|
477
|
-
0, () => exports.SpeechVoice$
|
|
453
|
+
var VoiceList = [1, n2, _VL,
|
|
454
|
+
0, () => exports.Voice$
|
|
478
455
|
];
|
|
479
|
-
var SpeechVoiceModelList = 64 | 0;
|
|
480
456
|
exports.DescribeVoiceProtocol$ = [9, n2, _DVP,
|
|
481
457
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
|
|
482
458
|
];
|
|
483
|
-
exports.
|
|
484
|
-
{ [_h]: ["GET", "/v2/voice/
|
|
485
|
-
];
|
|
486
|
-
exports.PreviewSpeech$ = [9, n2, _PS,
|
|
487
|
-
{ [_h]: ["POST", "/v2/voice/speech-preview", 200] }, () => exports.PreviewSpeechInput$, () => exports.PreviewSpeechOutput$
|
|
459
|
+
exports.ListVoices$ = [9, n2, _LV,
|
|
460
|
+
{ [_h]: ["GET", "/v2/voice/voices", 200] }, () => exports.ListVoicesInput$, () => exports.ListVoicesOutput$
|
|
488
461
|
];
|
|
489
462
|
exports.SendHangup$ = [9, n2, _SH,
|
|
490
463
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => exports.SendHangupInput$, () => exports.SendHangupOutput$
|
|
@@ -501,3 +474,6 @@ exports.SendStop$ = [9, n2, _SSe,
|
|
|
501
474
|
exports.SendTransfer$ = [9, n2, _ST,
|
|
502
475
|
{ [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => exports.SendTransferInput$, () => exports.SendTransferOutput$
|
|
503
476
|
];
|
|
477
|
+
exports.TextToSpeech$ = [9, n2, _TTS,
|
|
478
|
+
{ [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => exports.TextToSpeechInput$, () => exports.TextToSpeechOutput$
|
|
479
|
+
];
|
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",
|