@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.
@@ -13,15 +13,12 @@ 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
+ 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";
@@ -48,21 +45,23 @@ const _SSe = "SendStop";
48
45
  const _ST = "SendTransfer";
49
46
  const _STI = "SendTransferInput";
50
47
  const _STO = "SendTransferOutput";
51
- const _SV = "SpeechVoice";
52
- const _SVL = "SpeechVoiceList";
53
48
  const _SWC = "SayWebsocketCommand";
54
49
  const _SWCt = "StopWebsocketCommand";
55
50
  const _TCD = "TransferCommandData";
56
51
  const _TE = "TranscriptionEvent";
52
+ const _TTS = "TextToSpeech";
53
+ const _TTSI = "TextToSpeechInput";
54
+ const _TTSO = "TextToSpeechOutput";
57
55
  const _TWC = "TransferWebsocketCommand";
58
56
  const _TWE = "TranscriptionWebsocketEvent";
57
+ const _V = "Voice";
59
58
  const _VAF = "VoiceAudioFormat";
60
59
  const _VCP = "VoiceConnectParams";
61
60
  const _VE = "ValidationException";
62
61
  const _VEE = "VoiceErrorEvent";
62
+ const _VL = "VoiceList";
63
63
  const _VP = "VoicePronunciation";
64
64
  const _VPL = "VoicePronunciationList";
65
- const _VSO = "VoiceSynthesisOptions";
66
65
  const _VSP = "VoiceSpeechPayload";
67
66
  const _a = "as";
68
67
  const _aD = "agentDraft";
@@ -72,7 +71,6 @@ const _aN = "agentName";
72
71
  const _aV = "agentVersion";
73
72
  const _aWE = "audioWebsocketEvent";
74
73
  const _ac = "action";
75
- const _acc = "accent";
76
74
  const _au = "audio";
77
75
  const _bS = "backgroundSound";
78
76
  const _c = "client";
@@ -97,10 +95,10 @@ const _e = "error";
97
95
  const _eT = "endTime";
98
96
  const _eWE = "errorWebsocketEvent";
99
97
  const _en = "encoding";
98
+ const _eng = "engine";
100
99
  const _ev = "event";
101
100
  const _ex = "extension";
102
101
  const _f = "final";
103
- const _g = "gender";
104
102
  const _gI = "groupId";
105
103
  const _h = "http";
106
104
  const _hE = "httpError";
@@ -113,30 +111,24 @@ const _iMn = "inputMode";
113
111
  const _iWE = "interruptionWebsocketEvent";
114
112
  const _in = "interruptible";
115
113
  const _l = "language";
116
- const _lS = "languageSynthesis";
117
114
  const _la = "languages";
118
115
  const _m = "message";
119
- const _mo = "model";
120
- const _mod = "models";
121
116
  const _n = "name";
117
+ const _o = "options";
122
118
  const _oA = "outputAudio";
123
119
  const _oT = "originalText";
124
120
  const _p = "phrase";
125
121
  const _pL = "preferredLanguage";
126
122
  const _pT = "playedText";
127
- const _pU = "previewUrl";
128
123
  const _pV = "protocolVersion";
129
124
  const _pWC = "playWebsocketCommand";
130
125
  const _pWE = "playbackWebsocketEvent";
131
- const _pi = "pitch";
132
126
  const _pr = "provider";
133
127
  const _pro = "pronunciations";
134
128
  const _r = "reason";
135
- const _rA = "refreshedAt";
136
129
  const _rI = "replyId";
137
130
  const _rWE = "replyWebsocketEvent";
138
131
  const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
139
- const _sB = "speakerBoost";
140
132
  const _sEWE = "sessionEndedWebsocketEvent";
141
133
  const _sI = "streamId";
142
134
  const _sIe = "sessionId";
@@ -147,24 +139,16 @@ const _sWC = "sayWebsocketCommand";
147
139
  const _sWCt = "stopWebsocketCommand";
148
140
  const _se = "seq";
149
141
  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";
142
+ const _sp = "speech";
158
143
  const _t = "type";
159
144
  const _tI = "traceId";
160
145
  const _tWC = "transferWebsocketCommand";
161
146
  const _tWE = "transcriptionWebsocketEvent";
162
147
  const _te = "text";
163
148
  const _ti = "time";
149
+ const _u = "uri";
164
150
  const _v = "voices";
165
- const _vG = "volumeGain";
166
151
  const _va = "variables";
167
- const _ve = "vendor";
168
152
  const _vo = "voice";
169
153
  const n0 = "smithy.framework";
170
154
  const n1 = "wildix.wilma.agents";
@@ -203,11 +187,6 @@ export var VoicePronunciation$ = [3, n1, _VP,
203
187
  [_p, _a, _en],
204
188
  [0, 0, 0], 2
205
189
  ];
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
190
  export var AudioEvent$ = [3, n2, _AE,
212
191
  0,
213
192
  [_t, _d, _se],
@@ -273,15 +252,15 @@ export var InterruptionWebsocketEvent$ = [3, n2, _IWE,
273
252
  [_t, _ev],
274
253
  [0, () => InterruptionEvent$], 2
275
254
  ];
276
- export var ListSpeechVoicesInput$ = [3, n2, _LSVI,
255
+ export var ListVoicesInput$ = [3, n2, _LVI,
277
256
  0,
278
257
  [_pr, _l, _sea, _cr],
279
258
  [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
280
259
  ];
281
- export var ListSpeechVoicesOutput$ = [3, n2, _LSVO,
260
+ export var ListVoicesOutput$ = [3, n2, _LVO,
282
261
  0,
283
- [_v, _rA, _la, _sta],
284
- [() => SpeechVoiceList, 0, 64 | 0, 2], 2
262
+ [_v],
263
+ [() => VoiceList], 1
285
264
  ];
286
265
  export var PlaybackEvent$ = [3, n2, _PE,
287
266
  0,
@@ -303,16 +282,6 @@ export var PlayWebsocketCommand$ = [3, n2, _PWC,
303
282
  [_t, _co],
304
283
  [0, () => PlayCommandData$], 2
305
284
  ];
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,
312
- 0,
313
- [_au],
314
- [[21, 16]], 1
315
- ];
316
285
  export var ReplyEvent$ = [3, n2, _RE,
317
286
  0,
318
287
  [_t, _i, _te, _sT, _eT, _l],
@@ -400,7 +369,7 @@ export var SessionEndedWebsocketEvent$ = [3, n2, _SEWE,
400
369
  ];
401
370
  export var SessionStartedEvent$ = [3, n2, _SSE,
402
371
  0,
403
- [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _spe, _bS, _iA, _oA],
372
+ [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
404
373
  [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
405
374
  ];
406
375
  export var SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
@@ -408,11 +377,6 @@ export var SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
408
377
  [_t, _ev],
409
378
  [0, () => SessionStartedEvent$], 2
410
379
  ];
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
380
  export var StopCommandData$ = [3, n2, _SCDt,
417
381
  0,
418
382
  [_t],
@@ -423,6 +387,16 @@ export var StopWebsocketCommand$ = [3, n2, _SWCt,
423
387
  [_t, _co],
424
388
  [0, () => StopCommandData$], 2
425
389
  ];
390
+ export var TextToSpeechInput$ = [3, n2, _TTSI,
391
+ 0,
392
+ [_vo, _l, _te, _pro],
393
+ [0, 0, 0, () => VoicePronunciationList], 3
394
+ ];
395
+ export var TextToSpeechOutput$ = [3, n2, _TTSO,
396
+ 0,
397
+ [_au],
398
+ [[21, 16]], 1
399
+ ];
426
400
  export var TranscriptionEvent$ = [3, n2, _TE,
427
401
  0,
428
402
  [_t, _i, _te, _ti, _conf, _f, _l],
@@ -443,6 +417,11 @@ export var TransferWebsocketCommand$ = [3, n2, _TWC,
443
417
  [_t, _co],
444
418
  [0, () => TransferCommandData$], 2
445
419
  ];
420
+ export var Voice$ = [3, n2, _V,
421
+ 0,
422
+ [_u, _n, _o],
423
+ [0, 0, 15], 2
424
+ ];
446
425
  export var VoiceAudioFormat$ = [3, n2, _VAF,
447
426
  0,
448
427
  [_en, _sR, _ch],
@@ -460,27 +439,21 @@ export var VoiceErrorEvent$ = [3, n2, _VEE,
460
439
  ];
461
440
  export var VoiceSpeechPayload$ = [3, n2, _VSP,
462
441
  0,
463
- [_ve, _la, _pL, _aDu],
442
+ [_eng, _la, _pL, _aDu],
464
443
  [0, 64 | 0, 0, 2], 4
465
444
  ];
466
445
  var LanguageCodeList = 64 | 0;
467
446
  var VoicePronunciationList = [1, n1, _VPL,
468
447
  0, () => VoicePronunciation$
469
448
  ];
470
- var VoicePronunciationSuppressionList = 64 | 0;
471
- var ProviderLanguageTagList = 64 | 0;
472
- var SpeechVoiceList = [1, n2, _SVL,
473
- 0, () => SpeechVoice$
449
+ var VoiceList = [1, n2, _VL,
450
+ 0, () => Voice$
474
451
  ];
475
- var SpeechVoiceModelList = 64 | 0;
476
452
  export var DescribeVoiceProtocol$ = [9, n2, _DVP,
477
453
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
478
454
  ];
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$
455
+ export var ListVoices$ = [9, n2, _LV,
456
+ { [_h]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
484
457
  ];
485
458
  export var SendHangup$ = [9, n2, _SH,
486
459
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
@@ -497,3 +470,6 @@ export var SendStop$ = [9, n2, _SSe,
497
470
  export var SendTransfer$ = [9, n2, _ST,
498
471
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
499
472
  ];
473
+ export var TextToSpeech$ = [9, n2, _TTS,
474
+ { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
475
+ ];
@@ -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 ListSpeechVoicesCommandInput, type ListSpeechVoicesCommandOutput } from "./commands/ListSpeechVoicesCommand";
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 ListSpeechVoicesCommand}
20
+ * @see {@link ListVoicesCommand}
21
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;
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
@@ -6,24 +6,24 @@ 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
+ import type { ListVoicesCommandInput, ListVoicesCommandOutput } from "./commands/ListVoicesCommand";
11
10
  import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
12
11
  import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
13
12
  import type { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
14
13
  import type { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
15
14
  import type { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
15
+ import type { TextToSpeechCommandInput, TextToSpeechCommandOutput } from "./commands/TextToSpeechCommand";
16
16
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
17
17
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
18
18
  export { __Client };
19
19
  /**
20
20
  * @public
21
21
  */
22
- export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListSpeechVoicesCommandInput | PreviewSpeechCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput;
22
+ export type ServiceInputTypes = DescribeVoiceProtocolCommandInput | ListVoicesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | TextToSpeechCommandInput;
23
23
  /**
24
24
  * @public
25
25
  */
26
- export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListSpeechVoicesCommandOutput | PreviewSpeechCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput;
26
+ export type ServiceOutputTypes = DescribeVoiceProtocolCommandOutput | ListVoicesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | TextToSpeechCommandOutput;
27
27
  /**
28
28
  * @public
29
29
  */
@@ -147,7 +147,7 @@ declare const DescribeVoiceProtocolCommand_base: {
147
147
  * // category: "STRING_VALUE",
148
148
  * // groupId: "STRING_VALUE",
149
149
  * // speech: { // VoiceSpeechPayload
150
- * // vendor: "aws", // required
150
+ * // engine: "STRING_VALUE", // required
151
151
  * // languages: [ // LanguageCodeList // required
152
152
  * // "STRING_VALUE",
153
153
  * // ],
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListVoicesInput, ListVoicesOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListVoicesCommand}.
14
+ */
15
+ export interface ListVoicesCommandInput extends ListVoicesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListVoicesCommand}.
21
+ */
22
+ export interface ListVoicesCommandOutput extends ListVoicesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListVoicesCommand_base: {
25
+ new (input: ListVoicesCommandInput): import("@smithy/core/client").CommandImpl<ListVoicesCommandInput, ListVoicesCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListVoicesCommandInput): import("@smithy/core/client").CommandImpl<ListVoicesCommandInput, ListVoicesCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists the voices a synthesis provider offers, read from the provider's own API and cached per company, provider, credential and language. Answers a URI per voice, so a picker stores what it selected rather than composing one.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaVoiceClient, ListVoicesCommand } from "@wildix/wilma-voice-client"; // ES Modules import
35
+ * // const { WilmaVoiceClient, ListVoicesCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
36
+ * // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
37
+ * const config = {}; // type is WilmaVoiceClientConfig
38
+ * const client = new WilmaVoiceClient(config);
39
+ * const input = { // ListVoicesInput
40
+ * provider: "STRING_VALUE", // required
41
+ * language: "STRING_VALUE",
42
+ * search: "STRING_VALUE",
43
+ * credential: "STRING_VALUE",
44
+ * };
45
+ * const command = new ListVoicesCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListVoicesOutput
48
+ * // voices: [ // VoiceList // required
49
+ * // { // Voice
50
+ * // uri: "STRING_VALUE", // required
51
+ * // name: "STRING_VALUE", // required
52
+ * // options: "DOCUMENT_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListVoicesCommandInput - {@link ListVoicesCommandInput}
60
+ * @returns {@link ListVoicesCommandOutput}
61
+ * @see {@link ListVoicesCommandInput} for command's `input` shape.
62
+ * @see {@link ListVoicesCommandOutput} for command's `response` shape.
63
+ * @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ *
67
+ * @throws {@link ForbiddenException} (client fault)
68
+ *
69
+ * @throws {@link WilmaVoiceServiceException}
70
+ * <p>Base exception class for all service exceptions from WilmaVoice service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class ListVoicesCommand extends ListVoicesCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: ListVoicesInput;
80
+ output: ListVoicesOutput;
81
+ };
82
+ sdk: {
83
+ input: ListVoicesCommandInput;
84
+ output: ListVoicesCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
3
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import type { TextToSpeechInput, TextToSpeechOutput } from "../models/models_0";
5
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaVoiceClientResolvedConfig } from "../WilmaVoiceClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export type { __MetadataBearer };
10
+ export { $Command };
11
+ /**
12
+ * @public
13
+ *
14
+ * The input for {@link TextToSpeechCommand}.
15
+ */
16
+ export interface TextToSpeechCommandInput extends TextToSpeechInput {
17
+ }
18
+ /**
19
+ * @public
20
+ */
21
+ export type TextToSpeechCommandOutputType = Omit<TextToSpeechOutput, "audio"> & {
22
+ audio: Uint8ArrayBlobAdapter;
23
+ };
24
+ /**
25
+ * @public
26
+ *
27
+ * The output of {@link TextToSpeechCommand}.
28
+ */
29
+ export interface TextToSpeechCommandOutput extends TextToSpeechCommandOutputType, __MetadataBearer {
30
+ }
31
+ declare const TextToSpeechCommand_base: {
32
+ new (input: TextToSpeechCommandInput): import("@smithy/core/client").CommandImpl<TextToSpeechCommandInput, TextToSpeechCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
33
+ new (input: TextToSpeechCommandInput): import("@smithy/core/client").CommandImpl<TextToSpeechCommandInput, TextToSpeechCommandOutput, WilmaVoiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
34
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
35
+ };
36
+ /**
37
+ * Synthesizes one phrase and returns MP3.
38
+ *
39
+ * NOT NAMED FOR THE PREVIEW IT SERVES. Auditioning an unsaved voice in the console is the first
40
+ * caller, but nothing about the operation is preview-specific — it is the platform's
41
+ * text-to-speech, reachable by anything holding the scope, and a name naming one caller's screen
42
+ * would have to be worked around by the second one.
43
+ *
44
+ * EVERYTHING TRAVELS IN THE REQUEST and the operation reads no stored record — not the agent, and
45
+ * no dictionary behind it. The settings being auditioned are unsaved form state, and the rules
46
+ * that apply are the ones on `pronunciations`, so what is heard here is what the call would say.
47
+ * @example
48
+ * Use a bare-bones client and the command you need to make an API call.
49
+ * ```javascript
50
+ * import { WilmaVoiceClient, TextToSpeechCommand } from "@wildix/wilma-voice-client"; // ES Modules import
51
+ * // const { WilmaVoiceClient, TextToSpeechCommand } = require("@wildix/wilma-voice-client"); // CommonJS import
52
+ * // import type { WilmaVoiceClientConfig } from "@wildix/wilma-voice-client";
53
+ * const config = {}; // type is WilmaVoiceClientConfig
54
+ * const client = new WilmaVoiceClient(config);
55
+ * const input = { // TextToSpeechInput
56
+ * voice: "STRING_VALUE", // required
57
+ * language: "STRING_VALUE", // required
58
+ * text: "STRING_VALUE", // required
59
+ * pronunciations: [ // VoicePronunciationList
60
+ * { // VoicePronunciation
61
+ * phrase: "STRING_VALUE", // required
62
+ * as: "STRING_VALUE", // required
63
+ * encoding: "alias" || "ipa",
64
+ * },
65
+ * ],
66
+ * };
67
+ * const command = new TextToSpeechCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // TextToSpeechOutput
70
+ * // audio: new Uint8Array(), // required
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param TextToSpeechCommandInput - {@link TextToSpeechCommandInput}
76
+ * @returns {@link TextToSpeechCommandOutput}
77
+ * @see {@link TextToSpeechCommandInput} for command's `input` shape.
78
+ * @see {@link TextToSpeechCommandOutput} for command's `response` shape.
79
+ * @see {@link WilmaVoiceClientResolvedConfig | config} for WilmaVoiceClient's `config` shape.
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ *
83
+ * @throws {@link ForbiddenException} (client fault)
84
+ *
85
+ * @throws {@link WilmaVoiceServiceException}
86
+ * <p>Base exception class for all service exceptions from WilmaVoice service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class TextToSpeechCommand extends TextToSpeechCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: TextToSpeechInput;
96
+ output: TextToSpeechOutput;
97
+ };
98
+ sdk: {
99
+ input: TextToSpeechCommandInput;
100
+ output: TextToSpeechCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -1,8 +1,8 @@
1
1
  export * from "./DescribeVoiceProtocolCommand";
2
- export * from "./ListSpeechVoicesCommand";
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";
@@ -16,30 +16,6 @@ export declare const VoicePronunciationEncoding: {
16
16
  * @public
17
17
  */
18
18
  export type VoicePronunciationEncoding = (typeof VoicePronunciationEncoding)[keyof typeof VoicePronunciationEncoding];
19
- /**
20
- * @public
21
- * @enum
22
- */
23
- export declare const VoiceSpeechProvider: {
24
- readonly AMAZON_POLLY: "amazon_polly";
25
- readonly ELEVENLABS: "elevenlabs";
26
- readonly GOOGLE: "google";
27
- };
28
- /**
29
- * @public
30
- */
31
- export type VoiceSpeechProvider = (typeof VoiceSpeechProvider)[keyof typeof VoiceSpeechProvider];
32
- /**
33
- * @public
34
- * @enum
35
- */
36
- export declare const VoiceTranscriptionVendor: {
37
- readonly AWS: "aws";
38
- };
39
- /**
40
- * @public
41
- */
42
- export type VoiceTranscriptionVendor = (typeof VoiceTranscriptionVendor)[keyof typeof VoiceTranscriptionVendor];
43
19
  /**
44
20
  * @public
45
21
  * @enum