@wildix/wilma-voice-client 0.0.27 → 0.0.30
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.
|
@@ -20,6 +20,7 @@ const _IWE = "InterruptionWebsocketEvent";
|
|
|
20
20
|
const _LV = "ListVoices";
|
|
21
21
|
const _LVI = "ListVoicesInput";
|
|
22
22
|
const _LVO = "ListVoicesOutput";
|
|
23
|
+
const _MA = "Mp3Audio";
|
|
23
24
|
const _NFE = "NotFoundException";
|
|
24
25
|
const _PCD = "PlayCommandData";
|
|
25
26
|
const _PE = "PlaybackEvent";
|
|
@@ -27,7 +28,6 @@ const _PWC = "PlayWebsocketCommand";
|
|
|
27
28
|
const _PWE = "PlaybackWebsocketEvent";
|
|
28
29
|
const _RE = "ReplyEvent";
|
|
29
30
|
const _RWE = "ReplyWebsocketEvent";
|
|
30
|
-
const _SC = "SpeechCredential";
|
|
31
31
|
const _SCAO = "SayCommandAudioOptions";
|
|
32
32
|
const _SCD = "SayCommandData";
|
|
33
33
|
const _SCDt = "StopCommandData";
|
|
@@ -68,7 +68,7 @@ const _VL = "VoiceList";
|
|
|
68
68
|
const _VP = "VoicePronunciation";
|
|
69
69
|
const _VPL = "VoicePronunciationList";
|
|
70
70
|
const _VSP = "VoiceSpeechPayload";
|
|
71
|
-
const _a = "
|
|
71
|
+
const _a = "audio/mpeg";
|
|
72
72
|
const _aD = "agentDraft";
|
|
73
73
|
const _aDu = "autoDetect";
|
|
74
74
|
const _aI = "agentId";
|
|
@@ -76,6 +76,7 @@ const _aN = "agentName";
|
|
|
76
76
|
const _aV = "agentVersion";
|
|
77
77
|
const _aWE = "audioWebsocketEvent";
|
|
78
78
|
const _ac = "action";
|
|
79
|
+
const _as = "as";
|
|
79
80
|
const _au = "audio";
|
|
80
81
|
const _bS = "backgroundSound";
|
|
81
82
|
const _c = "client";
|
|
@@ -118,6 +119,7 @@ const _in = "interruptible";
|
|
|
118
119
|
const _l = "language";
|
|
119
120
|
const _la = "languages";
|
|
120
121
|
const _m = "message";
|
|
122
|
+
const _mT = "mediaType";
|
|
121
123
|
const _n = "name";
|
|
122
124
|
const _o = "options";
|
|
123
125
|
const _oA = "outputAudio";
|
|
@@ -187,10 +189,10 @@ exports.errorTypeRegistries = [
|
|
|
187
189
|
_s_registry,
|
|
188
190
|
n0_registry,
|
|
189
191
|
];
|
|
190
|
-
var
|
|
192
|
+
var Mp3Audio = [0, n1, _MA, { [_mT]: _a }, 21];
|
|
191
193
|
exports.VoicePronunciation$ = [3, n2, _VP,
|
|
192
194
|
0,
|
|
193
|
-
[_p,
|
|
195
|
+
[_p, _as, _en],
|
|
194
196
|
[0, 0, 0], 2
|
|
195
197
|
];
|
|
196
198
|
exports.AudioEvent$ = [3, n1, _AE,
|
|
@@ -261,7 +263,7 @@ exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
|
261
263
|
exports.ListVoicesInput$ = [3, n1, _LVI,
|
|
262
264
|
0,
|
|
263
265
|
[_pr, _l, _sea, _cr],
|
|
264
|
-
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [
|
|
266
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
|
|
265
267
|
];
|
|
266
268
|
exports.ListVoicesOutput$ = [3, n1, _LVO,
|
|
267
269
|
0,
|
|
@@ -401,7 +403,7 @@ exports.TextToSpeechInput$ = [3, n1, _TTSI,
|
|
|
401
403
|
exports.TextToSpeechOutput$ = [3, n1, _TTSO,
|
|
402
404
|
0,
|
|
403
405
|
[_au],
|
|
404
|
-
[[
|
|
406
|
+
[[() => Mp3Audio, 16]], 1
|
|
405
407
|
];
|
|
406
408
|
exports.TranscriptionEvent$ = [3, n1, _TE,
|
|
407
409
|
0,
|
|
@@ -16,6 +16,7 @@ const _IWE = "InterruptionWebsocketEvent";
|
|
|
16
16
|
const _LV = "ListVoices";
|
|
17
17
|
const _LVI = "ListVoicesInput";
|
|
18
18
|
const _LVO = "ListVoicesOutput";
|
|
19
|
+
const _MA = "Mp3Audio";
|
|
19
20
|
const _NFE = "NotFoundException";
|
|
20
21
|
const _PCD = "PlayCommandData";
|
|
21
22
|
const _PE = "PlaybackEvent";
|
|
@@ -23,7 +24,6 @@ const _PWC = "PlayWebsocketCommand";
|
|
|
23
24
|
const _PWE = "PlaybackWebsocketEvent";
|
|
24
25
|
const _RE = "ReplyEvent";
|
|
25
26
|
const _RWE = "ReplyWebsocketEvent";
|
|
26
|
-
const _SC = "SpeechCredential";
|
|
27
27
|
const _SCAO = "SayCommandAudioOptions";
|
|
28
28
|
const _SCD = "SayCommandData";
|
|
29
29
|
const _SCDt = "StopCommandData";
|
|
@@ -64,7 +64,7 @@ const _VL = "VoiceList";
|
|
|
64
64
|
const _VP = "VoicePronunciation";
|
|
65
65
|
const _VPL = "VoicePronunciationList";
|
|
66
66
|
const _VSP = "VoiceSpeechPayload";
|
|
67
|
-
const _a = "
|
|
67
|
+
const _a = "audio/mpeg";
|
|
68
68
|
const _aD = "agentDraft";
|
|
69
69
|
const _aDu = "autoDetect";
|
|
70
70
|
const _aI = "agentId";
|
|
@@ -72,6 +72,7 @@ const _aN = "agentName";
|
|
|
72
72
|
const _aV = "agentVersion";
|
|
73
73
|
const _aWE = "audioWebsocketEvent";
|
|
74
74
|
const _ac = "action";
|
|
75
|
+
const _as = "as";
|
|
75
76
|
const _au = "audio";
|
|
76
77
|
const _bS = "backgroundSound";
|
|
77
78
|
const _c = "client";
|
|
@@ -114,6 +115,7 @@ const _in = "interruptible";
|
|
|
114
115
|
const _l = "language";
|
|
115
116
|
const _la = "languages";
|
|
116
117
|
const _m = "message";
|
|
118
|
+
const _mT = "mediaType";
|
|
117
119
|
const _n = "name";
|
|
118
120
|
const _o = "options";
|
|
119
121
|
const _oA = "outputAudio";
|
|
@@ -183,10 +185,10 @@ export const errorTypeRegistries = [
|
|
|
183
185
|
_s_registry,
|
|
184
186
|
n0_registry,
|
|
185
187
|
];
|
|
186
|
-
var
|
|
188
|
+
var Mp3Audio = [0, n1, _MA, { [_mT]: _a }, 21];
|
|
187
189
|
export var VoicePronunciation$ = [3, n2, _VP,
|
|
188
190
|
0,
|
|
189
|
-
[_p,
|
|
191
|
+
[_p, _as, _en],
|
|
190
192
|
[0, 0, 0], 2
|
|
191
193
|
];
|
|
192
194
|
export var AudioEvent$ = [3, n1, _AE,
|
|
@@ -257,7 +259,7 @@ export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
|
257
259
|
export var ListVoicesInput$ = [3, n1, _LVI,
|
|
258
260
|
0,
|
|
259
261
|
[_pr, _l, _sea, _cr],
|
|
260
|
-
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [
|
|
262
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
|
|
261
263
|
];
|
|
262
264
|
export var ListVoicesOutput$ = [3, n1, _LVO,
|
|
263
265
|
0,
|
|
@@ -397,7 +399,7 @@ export var TextToSpeechInput$ = [3, n1, _TTSI,
|
|
|
397
399
|
export var TextToSpeechOutput$ = [3, n1, _TTSO,
|
|
398
400
|
0,
|
|
399
401
|
[_au],
|
|
400
|
-
[[
|
|
402
|
+
[[() => Mp3Audio, 16]], 1
|
|
401
403
|
];
|
|
402
404
|
export var TranscriptionEvent$ = [3, n1, _TE,
|
|
403
405
|
0,
|
|
@@ -813,20 +813,16 @@ export interface ListVoicesInput {
|
|
|
813
813
|
language?: string | undefined;
|
|
814
814
|
search?: string | undefined;
|
|
815
815
|
/**
|
|
816
|
-
*
|
|
817
|
-
*
|
|
816
|
+
* A reference to the company's own provider credential, so the picker lists that account's
|
|
817
|
+
* voices including cloned ones. Absent means the platform key.
|
|
818
818
|
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
819
|
+
* `secrets:\{secretId\}` ONLY, resolved under the CALLER's company — an id that does not resolve
|
|
820
|
+
* there is rejected. There is no form of this member that carries a key, which is what keeps a
|
|
821
|
+
* provider credential out of a URL on this stack: every one of them lives in `wilma-secrets`,
|
|
822
|
+
* and a reference in a query string is not a secret.
|
|
823
823
|
*
|
|
824
|
-
* A
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
* A PLAIN KEY HERE IS IN A URL. `@sensitive` keeps it out of the generated clients' and servers'
|
|
828
|
-
* log filters, but it cannot keep it out of an access log, a proxy or a browser history, and the
|
|
829
|
-
* service must not put it in a cache identity. Send a reference wherever one exists.
|
|
824
|
+
* A stored voice URI says the same thing the same way: its `apiKey` parameter is a reference,
|
|
825
|
+
* and `validateSpeech` refuses a literal key in one.
|
|
830
826
|
* @public
|
|
831
827
|
*/
|
|
832
828
|
credential?: string | undefined;
|
|
@@ -1007,7 +1003,7 @@ export interface TextToSpeechInput {
|
|
|
1007
1003
|
*/
|
|
1008
1004
|
export interface TextToSpeechOutput {
|
|
1009
1005
|
/**
|
|
1010
|
-
*
|
|
1006
|
+
* The call path streams raw PCM to the PBX; this returns MP3 so a browser <audio> element plays it with no client-side decoding.
|
|
1011
1007
|
* @public
|
|
1012
1008
|
*/
|
|
1013
1009
|
audio: Uint8Array;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-voice-client",
|
|
3
3
|
"description": "@wildix/wilma-voice-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|