@genpact/genome.mfe.mgtwin-app 1.1.364-alpha → 1.1.365-alpha
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/{AssessmentAMA-486d40a8.mjs → AssessmentAMA-51bdd271.mjs} +4 -4
- package/dist/{AssessmentSimulation-f29f9906.mjs → AssessmentSimulation-0120eaf3.mjs} +7 -7
- package/dist/{EditSkillAdminData-222facf2.mjs → EditSkillAdminData-02c9dc79.mjs} +2 -2
- package/dist/{EditSkillData-bfebf561.mjs → EditSkillData-7819fa7c.mjs} +2 -2
- package/dist/{HomeView-9daffc2b.mjs → HomeView-964eb1f5.mjs} +5 -5
- package/dist/{Loading-952e5412.mjs → Loading-ecf9990b.mjs} +1 -1
- package/dist/{LoadingSimulation-746550b0.mjs → LoadingSimulation-af8075c2.mjs} +1 -1
- package/dist/{Modal-022ef114.mjs → Modal-ce68671d.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-7a146b17.mjs → PaperAirplaneIcon-fd88758e.mjs} +1 -1
- package/dist/{PromptTesting-d35cb340.mjs → PromptTesting-6bb531d9.mjs} +3 -3
- package/dist/{SkillAutomation-4a5d9aa2.mjs → SkillAutomation-a889952f.mjs} +3 -3
- package/dist/{SkillData-5581c97c.mjs → SkillData-2e46b518.mjs} +3 -3
- package/dist/{Testcase-391da279.mjs → Testcase-335cadd5.mjs} +3 -3
- package/dist/{UnderMaintenance-7ac2655c.mjs → UnderMaintenance-65699b88.mjs} +1 -1
- package/dist/{VoiceTestcase-90a6f10e.mjs → VoiceTestcase-e972d949.mjs} +3 -3
- package/dist/{XMarkIcon-ce1e65f3.mjs → XMarkIcon-40701ce5.mjs} +1 -1
- package/dist/{api-375070d0.mjs → api-cc68977d.mjs} +1 -1
- package/dist/{index.es-9122da2c.mjs → index.es-a4f67388.mjs} +7 -7
- package/dist/{main-efbcd1c1.mjs → main-9a7a01bb.mjs} +227 -227
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +41 -41
- package/dist/{voiceServices-c9cedb3b.mjs → voiceServices-283a0bfd.mjs} +596 -595
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var ih = Object.defineProperty;
|
|
2
2
|
var sh = (t, e, r) => e in t ? ih(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var ie = (t, e, r) => (sh(t, typeof e != "symbol" ? e + "" : e, r), r),
|
|
3
|
+
var ie = (t, e, r) => (sh(t, typeof e != "symbol" ? e + "" : e, r), r), To = (t, e, r) => {
|
|
4
4
|
if (!e.has(t))
|
|
5
5
|
throw TypeError("Cannot " + r);
|
|
6
6
|
};
|
|
7
|
-
var D = (t, e, r) => (
|
|
7
|
+
var D = (t, e, r) => (To(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ze = (t, e, r) => {
|
|
8
8
|
if (e.has(t))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
11
|
-
}, jt = (t, e, r, i) => (
|
|
12
|
-
import { r as De, k as op, u as ap, C as cp, q as wn } from "./main-
|
|
13
|
-
import { g as pp } from "./api-
|
|
11
|
+
}, jt = (t, e, r, i) => (To(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r);
|
|
12
|
+
import { r as De, k as op, u as ap, C as cp, q as wn } from "./main-9a7a01bb.mjs";
|
|
13
|
+
import { g as pp } from "./api-cc68977d.mjs";
|
|
14
14
|
import { c as N, a as oh } from "./_commonjsHelpers-92157f1b.mjs";
|
|
15
|
-
const vS = De(""),
|
|
15
|
+
const vS = De(""), Ao = op(), ft = ap(), _e = De(!1), ah = "Xb7hH8MSUJpSbSDYk0k2", ch = De("");
|
|
16
16
|
let Fn = [];
|
|
17
17
|
const up = De(!1);
|
|
18
18
|
let yt = !1, ae = null, Ue = null, ge = null, dt, ht, Kn, At;
|
|
@@ -27,9 +27,9 @@ const dp = async () => {
|
|
|
27
27
|
} catch (p) {
|
|
28
28
|
if (console.error(p), wn.isAxiosError(p)) {
|
|
29
29
|
const a = p;
|
|
30
|
-
console.log("Error found!"), console.error((r = a.response) == null ? void 0 : r.data),
|
|
30
|
+
console.log("Error found!"), console.error((r = a.response) == null ? void 0 : r.data), Ao.setError(((i = a.response) == null ? void 0 : i.data).message);
|
|
31
31
|
} else
|
|
32
|
-
|
|
32
|
+
Ao.setError("There was an issue while fetching data");
|
|
33
33
|
}
|
|
34
34
|
}, ph = () => {
|
|
35
35
|
At && At.disconnect(), ht && ht.disconnect(), Kn && Kn.disconnect(), dt && dt.close(), ge && ge.state === "recording" && ge.stop(), Ue && (Ue.getTracks().forEach((t) => t.stop()), Ue = null), _e.value = !1;
|
|
@@ -40,7 +40,7 @@ const dp = async () => {
|
|
|
40
40
|
const i = r.reduce((p, a) => p + a) / r.length;
|
|
41
41
|
console.log("Average volume:", i), console.log("threshold * 100:", e * 100), i > e * 100 && (t(), console.log("onInterrupt", t), ph());
|
|
42
42
|
};
|
|
43
|
-
},
|
|
43
|
+
}, wo = async () => {
|
|
44
44
|
up.value = !0, _e.value = !0, console.log("Starting voice recognition with ElevenLabs"), ae && ae.pause(), Ue = await navigator.mediaDevices.getUserMedia({ audio: !0 }), await hp();
|
|
45
45
|
}, hp = async () => {
|
|
46
46
|
if (!Ue)
|
|
@@ -93,9 +93,9 @@ const dp = async () => {
|
|
|
93
93
|
})).blob(), i = URL.createObjectURL(r);
|
|
94
94
|
return ae = new Audio(i), new Promise((p) => {
|
|
95
95
|
ae && (ae.onended = async () => {
|
|
96
|
-
yt = !1, console.log("Audio is playing:", yt), _e.value ? (console.log("micEnabled before calling startrecognition:", _e.value), p(await
|
|
96
|
+
yt = !1, console.log("Audio is playing:", yt), _e.value ? (console.log("micEnabled before calling startrecognition:", _e.value), p(await wo())) : p();
|
|
97
97
|
}, ae.play(), console.log("Audio is playing:", yt), console.log("micEnabled:", _e.value), _e.value && uh(() => {
|
|
98
|
-
ae && (ae.pause(), ae.currentTime = 0), yt = !1, console.log("monitorMicDuringTTS:", yt), console.log("micEnabled before calling startrecognition:", _e.value),
|
|
98
|
+
ae && (ae.pause(), ae.currentTime = 0), yt = !1, console.log("monitorMicDuringTTS:", yt), console.log("micEnabled before calling startrecognition:", _e.value), wo();
|
|
99
99
|
}));
|
|
100
100
|
});
|
|
101
101
|
};
|
|
@@ -343,10 +343,10 @@ class gh {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
de = new WeakMap(), Fe = new WeakMap(), we = new WeakMap(), lt = new WeakMap(), vt = new WeakMap(), Qn = new WeakMap(), oe = new WeakMap();
|
|
346
|
-
var
|
|
346
|
+
var _o;
|
|
347
347
|
(function(t) {
|
|
348
348
|
t.MEMFS = "MEMFS", t.NODEFS = "NODEFS", t.NODERAWFS = "NODERAWFS", t.IDBFS = "IDBFS", t.WORKERFS = "WORKERFS", t.PROXYFS = "PROXYFS";
|
|
349
|
-
})(
|
|
349
|
+
})(_o || (_o = {}));
|
|
350
350
|
const mh = new Error("failed to get response body reader"), Sh = new Error("failed to complete download"), Ch = "Content-Length", yh = (t) => new Promise((e, r) => {
|
|
351
351
|
const i = new FileReader();
|
|
352
352
|
i.onload = () => {
|
|
@@ -402,11 +402,11 @@ const mh = new Error("failed to get response body reader"), Sh = new Error("fail
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
return i;
|
|
405
|
-
},
|
|
405
|
+
}, vs = async (t, e, r = !1, i) => {
|
|
406
406
|
const p = r ? await Ph(t, i) : await (await fetch(t)).arrayBuffer(), a = new Blob([p], { type: e });
|
|
407
407
|
return URL.createObjectURL(a);
|
|
408
408
|
};
|
|
409
|
-
var Re = {},
|
|
409
|
+
var Re = {}, fs = {}, Xn = {}, gs = {}, F = {}, Dt = {}, fe = {}, lp = {}, Zn = {}, Yn = {};
|
|
410
410
|
Object.defineProperty(Yn, "__esModule", {
|
|
411
411
|
value: !0
|
|
412
412
|
});
|
|
@@ -469,21 +469,21 @@ var Nh = jh(Yn), zh = $e;
|
|
|
469
469
|
function jh(t) {
|
|
470
470
|
return t && t.__esModule ? t : { default: t };
|
|
471
471
|
}
|
|
472
|
-
let
|
|
472
|
+
let bo, ms, Ss = 0, Cs = 0;
|
|
473
473
|
function Lh(t, e, r) {
|
|
474
474
|
let i = e && r || 0;
|
|
475
475
|
const p = e || new Array(16);
|
|
476
476
|
t = t || {};
|
|
477
|
-
let a = t.node ||
|
|
477
|
+
let a = t.node || bo, s = t.clockseq !== void 0 ? t.clockseq : ms;
|
|
478
478
|
if (a == null || s == null) {
|
|
479
479
|
const h = t.random || (t.rng || Nh.default)();
|
|
480
|
-
a == null && (a =
|
|
480
|
+
a == null && (a = bo = [h[0] | 1, h[1], h[2], h[3], h[4], h[5]]), s == null && (s = ms = (h[6] << 8 | h[7]) & 16383);
|
|
481
481
|
}
|
|
482
|
-
let n = t.msecs !== void 0 ? t.msecs : Date.now(), o = t.nsecs !== void 0 ? t.nsecs :
|
|
483
|
-
const c = n -
|
|
484
|
-
if (c < 0 && t.clockseq === void 0 && (s = s + 1 & 16383), (c < 0 || n >
|
|
482
|
+
let n = t.msecs !== void 0 ? t.msecs : Date.now(), o = t.nsecs !== void 0 ? t.nsecs : Cs + 1;
|
|
483
|
+
const c = n - Ss + (o - Cs) / 1e4;
|
|
484
|
+
if (c < 0 && t.clockseq === void 0 && (s = s + 1 & 16383), (c < 0 || n > Ss) && t.nsecs === void 0 && (o = 0), o >= 1e4)
|
|
485
485
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
486
|
-
|
|
486
|
+
Ss = n, Cs = o, ms = s, n += 122192928e5;
|
|
487
487
|
const u = ((n & 268435455) * 1e4 + o) % 4294967296;
|
|
488
488
|
p[i++] = u >>> 24 & 255, p[i++] = u >>> 16 & 255, p[i++] = u >>> 8 & 255, p[i++] = u & 255;
|
|
489
489
|
const d = n / 4294967296 * 1e4 & 268435455;
|
|
@@ -643,13 +643,13 @@ Object.defineProperty(ii, "__esModule", {
|
|
|
643
643
|
value: !0
|
|
644
644
|
});
|
|
645
645
|
ii.default = void 0;
|
|
646
|
-
var
|
|
646
|
+
var Mo = Cp(si), ol = Cp(Yn), al = $e;
|
|
647
647
|
function Cp(t) {
|
|
648
648
|
return t && t.__esModule ? t : { default: t };
|
|
649
649
|
}
|
|
650
650
|
function cl(t, e, r) {
|
|
651
|
-
if (
|
|
652
|
-
return
|
|
651
|
+
if (Mo.default.randomUUID && !e && !t)
|
|
652
|
+
return Mo.default.randomUUID();
|
|
653
653
|
t = t || {};
|
|
654
654
|
const i = t.random || (t.rng || ol.default)();
|
|
655
655
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, e) {
|
|
@@ -679,7 +679,7 @@ function ul(t, e, r, i) {
|
|
|
679
679
|
return e ^ r ^ i;
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function ys(t, e) {
|
|
683
683
|
return t << e | t >>> 32 - e;
|
|
684
684
|
}
|
|
685
685
|
function dl(t) {
|
|
@@ -705,11 +705,11 @@ function dl(t) {
|
|
|
705
705
|
for (let l = 0; l < 16; ++l)
|
|
706
706
|
n[l] = a[s][l];
|
|
707
707
|
for (let l = 16; l < 80; ++l)
|
|
708
|
-
n[l] =
|
|
708
|
+
n[l] = ys(n[l - 3] ^ n[l - 8] ^ n[l - 14] ^ n[l - 16], 1);
|
|
709
709
|
let o = r[0], c = r[1], u = r[2], d = r[3], h = r[4];
|
|
710
710
|
for (let l = 0; l < 80; ++l) {
|
|
711
|
-
const f = Math.floor(l / 20), g =
|
|
712
|
-
h = d, d = u, u =
|
|
711
|
+
const f = Math.floor(l / 20), g = ys(o, 5) + ul(f, c, u, d) + h + e[f] + n[l] >>> 0;
|
|
712
|
+
h = d, d = u, u = ys(c, 30) >>> 0, c = o, o = g;
|
|
713
713
|
}
|
|
714
714
|
r[0] = r[0] + o >>> 0, r[1] = r[1] + c >>> 0, r[2] = r[2] + u >>> 0, r[3] = r[3] + d >>> 0, r[4] = r[4] + h >>> 0;
|
|
715
715
|
}
|
|
@@ -841,9 +841,9 @@ fe.createNoDashGuid = El;
|
|
|
841
841
|
})(Dt);
|
|
842
842
|
Object.defineProperty(F, "__esModule", { value: !0 });
|
|
843
843
|
F.AudioStreamNodeErrorEvent = F.AudioStreamNodeDetachedEvent = F.AudioStreamNodeAttachedEvent = F.AudioStreamNodeAttachingEvent = F.AudioStreamNodeEvent = F.AudioSourceErrorEvent = F.AudioSourceOffEvent = F.AudioSourceReadyEvent = F.AudioSourceInitializingEvent = F.AudioSourceEvent = void 0;
|
|
844
|
-
const
|
|
845
|
-
class kt extends
|
|
846
|
-
constructor(e, r, i =
|
|
844
|
+
const Bs = Dt;
|
|
845
|
+
class kt extends Bs.PlatformEvent {
|
|
846
|
+
constructor(e, r, i = Bs.EventType.Info) {
|
|
847
847
|
super(e, i), this.privAudioSourceId = r;
|
|
848
848
|
}
|
|
849
849
|
get audioSourceId() {
|
|
@@ -871,7 +871,7 @@ class Al extends kt {
|
|
|
871
871
|
F.AudioSourceOffEvent = Al;
|
|
872
872
|
class wl extends kt {
|
|
873
873
|
constructor(e, r) {
|
|
874
|
-
super("AudioSourceErrorEvent", e,
|
|
874
|
+
super("AudioSourceErrorEvent", e, Bs.EventType.Error), this.privError = r;
|
|
875
875
|
}
|
|
876
876
|
get error() {
|
|
877
877
|
return this.privError;
|
|
@@ -1029,7 +1029,7 @@ class Fl extends ke {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
x.ConnectionRedirectEvent = Fl;
|
|
1032
|
-
var
|
|
1032
|
+
var $s = {}, J = {};
|
|
1033
1033
|
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
1034
1034
|
J.ObjectDisposedError = J.InvalidOperationError = J.ArgumentNullError = void 0;
|
|
1035
1035
|
class xl extends Error {
|
|
@@ -1117,7 +1117,7 @@ J.ObjectDisposedError = Wl;
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
t.ConnectionMessage = p;
|
|
1120
|
-
})(
|
|
1120
|
+
})($s);
|
|
1121
1121
|
var ui = {};
|
|
1122
1122
|
Object.defineProperty(ui, "__esModule", { value: !0 });
|
|
1123
1123
|
ui.ConnectionOpenResponse = void 0;
|
|
@@ -1160,9 +1160,9 @@ di.DeferralMap = Hl;
|
|
|
1160
1160
|
var gt = {};
|
|
1161
1161
|
Object.defineProperty(gt, "__esModule", { value: !0 });
|
|
1162
1162
|
gt.SendingAgentContextMessageEvent = gt.DialogEvent = void 0;
|
|
1163
|
-
const
|
|
1164
|
-
class Pp extends
|
|
1165
|
-
constructor(e, r =
|
|
1163
|
+
const Oo = Dt;
|
|
1164
|
+
class Pp extends Oo.PlatformEvent {
|
|
1165
|
+
constructor(e, r = Oo.EventType.Info) {
|
|
1166
1166
|
super(e, r);
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
@@ -1389,7 +1389,7 @@ class Le {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
1391
|
On.List = Le;
|
|
1392
|
-
var
|
|
1392
|
+
var Ks = {};
|
|
1393
1393
|
(function(t) {
|
|
1394
1394
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.marshalPromiseToCallbacks = t.Sink = t.Deferred = t.PromiseResultEventSource = t.PromiseResult = t.PromiseState = void 0;
|
|
1395
1395
|
var e;
|
|
@@ -1524,18 +1524,18 @@ var Hs = {};
|
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
1526
|
t.marshalPromiseToCallbacks = s;
|
|
1527
|
-
})(
|
|
1527
|
+
})(Ks);
|
|
1528
1528
|
var Dn = {};
|
|
1529
1529
|
Object.defineProperty(Dn, "__esModule", { value: !0 });
|
|
1530
1530
|
Dn.Queue = void 0;
|
|
1531
|
-
const
|
|
1531
|
+
const Rs = J, Ps = On, Do = Ks;
|
|
1532
1532
|
var En;
|
|
1533
1533
|
(function(t) {
|
|
1534
1534
|
t[t.Dequeue = 0] = "Dequeue", t[t.Peek = 1] = "Peek";
|
|
1535
1535
|
})(En || (En = {}));
|
|
1536
1536
|
class Yl {
|
|
1537
1537
|
constructor(e) {
|
|
1538
|
-
this.privPromiseStore = new
|
|
1538
|
+
this.privPromiseStore = new Ps.List(), this.privIsDrainInProgress = !1, this.privIsDisposing = !1, this.privDisposeReason = null, this.privList = e || new Ps.List(), this.privDetachables = [], this.privSubscribers = new Ps.List(), this.privDetachables.push(this.privList.onAdded(() => this.drain()));
|
|
1539
1539
|
}
|
|
1540
1540
|
enqueue(e) {
|
|
1541
1541
|
this.throwIfDispose(), this.enqueueFromPromise(new Promise((r) => r(e)));
|
|
@@ -1548,12 +1548,12 @@ class Yl {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
dequeue() {
|
|
1550
1550
|
this.throwIfDispose();
|
|
1551
|
-
const e = new
|
|
1551
|
+
const e = new Do.Deferred();
|
|
1552
1552
|
return this.privSubscribers && (this.privSubscribers.add({ deferral: e, type: En.Dequeue }), this.drain()), e.promise;
|
|
1553
1553
|
}
|
|
1554
1554
|
peek() {
|
|
1555
1555
|
this.throwIfDispose();
|
|
1556
|
-
const e = new
|
|
1556
|
+
const e = new Do.Deferred();
|
|
1557
1557
|
return this.privSubscribers && (this.privSubscribers.add({ deferral: e, type: En.Peek }), this.drain()), e.promise;
|
|
1558
1558
|
}
|
|
1559
1559
|
length() {
|
|
@@ -1610,16 +1610,16 @@ class Yl {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
throwIfDispose() {
|
|
1612
1612
|
if (this.isDisposed())
|
|
1613
|
-
throw this.privDisposeReason ? new
|
|
1613
|
+
throw this.privDisposeReason ? new Rs.InvalidOperationError(this.privDisposeReason) : new Rs.ObjectDisposedError("Queue");
|
|
1614
1614
|
if (this.privIsDisposing)
|
|
1615
|
-
throw new
|
|
1615
|
+
throw new Rs.InvalidOperationError("Queue disposing");
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
Dn.Queue = Yl;
|
|
1619
1619
|
var li = {};
|
|
1620
1620
|
Object.defineProperty(li, "__esModule", { value: !0 });
|
|
1621
1621
|
li.RawWebsocketMessage = void 0;
|
|
1622
|
-
const Un =
|
|
1622
|
+
const Un = $s, Lt = J, ev = fe;
|
|
1623
1623
|
class tv {
|
|
1624
1624
|
constructor(e, r, i) {
|
|
1625
1625
|
if (this.privPayload = null, !r)
|
|
@@ -1696,10 +1696,10 @@ vi.RiffPcmEncoder = rv;
|
|
|
1696
1696
|
var fi = {};
|
|
1697
1697
|
Object.defineProperty(fi, "__esModule", { value: !0 });
|
|
1698
1698
|
fi.Stream = void 0;
|
|
1699
|
-
const
|
|
1699
|
+
const ko = J, nv = fe, No = Dn;
|
|
1700
1700
|
class iv {
|
|
1701
1701
|
constructor(e) {
|
|
1702
|
-
this.privIsWriteEnded = !1, this.privIsReadEnded = !1, this.privId = e || (0, nv.createNoDashGuid)(), this.privReaderQueue = new
|
|
1702
|
+
this.privIsWriteEnded = !1, this.privIsReadEnded = !1, this.privId = e || (0, nv.createNoDashGuid)(), this.privReaderQueue = new No.Queue();
|
|
1703
1703
|
}
|
|
1704
1704
|
get isClosed() {
|
|
1705
1705
|
return this.privIsWriteEnded;
|
|
@@ -1726,15 +1726,15 @@ class iv {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
read() {
|
|
1728
1728
|
if (this.privIsReadEnded)
|
|
1729
|
-
throw new
|
|
1729
|
+
throw new ko.InvalidOperationError("Stream read has already finished");
|
|
1730
1730
|
return this.privReaderQueue.dequeue().then(async (e) => ((e === void 0 || e.isEnd) && await this.privReaderQueue.dispose("End of stream reached"), e));
|
|
1731
1731
|
}
|
|
1732
1732
|
readEnded() {
|
|
1733
|
-
this.privIsReadEnded || (this.privIsReadEnded = !0, this.privReaderQueue = new
|
|
1733
|
+
this.privIsReadEnded || (this.privIsReadEnded = !0, this.privReaderQueue = new No.Queue());
|
|
1734
1734
|
}
|
|
1735
1735
|
throwIfClosed() {
|
|
1736
1736
|
if (this.privIsWriteEnded)
|
|
1737
|
-
throw new
|
|
1737
|
+
throw new ko.InvalidOperationError("Stream closed");
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
fi.Stream = iv;
|
|
@@ -1744,11 +1744,11 @@ var gi = {};
|
|
|
1744
1744
|
e[e.Success = 0] = "Success", e[e.Error = 1] = "Error";
|
|
1745
1745
|
}(t.TranslationStatus || (t.TranslationStatus = {}));
|
|
1746
1746
|
})(gi);
|
|
1747
|
-
var Bt = {},
|
|
1747
|
+
var Bt = {}, zo;
|
|
1748
1748
|
function sv() {
|
|
1749
|
-
if (
|
|
1749
|
+
if (zo)
|
|
1750
1750
|
return Bt;
|
|
1751
|
-
|
|
1751
|
+
zo = 1, Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.ChunkedArrayBufferStream = void 0;
|
|
1752
1752
|
const t = A();
|
|
1753
1753
|
let e = class extends t.Stream {
|
|
1754
1754
|
constructor(i, p) {
|
|
@@ -1953,11 +1953,11 @@ class Rv extends Q {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
z.OCSPCacheUpdateErrorEvent = Rv;
|
|
1956
|
-
var qt = {},
|
|
1956
|
+
var qt = {}, jo;
|
|
1957
1957
|
function Pv() {
|
|
1958
|
-
if (
|
|
1958
|
+
if (jo)
|
|
1959
1959
|
return qt;
|
|
1960
|
-
|
|
1960
|
+
jo = 1, Object.defineProperty(qt, "__esModule", { value: !0 }), qt.BackgroundEvent = void 0;
|
|
1961
1961
|
const t = A();
|
|
1962
1962
|
class e extends t.PlatformEvent {
|
|
1963
1963
|
constructor(i) {
|
|
@@ -1969,9 +1969,9 @@ function Pv() {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
return qt.BackgroundEvent = e, qt;
|
|
1971
1971
|
}
|
|
1972
|
-
var
|
|
1972
|
+
var Lo;
|
|
1973
1973
|
function A() {
|
|
1974
|
-
return
|
|
1974
|
+
return Lo || (Lo = 1, function(t) {
|
|
1975
1975
|
var e = N && N.__createBinding || (Object.create ? function(p, a, s, n) {
|
|
1976
1976
|
n === void 0 && (n = s), Object.defineProperty(p, n, { enumerable: !0, get: function() {
|
|
1977
1977
|
return a[s];
|
|
@@ -1982,12 +1982,12 @@ function A() {
|
|
|
1982
1982
|
for (var s in p)
|
|
1983
1983
|
s !== "default" && !Object.prototype.hasOwnProperty.call(a, s) && e(a, p, s);
|
|
1984
1984
|
};
|
|
1985
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(F, t), r(x, t), r(
|
|
1985
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(F, t), r(x, t), r($s, t), r(ui, t), r(di, t), r(gt, t), r(J, t), r(hi, t), r(Mn, t), r(fe, t), r(Ep, t), r(Ip, t), r(Tp, t), r(Ap, t), r(wp, t), r(_p, t), r(bp, t), r(Mp, t), r(Op, t), r(Dp, t), r(On, t), r(Dt, t), r(Ks, t), r(Dn, t), r(li, t), r(vi, t), r(fi, t);
|
|
1986
1986
|
var i = gi;
|
|
1987
1987
|
Object.defineProperty(t, "TranslationStatus", { enumerable: !0, get: function() {
|
|
1988
1988
|
return i.TranslationStatus;
|
|
1989
1989
|
} }), r(sv(), t), r(kp, t), r(mi, t), r(z, t), r(Pv(), t);
|
|
1990
|
-
}(
|
|
1990
|
+
}(gs)), gs;
|
|
1991
1991
|
}
|
|
1992
1992
|
var W = {};
|
|
1993
1993
|
Object.defineProperty(W, "__esModule", { value: !0 });
|
|
@@ -2061,20 +2061,20 @@ Xn.CognitiveSubscriptionKeyAuthentication = wv;
|
|
|
2061
2061
|
var Si = {};
|
|
2062
2062
|
Object.defineProperty(Si, "__esModule", { value: !0 });
|
|
2063
2063
|
Si.CognitiveTokenAuthentication = void 0;
|
|
2064
|
-
const
|
|
2064
|
+
const Bo = A(), qo = Nt, Fo = W;
|
|
2065
2065
|
class Tn {
|
|
2066
2066
|
constructor(e, r) {
|
|
2067
2067
|
if (!e)
|
|
2068
|
-
throw new
|
|
2068
|
+
throw new Bo.ArgumentNullError("fetchCallback");
|
|
2069
2069
|
if (!r)
|
|
2070
|
-
throw new
|
|
2070
|
+
throw new Bo.ArgumentNullError("fetchOnExpiryCallback");
|
|
2071
2071
|
this.privFetchCallback = e, this.privFetchOnExpiryCallback = r;
|
|
2072
2072
|
}
|
|
2073
2073
|
fetch(e) {
|
|
2074
|
-
return this.privFetchCallback(e).then((r) => new
|
|
2074
|
+
return this.privFetchCallback(e).then((r) => new qo.AuthInfo(Fo.HeaderNames.Authorization, r === void 0 ? void 0 : Tn.privTokenPrefix + r));
|
|
2075
2075
|
}
|
|
2076
2076
|
fetchOnExpiry(e) {
|
|
2077
|
-
return this.privFetchOnExpiryCallback(e).then((r) => new
|
|
2077
|
+
return this.privFetchOnExpiryCallback(e).then((r) => new qo.AuthInfo(Fo.HeaderNames.Authorization, r === void 0 ? void 0 : Tn.privTokenPrefix + r));
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
2080
|
Si.CognitiveTokenAuthentication = Tn;
|
|
@@ -2083,19 +2083,19 @@ var Np = {};
|
|
|
2083
2083
|
Object.defineProperty(Np, "__esModule", { value: !0 });
|
|
2084
2084
|
var zp = {};
|
|
2085
2085
|
Object.defineProperty(zp, "__esModule", { value: !0 });
|
|
2086
|
-
var Ft = {},
|
|
2086
|
+
var Ft = {}, Es = {}, Ci = {};
|
|
2087
2087
|
const _v = {}, bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2088
2088
|
__proto__: null,
|
|
2089
2089
|
default: _v
|
|
2090
2090
|
}, Symbol.toStringTag, { value: "Module" })), St = /* @__PURE__ */ oh(bv);
|
|
2091
|
-
var
|
|
2091
|
+
var Js = {};
|
|
2092
2092
|
(function(t) {
|
|
2093
2093
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LogLevel = void 0;
|
|
2094
2094
|
const e = A();
|
|
2095
2095
|
Object.defineProperty(t, "LogLevel", { enumerable: !0, get: function() {
|
|
2096
2096
|
return e.EventType;
|
|
2097
2097
|
} });
|
|
2098
|
-
})(
|
|
2098
|
+
})(Js);
|
|
2099
2099
|
var b = {};
|
|
2100
2100
|
Object.defineProperty(b, "__esModule", { value: !0 });
|
|
2101
2101
|
b.Contracts = void 0;
|
|
@@ -2160,13 +2160,13 @@ var Mv = N && N.__createBinding || (Object.create ? function(t, e, r, i) {
|
|
|
2160
2160
|
};
|
|
2161
2161
|
Object.defineProperty(Ci, "__esModule", { value: !0 });
|
|
2162
2162
|
Ci.ConsoleLoggingListener = void 0;
|
|
2163
|
-
const
|
|
2163
|
+
const xo = Dv(St), xt = Js, kv = b;
|
|
2164
2164
|
class Nv {
|
|
2165
2165
|
constructor(e = xt.LogLevel.None) {
|
|
2166
2166
|
this.privLogPath = void 0, this.privEnableConsoleOutput = !0, this.privLogLevelFilter = e;
|
|
2167
2167
|
}
|
|
2168
2168
|
set logPath(e) {
|
|
2169
|
-
kv.Contracts.throwIfNullOrUndefined(
|
|
2169
|
+
kv.Contracts.throwIfNullOrUndefined(xo.openSync, `
|
|
2170
2170
|
File System access not available`), this.privLogPath = e;
|
|
2171
2171
|
}
|
|
2172
2172
|
set enableConsoleOutput(e) {
|
|
@@ -2175,7 +2175,7 @@ File System access not available`), this.privLogPath = e;
|
|
|
2175
2175
|
onEvent(e) {
|
|
2176
2176
|
if (e.eventType >= this.privLogLevelFilter) {
|
|
2177
2177
|
const r = this.toString(e);
|
|
2178
|
-
if (this.logCallback && this.logCallback(r), this.privLogPath &&
|
|
2178
|
+
if (this.logCallback && this.logCallback(r), this.privLogPath && xo.writeFileSync(this.privLogPath, r + `
|
|
2179
2179
|
`, { flag: "a+" }), this.privEnableConsoleOutput)
|
|
2180
2180
|
switch (e.eventType) {
|
|
2181
2181
|
case xt.LogLevel.Debug:
|
|
@@ -2213,7 +2213,7 @@ File System access not available`), this.privLogPath = e;
|
|
|
2213
2213
|
Ci.ConsoleLoggingListener = Nv;
|
|
2214
2214
|
var jp = {};
|
|
2215
2215
|
Object.defineProperty(jp, "__esModule", { value: !0 });
|
|
2216
|
-
var
|
|
2216
|
+
var Is = {}, Ke = {};
|
|
2217
2217
|
(function(t) {
|
|
2218
2218
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.AudioStreamFormatImpl = t.AudioStreamFormat = t.AudioFormatTag = void 0;
|
|
2219
2219
|
var e;
|
|
@@ -2337,9 +2337,9 @@ var Es = {}, Ke = {};
|
|
|
2337
2337
|
}
|
|
2338
2338
|
t.AudioStreamFormatImpl = i;
|
|
2339
2339
|
})(Ke);
|
|
2340
|
-
var
|
|
2340
|
+
var Uo;
|
|
2341
2341
|
function zv() {
|
|
2342
|
-
return
|
|
2342
|
+
return Uo || (Uo = 1, function(t) {
|
|
2343
2343
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MicAudioSource = t.AudioWorkletSourceURLPropertyName = void 0;
|
|
2344
2344
|
const e = T(), r = A(), i = Ke;
|
|
2345
2345
|
t.AudioWorkletSourceURLPropertyName = "MICROPHONE-WorkletSourceUrl";
|
|
@@ -2476,13 +2476,13 @@ function zv() {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
2478
|
t.MicAudioSource = p, p.AUDIOFORMAT = i.AudioStreamFormat.getDefaultInputFormat();
|
|
2479
|
-
}(
|
|
2479
|
+
}(Is)), Is;
|
|
2480
2480
|
}
|
|
2481
|
-
var Ut = {},
|
|
2481
|
+
var Ut = {}, Wo;
|
|
2482
2482
|
function jv() {
|
|
2483
|
-
if (
|
|
2483
|
+
if (Wo)
|
|
2484
2484
|
return Ut;
|
|
2485
|
-
|
|
2485
|
+
Wo = 1, Object.defineProperty(Ut, "__esModule", { value: !0 }), Ut.FileAudioSource = void 0;
|
|
2486
2486
|
const t = T(), e = A(), r = Ke;
|
|
2487
2487
|
let i = class {
|
|
2488
2488
|
constructor(a, s, n) {
|
|
@@ -2716,12 +2716,12 @@ var Ri = {}, kn = {}, qv = N && N.__createBinding || (Object.create ? function(t
|
|
|
2716
2716
|
for (var r in t)
|
|
2717
2717
|
r !== "default" && Object.prototype.hasOwnProperty.call(t, r) && qv(e, t, r);
|
|
2718
2718
|
return Fv(e, t), e;
|
|
2719
|
-
},
|
|
2719
|
+
}, Gs = N && N.__importDefault || function(t) {
|
|
2720
2720
|
return t && t.__esModule ? t : { default: t };
|
|
2721
2721
|
};
|
|
2722
2722
|
Object.defineProperty(kn, "__esModule", { value: !0 });
|
|
2723
2723
|
kn.WebsocketMessageAdapter = void 0;
|
|
2724
|
-
const xv = Lp(St), Uv = Lp(St), Wv =
|
|
2724
|
+
const xv = Lp(St), Uv = Lp(St), Wv = Gs(St), Vv = Gs(St), Hv = Gs(St), $v = W, M = A();
|
|
2725
2725
|
class An {
|
|
2726
2726
|
constructor(e, r, i, p, a, s) {
|
|
2727
2727
|
if (!e)
|
|
@@ -2892,13 +2892,13 @@ kn.WebsocketMessageAdapter = An;
|
|
|
2892
2892
|
An.forceNpmWebSocket = !1;
|
|
2893
2893
|
Object.defineProperty(Ri, "__esModule", { value: !0 });
|
|
2894
2894
|
Ri.WebsocketConnection = void 0;
|
|
2895
|
-
const
|
|
2895
|
+
const Ts = A(), Kv = kn;
|
|
2896
2896
|
class Jv {
|
|
2897
2897
|
constructor(e, r, i, p, a, s = !1, n) {
|
|
2898
2898
|
if (this.privIsDisposed = !1, !e)
|
|
2899
|
-
throw new
|
|
2899
|
+
throw new Ts.ArgumentNullError("uri");
|
|
2900
2900
|
if (!p)
|
|
2901
|
-
throw new
|
|
2901
|
+
throw new Ts.ArgumentNullError("messageFormatter");
|
|
2902
2902
|
this.privMessageFormatter = p;
|
|
2903
2903
|
let o = "", c = 0;
|
|
2904
2904
|
if (r) {
|
|
@@ -2919,7 +2919,7 @@ class Jv {
|
|
|
2919
2919
|
o += `${u}=${d}`, c++;
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
|
-
this.privUri = e + o, this.privId = n || (0,
|
|
2922
|
+
this.privUri = e + o, this.privId = n || (0, Ts.createNoDashGuid)(), this.privConnectionMessageAdapter = new Kv.WebsocketMessageAdapter(this.privUri, this.id, this.privMessageFormatter, a, i, s);
|
|
2923
2923
|
}
|
|
2924
2924
|
async dispose() {
|
|
2925
2925
|
this.privIsDisposed = !0, this.privConnectionMessageAdapter && await this.privConnectionMessageAdapter.close();
|
|
@@ -3020,7 +3020,7 @@ class Qv {
|
|
|
3020
3020
|
this.chunk = e, this.serial = r, this.byteOffset = i;
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
|
-
var Wt = {},
|
|
3023
|
+
var Wt = {}, As = {}, Ee = {}, Nn = {}, Xv = N && N.__createBinding || (Object.create ? function(t, e, r, i) {
|
|
3024
3024
|
i === void 0 && (i = r), Object.defineProperty(t, i, { enumerable: !0, get: function() {
|
|
3025
3025
|
return e[r];
|
|
3026
3026
|
} });
|
|
@@ -3041,19 +3041,19 @@ var Wt = {}, Ts = {}, Ee = {}, Nn = {}, Xv = N && N.__createBinding || (Object.c
|
|
|
3041
3041
|
};
|
|
3042
3042
|
Object.defineProperty(Nn, "__esModule", { value: !0 });
|
|
3043
3043
|
Nn.AudioFileWriter = void 0;
|
|
3044
|
-
const Vt = Yv(St),
|
|
3044
|
+
const Vt = Yv(St), ws = b;
|
|
3045
3045
|
class ef {
|
|
3046
3046
|
constructor(e) {
|
|
3047
|
-
|
|
3047
|
+
ws.Contracts.throwIfNullOrUndefined(Vt.openSync, `
|
|
3048
3048
|
File System access not available, please use Push or PullAudioOutputStream`), this.privFd = Vt.openSync(e, "w");
|
|
3049
3049
|
}
|
|
3050
3050
|
set format(e) {
|
|
3051
|
-
|
|
3051
|
+
ws.Contracts.throwIfNotUndefined(this.privAudioFormat, "format is already set"), this.privAudioFormat = e;
|
|
3052
3052
|
let r = 0;
|
|
3053
3053
|
this.privAudioFormat.hasHeader && (r = this.privAudioFormat.header.byteLength), this.privFd !== void 0 && (this.privWriteStream = Vt.createWriteStream("", { fd: this.privFd, start: r, autoClose: !1 }));
|
|
3054
3054
|
}
|
|
3055
3055
|
write(e) {
|
|
3056
|
-
|
|
3056
|
+
ws.Contracts.throwIfNullOrUndefined(this.privAudioFormat, "must set format before writing."), this.privWriteStream !== void 0 && this.privWriteStream.write(new Uint8Array(e.slice(0)));
|
|
3057
3057
|
}
|
|
3058
3058
|
close() {
|
|
3059
3059
|
this.privFd !== void 0 && (this.privWriteStream.on("finish", () => {
|
|
@@ -3065,11 +3065,11 @@ File System access not available, please use Push or PullAudioOutputStream`), th
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
Nn.AudioFileWriter = ef;
|
|
3068
|
-
var ue = {},
|
|
3068
|
+
var ue = {}, Vo;
|
|
3069
3069
|
function Bp() {
|
|
3070
|
-
if (
|
|
3070
|
+
if (Vo)
|
|
3071
3071
|
return ue;
|
|
3072
|
-
|
|
3072
|
+
Vo = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.PullAudioInputStreamImpl = ue.PullAudioInputStream = ue.PushAudioInputStreamImpl = ue.PushAudioInputStream = ue.AudioInputStream = void 0;
|
|
3073
3073
|
const t = T(), e = A(), r = fe, i = R(), p = Ke;
|
|
3074
3074
|
let a = class {
|
|
3075
3075
|
/**
|
|
@@ -3309,15 +3309,15 @@ function Bp() {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
return ue.PullAudioInputStreamImpl = c, ue;
|
|
3311
3311
|
}
|
|
3312
|
-
var K = {}, Je = {},
|
|
3312
|
+
var K = {}, Je = {}, Qs = {};
|
|
3313
3313
|
(function(t) {
|
|
3314
3314
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SpeechSynthesisOutputFormat = void 0, function(e) {
|
|
3315
3315
|
e[e.Raw8Khz8BitMonoMULaw = 0] = "Raw8Khz8BitMonoMULaw", e[e.Riff16Khz16KbpsMonoSiren = 1] = "Riff16Khz16KbpsMonoSiren", e[e.Audio16Khz16KbpsMonoSiren = 2] = "Audio16Khz16KbpsMonoSiren", e[e.Audio16Khz32KBitRateMonoMp3 = 3] = "Audio16Khz32KBitRateMonoMp3", e[e.Audio16Khz128KBitRateMonoMp3 = 4] = "Audio16Khz128KBitRateMonoMp3", e[e.Audio16Khz64KBitRateMonoMp3 = 5] = "Audio16Khz64KBitRateMonoMp3", e[e.Audio24Khz48KBitRateMonoMp3 = 6] = "Audio24Khz48KBitRateMonoMp3", e[e.Audio24Khz96KBitRateMonoMp3 = 7] = "Audio24Khz96KBitRateMonoMp3", e[e.Audio24Khz160KBitRateMonoMp3 = 8] = "Audio24Khz160KBitRateMonoMp3", e[e.Raw16Khz16BitMonoTrueSilk = 9] = "Raw16Khz16BitMonoTrueSilk", e[e.Riff16Khz16BitMonoPcm = 10] = "Riff16Khz16BitMonoPcm", e[e.Riff8Khz16BitMonoPcm = 11] = "Riff8Khz16BitMonoPcm", e[e.Riff24Khz16BitMonoPcm = 12] = "Riff24Khz16BitMonoPcm", e[e.Riff8Khz8BitMonoMULaw = 13] = "Riff8Khz8BitMonoMULaw", e[e.Raw16Khz16BitMonoPcm = 14] = "Raw16Khz16BitMonoPcm", e[e.Raw24Khz16BitMonoPcm = 15] = "Raw24Khz16BitMonoPcm", e[e.Raw8Khz16BitMonoPcm = 16] = "Raw8Khz16BitMonoPcm", e[e.Ogg16Khz16BitMonoOpus = 17] = "Ogg16Khz16BitMonoOpus", e[e.Ogg24Khz16BitMonoOpus = 18] = "Ogg24Khz16BitMonoOpus", e[e.Raw48Khz16BitMonoPcm = 19] = "Raw48Khz16BitMonoPcm", e[e.Riff48Khz16BitMonoPcm = 20] = "Riff48Khz16BitMonoPcm", e[e.Audio48Khz96KBitRateMonoMp3 = 21] = "Audio48Khz96KBitRateMonoMp3", e[e.Audio48Khz192KBitRateMonoMp3 = 22] = "Audio48Khz192KBitRateMonoMp3", e[e.Ogg48Khz16BitMonoOpus = 23] = "Ogg48Khz16BitMonoOpus", e[e.Webm16Khz16BitMonoOpus = 24] = "Webm16Khz16BitMonoOpus", e[e.Webm24Khz16BitMonoOpus = 25] = "Webm24Khz16BitMonoOpus", e[e.Raw24Khz16BitMonoTrueSilk = 26] = "Raw24Khz16BitMonoTrueSilk", e[e.Raw8Khz8BitMonoALaw = 27] = "Raw8Khz8BitMonoALaw", e[e.Riff8Khz8BitMonoALaw = 28] = "Riff8Khz8BitMonoALaw", e[e.Webm24Khz16Bit24KbpsMonoOpus = 29] = "Webm24Khz16Bit24KbpsMonoOpus", e[e.Audio16Khz16Bit32KbpsMonoOpus = 30] = "Audio16Khz16Bit32KbpsMonoOpus", e[e.Audio24Khz16Bit48KbpsMonoOpus = 31] = "Audio24Khz16Bit48KbpsMonoOpus", e[e.Audio24Khz16Bit24KbpsMonoOpus = 32] = "Audio24Khz16Bit24KbpsMonoOpus", e[e.Raw22050Hz16BitMonoPcm = 33] = "Raw22050Hz16BitMonoPcm", e[e.Riff22050Hz16BitMonoPcm = 34] = "Riff22050Hz16BitMonoPcm", e[e.Raw44100Hz16BitMonoPcm = 35] = "Raw44100Hz16BitMonoPcm", e[e.Riff44100Hz16BitMonoPcm = 36] = "Riff44100Hz16BitMonoPcm", e[e.AmrWb16000Hz = 37] = "AmrWb16000Hz", e[e.G72216Khz64Kbps = 38] = "G72216Khz64Kbps";
|
|
3316
3316
|
}(t.SpeechSynthesisOutputFormat || (t.SpeechSynthesisOutputFormat = {}));
|
|
3317
|
-
})(
|
|
3317
|
+
})(Qs);
|
|
3318
3318
|
Object.defineProperty(Je, "__esModule", { value: !0 });
|
|
3319
3319
|
Je.AudioOutputFormatImpl = void 0;
|
|
3320
|
-
const k =
|
|
3320
|
+
const k = Qs, O = Ke;
|
|
3321
3321
|
class _ extends O.AudioStreamFormatImpl {
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Creates an instance with the given values.
|
|
@@ -3526,8 +3526,8 @@ _.SpeechSynthesisOutputFormatToString = {
|
|
|
3526
3526
|
};
|
|
3527
3527
|
Object.defineProperty(K, "__esModule", { value: !0 });
|
|
3528
3528
|
K.PushAudioOutputStreamImpl = K.PushAudioOutputStream = K.PullAudioOutputStreamImpl = K.PullAudioOutputStream = K.AudioOutputStream = void 0;
|
|
3529
|
-
const
|
|
3530
|
-
class
|
|
3529
|
+
const qs = A(), tf = b, rf = Je;
|
|
3530
|
+
class Xs {
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Creates and initializes an instance.
|
|
3533
3533
|
* @constructor
|
|
@@ -3542,11 +3542,11 @@ class Gs {
|
|
|
3542
3542
|
* @returns {PullAudioOutputStream} The audio output stream being created.
|
|
3543
3543
|
*/
|
|
3544
3544
|
static createPullStream() {
|
|
3545
|
-
return
|
|
3545
|
+
return Zs.create();
|
|
3546
3546
|
}
|
|
3547
3547
|
}
|
|
3548
|
-
K.AudioOutputStream =
|
|
3549
|
-
class
|
|
3548
|
+
K.AudioOutputStream = Xs;
|
|
3549
|
+
class Zs extends Xs {
|
|
3550
3550
|
/**
|
|
3551
3551
|
* Creates a memory backed PullAudioOutputStream with the specified audio format.
|
|
3552
3552
|
* @member PullAudioOutputStream.create
|
|
@@ -3558,14 +3558,14 @@ class Qs extends Gs {
|
|
|
3558
3558
|
return new qp();
|
|
3559
3559
|
}
|
|
3560
3560
|
}
|
|
3561
|
-
K.PullAudioOutputStream =
|
|
3562
|
-
class qp extends
|
|
3561
|
+
K.PullAudioOutputStream = Zs;
|
|
3562
|
+
class qp extends Zs {
|
|
3563
3563
|
/**
|
|
3564
3564
|
* Creates and initializes an instance with the given values.
|
|
3565
3565
|
* @constructor
|
|
3566
3566
|
*/
|
|
3567
3567
|
constructor() {
|
|
3568
|
-
super(), this.privId = (0,
|
|
3568
|
+
super(), this.privId = (0, qs.createNoDashGuid)(), this.privStream = new qs.Stream();
|
|
3569
3569
|
}
|
|
3570
3570
|
/**
|
|
3571
3571
|
* Sets the format information to the stream. For internal use only.
|
|
@@ -3649,7 +3649,7 @@ class qp extends Qs {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
K.PullAudioOutputStreamImpl = qp;
|
|
3652
|
-
class Fp extends
|
|
3652
|
+
class Fp extends Xs {
|
|
3653
3653
|
/**
|
|
3654
3654
|
* Creates and initializes and instance.
|
|
3655
3655
|
* @constructor
|
|
@@ -3681,7 +3681,7 @@ class xp extends Fp {
|
|
|
3681
3681
|
* derived from PushAudioOutputStreamCallback
|
|
3682
3682
|
*/
|
|
3683
3683
|
constructor(e) {
|
|
3684
|
-
super(), this.privId = (0,
|
|
3684
|
+
super(), this.privId = (0, qs.createNoDashGuid)(), this.privCallback = e;
|
|
3685
3685
|
}
|
|
3686
3686
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
3687
3687
|
set format(e) {
|
|
@@ -3697,11 +3697,11 @@ class xp extends Fp {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
K.PushAudioOutputStreamImpl = xp;
|
|
3700
|
-
var
|
|
3700
|
+
var Ho;
|
|
3701
3701
|
function Wp() {
|
|
3702
|
-
if (
|
|
3702
|
+
if (Ho)
|
|
3703
3703
|
return Ee;
|
|
3704
|
-
|
|
3704
|
+
Ho = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.AudioOutputConfigImpl = Ee.AudioConfigImpl = Ee.AudioConfig = void 0;
|
|
3705
3705
|
const t = V(), e = b, r = R(), i = Nn, p = Bp(), a = K;
|
|
3706
3706
|
let s = class Up {
|
|
3707
3707
|
/**
|
|
@@ -3968,7 +3968,7 @@ Ii.PushAudioOutputStreamCallback = sf;
|
|
|
3968
3968
|
var Ti = {};
|
|
3969
3969
|
Object.defineProperty(Ti, "__esModule", { value: !0 });
|
|
3970
3970
|
Ti.KeywordRecognitionModel = void 0;
|
|
3971
|
-
const
|
|
3971
|
+
const $o = b;
|
|
3972
3972
|
class of {
|
|
3973
3973
|
/**
|
|
3974
3974
|
* Create and initializes a new instance.
|
|
@@ -3988,7 +3988,7 @@ class of {
|
|
|
3988
3988
|
* @returns {KeywordRecognitionModel} The keyword recognition model being created.
|
|
3989
3989
|
*/
|
|
3990
3990
|
static fromFile(e) {
|
|
3991
|
-
throw
|
|
3991
|
+
throw $o.Contracts.throwIfFileDoesNotExist(e, "fileName"), new Error("Not yet implemented.");
|
|
3992
3992
|
}
|
|
3993
3993
|
/**
|
|
3994
3994
|
* Creates a keyword recognition model using the specified filename.
|
|
@@ -4000,7 +4000,7 @@ class of {
|
|
|
4000
4000
|
* @returns {KeywordRecognitionModel} The keyword recognition model being created.
|
|
4001
4001
|
*/
|
|
4002
4002
|
static fromStream(e) {
|
|
4003
|
-
throw
|
|
4003
|
+
throw $o.Contracts.throwIfNull(e, "file"), new Error("Not yet implemented.");
|
|
4004
4004
|
}
|
|
4005
4005
|
/**
|
|
4006
4006
|
* Dispose of associated resources.
|
|
@@ -4037,11 +4037,11 @@ class af {
|
|
|
4037
4037
|
}
|
|
4038
4038
|
}
|
|
4039
4039
|
Ai.SessionEventArgs = af;
|
|
4040
|
-
var Ht = {},
|
|
4040
|
+
var Ht = {}, Ko;
|
|
4041
4041
|
function cf() {
|
|
4042
|
-
if (
|
|
4042
|
+
if (Ko)
|
|
4043
4043
|
return Ht;
|
|
4044
|
-
|
|
4044
|
+
Ko = 1, Object.defineProperty(Ht, "__esModule", { value: !0 }), Ht.RecognitionEventArgs = void 0;
|
|
4045
4045
|
const t = R();
|
|
4046
4046
|
let e = class extends t.SessionEventArgs {
|
|
4047
4047
|
/**
|
|
@@ -4071,11 +4071,11 @@ var Hp = {};
|
|
|
4071
4071
|
e[e.Simple = 0] = "Simple", e[e.Detailed = 1] = "Detailed";
|
|
4072
4072
|
}(t.OutputFormat || (t.OutputFormat = {}));
|
|
4073
4073
|
})(Hp);
|
|
4074
|
-
var $t = {},
|
|
4074
|
+
var $t = {}, Jo;
|
|
4075
4075
|
function pf() {
|
|
4076
|
-
if (
|
|
4076
|
+
if (Jo)
|
|
4077
4077
|
return $t;
|
|
4078
|
-
|
|
4078
|
+
Jo = 1, Object.defineProperty($t, "__esModule", { value: !0 }), $t.IntentRecognitionEventArgs = void 0;
|
|
4079
4079
|
const t = R();
|
|
4080
4080
|
let e = class extends t.RecognitionEventArgs {
|
|
4081
4081
|
/**
|
|
@@ -4224,11 +4224,11 @@ class uf {
|
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
4226
4226
|
wi.RecognitionResult = uf;
|
|
4227
|
-
var Kt = {},
|
|
4227
|
+
var Kt = {}, Go;
|
|
4228
4228
|
function df() {
|
|
4229
|
-
if (
|
|
4229
|
+
if (Go)
|
|
4230
4230
|
return Kt;
|
|
4231
|
-
|
|
4231
|
+
Go = 1, Object.defineProperty(Kt, "__esModule", { value: !0 }), Kt.SpeechRecognitionResult = void 0;
|
|
4232
4232
|
const t = R();
|
|
4233
4233
|
let e = class extends t.RecognitionResult {
|
|
4234
4234
|
/**
|
|
@@ -4263,11 +4263,11 @@ function df() {
|
|
|
4263
4263
|
};
|
|
4264
4264
|
return Kt.SpeechRecognitionResult = e, Kt;
|
|
4265
4265
|
}
|
|
4266
|
-
var Jt = {},
|
|
4266
|
+
var Jt = {}, Qo;
|
|
4267
4267
|
function hf() {
|
|
4268
|
-
if (
|
|
4268
|
+
if (Qo)
|
|
4269
4269
|
return Jt;
|
|
4270
|
-
|
|
4270
|
+
Qo = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.IntentRecognitionResult = void 0;
|
|
4271
4271
|
const t = R();
|
|
4272
4272
|
let e = class extends t.SpeechRecognitionResult {
|
|
4273
4273
|
/**
|
|
@@ -4370,11 +4370,11 @@ wt.LanguageUnderstandingModel = $p;
|
|
|
4370
4370
|
class Vn extends $p {
|
|
4371
4371
|
}
|
|
4372
4372
|
wt.LanguageUnderstandingModelImpl = Vn;
|
|
4373
|
-
var Ie = {},
|
|
4373
|
+
var Ie = {}, Xo;
|
|
4374
4374
|
function lf() {
|
|
4375
|
-
if (
|
|
4375
|
+
if (Xo)
|
|
4376
4376
|
return Ie;
|
|
4377
|
-
|
|
4377
|
+
Xo = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.MeetingTranscriptionEventArgs = Ie.ConversationTranscriptionEventArgs = Ie.SpeechRecognitionEventArgs = void 0;
|
|
4378
4378
|
const t = R();
|
|
4379
4379
|
let e = class extends t.RecognitionEventArgs {
|
|
4380
4380
|
/**
|
|
@@ -4426,11 +4426,11 @@ function lf() {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
return Ie.MeetingTranscriptionEventArgs = i, Ie;
|
|
4428
4428
|
}
|
|
4429
|
-
var Gt = {}, Qt = {},
|
|
4429
|
+
var Gt = {}, Qt = {}, Zo;
|
|
4430
4430
|
function zn() {
|
|
4431
|
-
if (
|
|
4431
|
+
if (Zo)
|
|
4432
4432
|
return Qt;
|
|
4433
|
-
|
|
4433
|
+
Zo = 1, Object.defineProperty(Qt, "__esModule", { value: !0 }), Qt.CancellationEventArgsBase = void 0;
|
|
4434
4434
|
const t = R();
|
|
4435
4435
|
let e = class extends t.RecognitionEventArgs {
|
|
4436
4436
|
/**
|
|
@@ -4474,21 +4474,21 @@ function zn() {
|
|
|
4474
4474
|
};
|
|
4475
4475
|
return Qt.CancellationEventArgsBase = e, Qt;
|
|
4476
4476
|
}
|
|
4477
|
-
var
|
|
4477
|
+
var Yo;
|
|
4478
4478
|
function vf() {
|
|
4479
|
-
if (
|
|
4479
|
+
if (Yo)
|
|
4480
4480
|
return Gt;
|
|
4481
|
-
|
|
4481
|
+
Yo = 1, Object.defineProperty(Gt, "__esModule", { value: !0 }), Gt.SpeechRecognitionCanceledEventArgs = void 0;
|
|
4482
4482
|
const t = zn();
|
|
4483
4483
|
let e = class extends t.CancellationEventArgsBase {
|
|
4484
4484
|
};
|
|
4485
4485
|
return Gt.SpeechRecognitionCanceledEventArgs = e, Gt;
|
|
4486
4486
|
}
|
|
4487
|
-
var Xt = {},
|
|
4487
|
+
var Xt = {}, ea;
|
|
4488
4488
|
function ff() {
|
|
4489
|
-
if (
|
|
4489
|
+
if (ea)
|
|
4490
4490
|
return Xt;
|
|
4491
|
-
|
|
4491
|
+
ea = 1, Object.defineProperty(Xt, "__esModule", { value: !0 }), Xt.TranslationRecognitionEventArgs = void 0;
|
|
4492
4492
|
const t = R();
|
|
4493
4493
|
let e = class extends t.RecognitionEventArgs {
|
|
4494
4494
|
/**
|
|
@@ -4514,11 +4514,11 @@ function ff() {
|
|
|
4514
4514
|
};
|
|
4515
4515
|
return Xt.TranslationRecognitionEventArgs = e, Xt;
|
|
4516
4516
|
}
|
|
4517
|
-
var Zt = {},
|
|
4517
|
+
var Zt = {}, ta;
|
|
4518
4518
|
function gf() {
|
|
4519
|
-
if (
|
|
4519
|
+
if (ta)
|
|
4520
4520
|
return Zt;
|
|
4521
|
-
|
|
4521
|
+
ta = 1, Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.TranslationSynthesisEventArgs = void 0;
|
|
4522
4522
|
const t = R();
|
|
4523
4523
|
let e = class extends t.SessionEventArgs {
|
|
4524
4524
|
/**
|
|
@@ -4543,11 +4543,11 @@ function gf() {
|
|
|
4543
4543
|
};
|
|
4544
4544
|
return Zt.TranslationSynthesisEventArgs = e, Zt;
|
|
4545
4545
|
}
|
|
4546
|
-
var Yt = {},
|
|
4546
|
+
var Yt = {}, ra;
|
|
4547
4547
|
function Jp() {
|
|
4548
|
-
if (
|
|
4548
|
+
if (ra)
|
|
4549
4549
|
return Yt;
|
|
4550
|
-
|
|
4550
|
+
ra = 1, Object.defineProperty(Yt, "__esModule", { value: !0 }), Yt.TranslationRecognitionResult = void 0;
|
|
4551
4551
|
const t = R();
|
|
4552
4552
|
let e = class Kp extends t.SpeechRecognitionResult {
|
|
4553
4553
|
/**
|
|
@@ -4628,11 +4628,11 @@ var Gp = {};
|
|
|
4628
4628
|
e[e.NoMatch = 0] = "NoMatch", e[e.Canceled = 1] = "Canceled", e[e.RecognizingSpeech = 2] = "RecognizingSpeech", e[e.RecognizedSpeech = 3] = "RecognizedSpeech", e[e.RecognizedKeyword = 4] = "RecognizedKeyword", e[e.RecognizingIntent = 5] = "RecognizingIntent", e[e.RecognizedIntent = 6] = "RecognizedIntent", e[e.TranslatingSpeech = 7] = "TranslatingSpeech", e[e.TranslatedSpeech = 8] = "TranslatedSpeech", e[e.SynthesizingAudio = 9] = "SynthesizingAudio", e[e.SynthesizingAudioCompleted = 10] = "SynthesizingAudioCompleted", e[e.SynthesizingAudioStarted = 11] = "SynthesizingAudioStarted", e[e.EnrollingVoiceProfile = 12] = "EnrollingVoiceProfile", e[e.EnrolledVoiceProfile = 13] = "EnrolledVoiceProfile", e[e.RecognizedSpeakers = 14] = "RecognizedSpeakers", e[e.RecognizedSpeaker = 15] = "RecognizedSpeaker", e[e.ResetVoiceProfile = 16] = "ResetVoiceProfile", e[e.DeletedVoiceProfile = 17] = "DeletedVoiceProfile", e[e.VoicesListRetrieved = 18] = "VoicesListRetrieved", e[e.TranslatingParticipantSpeech = 19] = "TranslatingParticipantSpeech", e[e.TranslatedParticipantSpeech = 20] = "TranslatedParticipantSpeech", e[e.TranslatedInstantMessage = 21] = "TranslatedInstantMessage", e[e.TranslatedParticipantInstantMessage = 22] = "TranslatedParticipantInstantMessage";
|
|
4629
4629
|
}(t.ResultReason || (t.ResultReason = {}));
|
|
4630
4630
|
})(Gp);
|
|
4631
|
-
var Ge = {},
|
|
4631
|
+
var Ge = {}, na;
|
|
4632
4632
|
function Sf() {
|
|
4633
|
-
if (
|
|
4633
|
+
if (na)
|
|
4634
4634
|
return Ge;
|
|
4635
|
-
|
|
4635
|
+
na = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.SpeechConfigImpl = Ge.SpeechConfig = void 0;
|
|
4636
4636
|
const t = T(), e = b, r = R();
|
|
4637
4637
|
let i = class {
|
|
4638
4638
|
/**
|
|
@@ -4819,11 +4819,11 @@ function Sf() {
|
|
|
4819
4819
|
}
|
|
4820
4820
|
return Ge.SpeechConfigImpl = p, Ge;
|
|
4821
4821
|
}
|
|
4822
|
-
var Qe = {},
|
|
4822
|
+
var Qe = {}, ia;
|
|
4823
4823
|
function Cf() {
|
|
4824
|
-
if (
|
|
4824
|
+
if (ia)
|
|
4825
4825
|
return Qe;
|
|
4826
|
-
|
|
4826
|
+
ia = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.SpeechTranslationConfigImpl = Qe.SpeechTranslationConfig = void 0;
|
|
4827
4827
|
const t = T(), e = b, r = R();
|
|
4828
4828
|
let i = class extends r.SpeechConfig {
|
|
4829
4829
|
/**
|
|
@@ -5117,11 +5117,11 @@ function Cf() {
|
|
|
5117
5117
|
}
|
|
5118
5118
|
return Qe.SpeechTranslationConfigImpl = p, Qe;
|
|
5119
5119
|
}
|
|
5120
|
-
var er = {},
|
|
5120
|
+
var er = {}, sa;
|
|
5121
5121
|
function Xp() {
|
|
5122
|
-
if (
|
|
5122
|
+
if (sa)
|
|
5123
5123
|
return er;
|
|
5124
|
-
|
|
5124
|
+
sa = 1, Object.defineProperty(er, "__esModule", { value: !0 }), er.PropertyCollection = void 0;
|
|
5125
5125
|
const t = R();
|
|
5126
5126
|
let e = class Qp {
|
|
5127
5127
|
constructor() {
|
|
@@ -5213,11 +5213,11 @@ var bi = {};
|
|
|
5213
5213
|
e[e.SpeechServiceConnection_Key = 0] = "SpeechServiceConnection_Key", e[e.SpeechServiceConnection_Endpoint = 1] = "SpeechServiceConnection_Endpoint", e[e.SpeechServiceConnection_Region = 2] = "SpeechServiceConnection_Region", e[e.SpeechServiceAuthorization_Token = 3] = "SpeechServiceAuthorization_Token", e[e.SpeechServiceAuthorization_Type = 4] = "SpeechServiceAuthorization_Type", e[e.SpeechServiceConnection_EndpointId = 5] = "SpeechServiceConnection_EndpointId", e[e.SpeechServiceConnection_TranslationToLanguages = 6] = "SpeechServiceConnection_TranslationToLanguages", e[e.SpeechServiceConnection_TranslationVoice = 7] = "SpeechServiceConnection_TranslationVoice", e[e.SpeechServiceConnection_TranslationFeatures = 8] = "SpeechServiceConnection_TranslationFeatures", e[e.SpeechServiceConnection_TranslationCategoryId = 9] = "SpeechServiceConnection_TranslationCategoryId", e[e.SpeechServiceConnection_IntentRegion = 10] = "SpeechServiceConnection_IntentRegion", e[e.SpeechServiceConnection_ProxyHostName = 11] = "SpeechServiceConnection_ProxyHostName", e[e.SpeechServiceConnection_ProxyPort = 12] = "SpeechServiceConnection_ProxyPort", e[e.SpeechServiceConnection_ProxyUserName = 13] = "SpeechServiceConnection_ProxyUserName", e[e.SpeechServiceConnection_ProxyPassword = 14] = "SpeechServiceConnection_ProxyPassword", e[e.SpeechServiceConnection_RecoMode = 15] = "SpeechServiceConnection_RecoMode", e[e.SpeechServiceConnection_RecoLanguage = 16] = "SpeechServiceConnection_RecoLanguage", e[e.Speech_SessionId = 17] = "Speech_SessionId", e[e.SpeechServiceConnection_SynthLanguage = 18] = "SpeechServiceConnection_SynthLanguage", e[e.SpeechServiceConnection_SynthVoice = 19] = "SpeechServiceConnection_SynthVoice", e[e.SpeechServiceConnection_SynthOutputFormat = 20] = "SpeechServiceConnection_SynthOutputFormat", e[e.SpeechServiceConnection_AutoDetectSourceLanguages = 21] = "SpeechServiceConnection_AutoDetectSourceLanguages", e[e.SpeechServiceResponse_RequestDetailedResultTrueFalse = 22] = "SpeechServiceResponse_RequestDetailedResultTrueFalse", e[e.SpeechServiceResponse_RequestProfanityFilterTrueFalse = 23] = "SpeechServiceResponse_RequestProfanityFilterTrueFalse", e[e.SpeechServiceResponse_JsonResult = 24] = "SpeechServiceResponse_JsonResult", e[e.SpeechServiceResponse_JsonErrorDetails = 25] = "SpeechServiceResponse_JsonErrorDetails", e[e.CancellationDetails_Reason = 26] = "CancellationDetails_Reason", e[e.CancellationDetails_ReasonText = 27] = "CancellationDetails_ReasonText", e[e.CancellationDetails_ReasonDetailedText = 28] = "CancellationDetails_ReasonDetailedText", e[e.LanguageUnderstandingServiceResponse_JsonResult = 29] = "LanguageUnderstandingServiceResponse_JsonResult", e[e.SpeechServiceConnection_Url = 30] = "SpeechServiceConnection_Url", e[e.SpeechServiceConnection_InitialSilenceTimeoutMs = 31] = "SpeechServiceConnection_InitialSilenceTimeoutMs", e[e.SpeechServiceConnection_EndSilenceTimeoutMs = 32] = "SpeechServiceConnection_EndSilenceTimeoutMs", e[e.Speech_SegmentationSilenceTimeoutMs = 33] = "Speech_SegmentationSilenceTimeoutMs", e[e.Speech_SegmentationMaximumTimeMs = 34] = "Speech_SegmentationMaximumTimeMs", e[e.Speech_SegmentationStrategy = 35] = "Speech_SegmentationStrategy", e[e.SpeechServiceConnection_EnableAudioLogging = 36] = "SpeechServiceConnection_EnableAudioLogging", e[e.SpeechServiceConnection_LanguageIdMode = 37] = "SpeechServiceConnection_LanguageIdMode", e[e.SpeechServiceConnection_RecognitionEndpointVersion = 38] = "SpeechServiceConnection_RecognitionEndpointVersion", e[e.SpeechServiceConnection_SpeakerIdMode = 39] = "SpeechServiceConnection_SpeakerIdMode", e[e.SpeechServiceResponse_ProfanityOption = 40] = "SpeechServiceResponse_ProfanityOption", e[e.SpeechServiceResponse_PostProcessingOption = 41] = "SpeechServiceResponse_PostProcessingOption", e[e.SpeechServiceResponse_RequestWordLevelTimestamps = 42] = "SpeechServiceResponse_RequestWordLevelTimestamps", e[e.SpeechServiceResponse_StablePartialResultThreshold = 43] = "SpeechServiceResponse_StablePartialResultThreshold", e[e.SpeechServiceResponse_OutputFormatOption = 44] = "SpeechServiceResponse_OutputFormatOption", e[e.SpeechServiceResponse_TranslationRequestStablePartialResult = 45] = "SpeechServiceResponse_TranslationRequestStablePartialResult", e[e.SpeechServiceResponse_RequestWordBoundary = 46] = "SpeechServiceResponse_RequestWordBoundary", e[e.SpeechServiceResponse_RequestPunctuationBoundary = 47] = "SpeechServiceResponse_RequestPunctuationBoundary", e[e.SpeechServiceResponse_RequestSentenceBoundary = 48] = "SpeechServiceResponse_RequestSentenceBoundary", e[e.SpeechServiceResponse_DiarizeIntermediateResults = 49] = "SpeechServiceResponse_DiarizeIntermediateResults", e[e.Conversation_ApplicationId = 50] = "Conversation_ApplicationId", e[e.Conversation_DialogType = 51] = "Conversation_DialogType", e[e.Conversation_Initial_Silence_Timeout = 52] = "Conversation_Initial_Silence_Timeout", e[e.Conversation_From_Id = 53] = "Conversation_From_Id", e[e.Conversation_Conversation_Id = 54] = "Conversation_Conversation_Id", e[e.Conversation_Custom_Voice_Deployment_Ids = 55] = "Conversation_Custom_Voice_Deployment_Ids", e[e.Conversation_Speech_Activity_Template = 56] = "Conversation_Speech_Activity_Template", e[e.Conversation_Request_Bot_Status_Messages = 57] = "Conversation_Request_Bot_Status_Messages", e[e.Conversation_Agent_Connection_Id = 58] = "Conversation_Agent_Connection_Id", e[e.SpeechServiceConnection_Host = 59] = "SpeechServiceConnection_Host", e[e.ConversationTranslator_Host = 60] = "ConversationTranslator_Host", e[e.ConversationTranslator_Name = 61] = "ConversationTranslator_Name", e[e.ConversationTranslator_CorrelationId = 62] = "ConversationTranslator_CorrelationId", e[e.ConversationTranslator_Token = 63] = "ConversationTranslator_Token", e[e.PronunciationAssessment_ReferenceText = 64] = "PronunciationAssessment_ReferenceText", e[e.PronunciationAssessment_GradingSystem = 65] = "PronunciationAssessment_GradingSystem", e[e.PronunciationAssessment_Granularity = 66] = "PronunciationAssessment_Granularity", e[e.PronunciationAssessment_EnableMiscue = 67] = "PronunciationAssessment_EnableMiscue", e[e.PronunciationAssessment_Json = 68] = "PronunciationAssessment_Json", e[e.PronunciationAssessment_Params = 69] = "PronunciationAssessment_Params", e[e.SpeakerRecognition_Api_Version = 70] = "SpeakerRecognition_Api_Version", e[e.WebWorkerLoadType = 71] = "WebWorkerLoadType", e[e.TalkingAvatarService_WebRTC_SDP = 72] = "TalkingAvatarService_WebRTC_SDP";
|
|
5214
5214
|
}(t.PropertyId || (t.PropertyId = {}));
|
|
5215
5215
|
})(bi);
|
|
5216
|
-
var tr = {},
|
|
5216
|
+
var tr = {}, oa;
|
|
5217
5217
|
function yf() {
|
|
5218
|
-
if (
|
|
5218
|
+
if (oa)
|
|
5219
5219
|
return tr;
|
|
5220
|
-
|
|
5220
|
+
oa = 1, Object.defineProperty(tr, "__esModule", { value: !0 }), tr.Recognizer = void 0;
|
|
5221
5221
|
const t = T(), e = A(), r = b, i = R();
|
|
5222
5222
|
let p = class Zp {
|
|
5223
5223
|
/**
|
|
@@ -5339,11 +5339,11 @@ var rr = {}, he = {};
|
|
|
5339
5339
|
e.Interactive = "Interactive", e.Dictation = "Dictation", e.Conversation = "Conversation", e.None = "None";
|
|
5340
5340
|
}(t.RecognitionMode || (t.RecognitionMode = {}));
|
|
5341
5341
|
})(he);
|
|
5342
|
-
var
|
|
5342
|
+
var aa;
|
|
5343
5343
|
function Rf() {
|
|
5344
|
-
if (
|
|
5344
|
+
if (aa)
|
|
5345
5345
|
return rr;
|
|
5346
|
-
|
|
5346
|
+
aa = 1, Object.defineProperty(rr, "__esModule", { value: !0 }), rr.SpeechRecognizer = void 0;
|
|
5347
5347
|
const t = T(), e = he, r = A(), i = b, p = R();
|
|
5348
5348
|
let a = class Yp extends p.Recognizer {
|
|
5349
5349
|
/**
|
|
@@ -5524,11 +5524,11 @@ function Rf() {
|
|
|
5524
5524
|
};
|
|
5525
5525
|
return rr.SpeechRecognizer = a, rr;
|
|
5526
5526
|
}
|
|
5527
|
-
var nr = {},
|
|
5527
|
+
var nr = {}, ca;
|
|
5528
5528
|
function Pf() {
|
|
5529
|
-
if (
|
|
5529
|
+
if (ca)
|
|
5530
5530
|
return nr;
|
|
5531
|
-
|
|
5531
|
+
ca = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.IntentRecognizer = void 0;
|
|
5532
5532
|
const t = T(), e = he, r = A(), i = b, p = R();
|
|
5533
5533
|
let a = class extends p.Recognizer {
|
|
5534
5534
|
/**
|
|
@@ -5763,11 +5763,11 @@ var eu = {};
|
|
|
5763
5763
|
e[e.TextIndependentIdentification = 0] = "TextIndependentIdentification", e[e.TextDependentVerification = 1] = "TextDependentVerification", e[e.TextIndependentVerification = 2] = "TextIndependentVerification";
|
|
5764
5764
|
}(t.VoiceProfileType || (t.VoiceProfileType = {}));
|
|
5765
5765
|
})(eu);
|
|
5766
|
-
var ir = {}, sr = {}, Xe = {},
|
|
5766
|
+
var ir = {}, sr = {}, Xe = {}, pa;
|
|
5767
5767
|
function tu() {
|
|
5768
|
-
if (
|
|
5768
|
+
if (pa)
|
|
5769
5769
|
return Xe;
|
|
5770
|
-
|
|
5770
|
+
pa = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.ConnectionMessageImpl = Xe.ConnectionMessage = void 0;
|
|
5771
5771
|
const t = W, e = A(), r = Xp(), i = bi;
|
|
5772
5772
|
let p = class {
|
|
5773
5773
|
};
|
|
@@ -5828,20 +5828,20 @@ function tu() {
|
|
|
5828
5828
|
}
|
|
5829
5829
|
return Xe.ConnectionMessageImpl = a, Xe;
|
|
5830
5830
|
}
|
|
5831
|
-
var
|
|
5831
|
+
var ua;
|
|
5832
5832
|
function ru() {
|
|
5833
|
-
if (
|
|
5833
|
+
if (ua)
|
|
5834
5834
|
return sr;
|
|
5835
|
-
|
|
5835
|
+
ua = 1, Object.defineProperty(sr, "__esModule", { value: !0 }), sr.Connection = void 0;
|
|
5836
5836
|
const t = T(), e = A(), r = tu(), i = b, p = R();
|
|
5837
|
-
let a = class
|
|
5837
|
+
let a = class Fs {
|
|
5838
5838
|
/**
|
|
5839
5839
|
* Gets the Connection instance from the specified recognizer.
|
|
5840
5840
|
* @param recognizer The recognizer associated with the connection.
|
|
5841
5841
|
* @return The Connection instance of the recognizer.
|
|
5842
5842
|
*/
|
|
5843
5843
|
static fromRecognizer(n) {
|
|
5844
|
-
const o = n.internalData, c = new
|
|
5844
|
+
const o = n.internalData, c = new Fs();
|
|
5845
5845
|
return c.privInternalData = o, c.setupEvents(), c;
|
|
5846
5846
|
}
|
|
5847
5847
|
/**
|
|
@@ -5850,7 +5850,7 @@ function ru() {
|
|
|
5850
5850
|
* @return The Connection instance of the synthesizer.
|
|
5851
5851
|
*/
|
|
5852
5852
|
static fromSynthesizer(n) {
|
|
5853
|
-
const o = n.internalData, c = new
|
|
5853
|
+
const o = n.internalData, c = new Fs();
|
|
5854
5854
|
return c.privInternalData = o, c.setupEvents(), c;
|
|
5855
5855
|
}
|
|
5856
5856
|
/**
|
|
@@ -5922,11 +5922,11 @@ function ru() {
|
|
|
5922
5922
|
};
|
|
5923
5923
|
return sr.Connection = a, sr;
|
|
5924
5924
|
}
|
|
5925
|
-
var
|
|
5925
|
+
var da;
|
|
5926
5926
|
function Ef() {
|
|
5927
|
-
if (
|
|
5927
|
+
if (da)
|
|
5928
5928
|
return ir;
|
|
5929
|
-
|
|
5929
|
+
da = 1, Object.defineProperty(ir, "__esModule", { value: !0 }), ir.TranslationRecognizer = void 0;
|
|
5930
5930
|
const t = T(), e = he, r = A(), i = ru(), p = b, a = R();
|
|
5931
5931
|
let s = class nu extends a.Recognizer {
|
|
5932
5932
|
/**
|
|
@@ -6116,11 +6116,11 @@ function Ef() {
|
|
|
6116
6116
|
};
|
|
6117
6117
|
return ir.TranslationRecognizer = s, ir;
|
|
6118
6118
|
}
|
|
6119
|
-
var or = {},
|
|
6119
|
+
var or = {}, ha;
|
|
6120
6120
|
function If() {
|
|
6121
|
-
if (
|
|
6121
|
+
if (ha)
|
|
6122
6122
|
return or;
|
|
6123
|
-
|
|
6123
|
+
ha = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.Translations = void 0;
|
|
6124
6124
|
const t = R();
|
|
6125
6125
|
let e = class {
|
|
6126
6126
|
constructor() {
|
|
@@ -6170,11 +6170,11 @@ var iu = {};
|
|
|
6170
6170
|
e[e.NotRecognized = 0] = "NotRecognized", e[e.InitialSilenceTimeout = 1] = "InitialSilenceTimeout", e[e.InitialBabbleTimeout = 2] = "InitialBabbleTimeout";
|
|
6171
6171
|
}(t.NoMatchReason || (t.NoMatchReason = {}));
|
|
6172
6172
|
})(iu);
|
|
6173
|
-
var ar = {},
|
|
6173
|
+
var ar = {}, la;
|
|
6174
6174
|
function Tf() {
|
|
6175
|
-
if (
|
|
6175
|
+
if (la)
|
|
6176
6176
|
return ar;
|
|
6177
|
-
|
|
6177
|
+
la = 1, Object.defineProperty(ar, "__esModule", { value: !0 }), ar.NoMatchDetails = void 0;
|
|
6178
6178
|
const t = T(), e = R();
|
|
6179
6179
|
let r = class su {
|
|
6180
6180
|
/**
|
|
@@ -6288,11 +6288,11 @@ class Af {
|
|
|
6288
6288
|
}
|
|
6289
6289
|
}
|
|
6290
6290
|
Mi.TranslationRecognitionCanceledEventArgs = Af;
|
|
6291
|
-
var cr = {},
|
|
6291
|
+
var cr = {}, va;
|
|
6292
6292
|
function wf() {
|
|
6293
|
-
if (
|
|
6293
|
+
if (va)
|
|
6294
6294
|
return cr;
|
|
6295
|
-
|
|
6295
|
+
va = 1, Object.defineProperty(cr, "__esModule", { value: !0 }), cr.IntentRecognitionCanceledEventArgs = void 0;
|
|
6296
6296
|
const t = R();
|
|
6297
6297
|
let e = class extends t.IntentRecognitionEventArgs {
|
|
6298
6298
|
/**
|
|
@@ -6379,11 +6379,11 @@ class _f {
|
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
6381
|
jn.CancellationDetailsBase = _f;
|
|
6382
|
-
var pr = {},
|
|
6382
|
+
var pr = {}, fa;
|
|
6383
6383
|
function bf() {
|
|
6384
|
-
if (
|
|
6384
|
+
if (fa)
|
|
6385
6385
|
return pr;
|
|
6386
|
-
|
|
6386
|
+
fa = 1, Object.defineProperty(pr, "__esModule", { value: !0 }), pr.CancellationDetails = void 0;
|
|
6387
6387
|
const t = T(), e = jn, r = R();
|
|
6388
6388
|
let i = class ou extends e.CancellationDetailsBase {
|
|
6389
6389
|
constructor(a, s, n) {
|
|
@@ -6414,21 +6414,21 @@ var au = {};
|
|
|
6414
6414
|
e[e.NoError = 0] = "NoError", e[e.AuthenticationFailure = 1] = "AuthenticationFailure", e[e.BadRequestParameters = 2] = "BadRequestParameters", e[e.TooManyRequests = 3] = "TooManyRequests", e[e.ConnectionFailure = 4] = "ConnectionFailure", e[e.ServiceTimeout = 5] = "ServiceTimeout", e[e.ServiceError = 6] = "ServiceError", e[e.RuntimeError = 7] = "RuntimeError", e[e.Forbidden = 8] = "Forbidden";
|
|
6415
6415
|
}(t.CancellationErrorCode || (t.CancellationErrorCode = {}));
|
|
6416
6416
|
})(au);
|
|
6417
|
-
var ur = {},
|
|
6417
|
+
var ur = {}, ga;
|
|
6418
6418
|
function Mf() {
|
|
6419
|
-
if (
|
|
6419
|
+
if (ga)
|
|
6420
6420
|
return ur;
|
|
6421
|
-
|
|
6421
|
+
ga = 1, Object.defineProperty(ur, "__esModule", { value: !0 }), ur.ConnectionEventArgs = void 0;
|
|
6422
6422
|
const t = R();
|
|
6423
6423
|
let e = class extends t.SessionEventArgs {
|
|
6424
6424
|
};
|
|
6425
6425
|
return ur.ConnectionEventArgs = e, ur;
|
|
6426
6426
|
}
|
|
6427
|
-
var dr = {},
|
|
6427
|
+
var dr = {}, ma;
|
|
6428
6428
|
function Of() {
|
|
6429
|
-
if (
|
|
6429
|
+
if (ma)
|
|
6430
6430
|
return dr;
|
|
6431
|
-
|
|
6431
|
+
ma = 1, Object.defineProperty(dr, "__esModule", { value: !0 }), dr.ServiceEventArgs = void 0;
|
|
6432
6432
|
const t = R();
|
|
6433
6433
|
let e = class extends t.SessionEventArgs {
|
|
6434
6434
|
/**
|
|
@@ -6451,7 +6451,7 @@ function Of() {
|
|
|
6451
6451
|
var Oi = {};
|
|
6452
6452
|
Object.defineProperty(Oi, "__esModule", { value: !0 });
|
|
6453
6453
|
Oi.PhraseListGrammar = void 0;
|
|
6454
|
-
class
|
|
6454
|
+
class Ys {
|
|
6455
6455
|
constructor(e) {
|
|
6456
6456
|
this.privGrammerBuilder = e.dynamicGrammar;
|
|
6457
6457
|
}
|
|
@@ -6461,7 +6461,7 @@ class Xs {
|
|
|
6461
6461
|
*/
|
|
6462
6462
|
static fromRecognizer(e) {
|
|
6463
6463
|
const r = e.internalData;
|
|
6464
|
-
return new
|
|
6464
|
+
return new Ys(r);
|
|
6465
6465
|
}
|
|
6466
6466
|
/**
|
|
6467
6467
|
* Adds a single phrase to the current recognizer.
|
|
@@ -6484,12 +6484,12 @@ class Xs {
|
|
|
6484
6484
|
this.privGrammerBuilder.clearPhrases();
|
|
6485
6485
|
}
|
|
6486
6486
|
}
|
|
6487
|
-
Oi.PhraseListGrammar =
|
|
6488
|
-
var Ze = {},
|
|
6489
|
-
function
|
|
6490
|
-
if (
|
|
6487
|
+
Oi.PhraseListGrammar = Ys;
|
|
6488
|
+
var Ze = {}, Sa;
|
|
6489
|
+
function eo() {
|
|
6490
|
+
if (Sa)
|
|
6491
6491
|
return Ze;
|
|
6492
|
-
|
|
6492
|
+
Sa = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.DialogServiceConfigImpl = Ze.DialogServiceConfig = void 0;
|
|
6493
6493
|
const t = b, e = R();
|
|
6494
6494
|
let r = class {
|
|
6495
6495
|
/**
|
|
@@ -6607,12 +6607,12 @@ function Zs() {
|
|
|
6607
6607
|
}
|
|
6608
6608
|
return Ze.DialogServiceConfigImpl = i, Ze;
|
|
6609
6609
|
}
|
|
6610
|
-
var hr = {},
|
|
6610
|
+
var hr = {}, Ca;
|
|
6611
6611
|
function Df() {
|
|
6612
|
-
if (
|
|
6612
|
+
if (Ca)
|
|
6613
6613
|
return hr;
|
|
6614
|
-
|
|
6615
|
-
const t = b, e =
|
|
6614
|
+
Ca = 1, Object.defineProperty(hr, "__esModule", { value: !0 }), hr.BotFrameworkConfig = void 0;
|
|
6615
|
+
const t = b, e = eo(), r = R();
|
|
6616
6616
|
let i = class extends e.DialogServiceConfigImpl {
|
|
6617
6617
|
/**
|
|
6618
6618
|
* Creates an instance of BotFrameworkConfig.
|
|
@@ -6710,12 +6710,12 @@ function Df() {
|
|
|
6710
6710
|
};
|
|
6711
6711
|
return hr.BotFrameworkConfig = i, hr;
|
|
6712
6712
|
}
|
|
6713
|
-
var lr = {},
|
|
6713
|
+
var lr = {}, ya;
|
|
6714
6714
|
function kf() {
|
|
6715
|
-
if (
|
|
6715
|
+
if (ya)
|
|
6716
6716
|
return lr;
|
|
6717
|
-
|
|
6718
|
-
const t = b, e =
|
|
6717
|
+
ya = 1, Object.defineProperty(lr, "__esModule", { value: !0 }), lr.CustomCommandsConfig = void 0;
|
|
6718
|
+
const t = b, e = eo(), r = R();
|
|
6719
6719
|
let i = class extends e.DialogServiceConfigImpl {
|
|
6720
6720
|
/**
|
|
6721
6721
|
* Creates an instance of CustomCommandsConfig.
|
|
@@ -6810,11 +6810,11 @@ B.CtsMeetingId = "meetingId";
|
|
|
6810
6810
|
B.CtsDeviceId = "deviceId";
|
|
6811
6811
|
B.CtsIsParticipant = "isParticipant";
|
|
6812
6812
|
B.EnableAvatar = "enableTalkingAvatar";
|
|
6813
|
-
var
|
|
6813
|
+
var Ra;
|
|
6814
6814
|
function Ce() {
|
|
6815
|
-
if (
|
|
6815
|
+
if (Ra)
|
|
6816
6816
|
return gr;
|
|
6817
|
-
|
|
6817
|
+
Ra = 1, Object.defineProperty(gr, "__esModule", { value: !0 }), gr.ConnectionFactoryBase = void 0;
|
|
6818
6818
|
const t = T(), e = A(), r = R(), i = Se;
|
|
6819
6819
|
let p = class {
|
|
6820
6820
|
static getHostSuffix(s) {
|
|
@@ -6871,11 +6871,11 @@ function Ce() {
|
|
|
6871
6871
|
};
|
|
6872
6872
|
return gr.ConnectionFactoryBase = p, gr;
|
|
6873
6873
|
}
|
|
6874
|
-
var
|
|
6874
|
+
var Pa;
|
|
6875
6875
|
function Nf() {
|
|
6876
|
-
if (
|
|
6876
|
+
if (Pa)
|
|
6877
6877
|
return fr;
|
|
6878
|
-
|
|
6878
|
+
Pa = 1, Object.defineProperty(fr, "__esModule", { value: !0 }), fr.DialogConnectionFactory = void 0;
|
|
6879
6879
|
const t = V(), e = T(), r = R(), i = Ce(), p = T(), a = W, s = Se;
|
|
6880
6880
|
class n extends i.ConnectionFactoryBase {
|
|
6881
6881
|
create(c, u, d) {
|
|
@@ -6895,11 +6895,11 @@ function Nf() {
|
|
|
6895
6895
|
}
|
|
6896
6896
|
return fr.DialogConnectionFactory = n, n.ApiKey = "api", n.BaseUrl = "convai.speech", fr;
|
|
6897
6897
|
}
|
|
6898
|
-
var
|
|
6898
|
+
var Ea;
|
|
6899
6899
|
function zf() {
|
|
6900
|
-
if (
|
|
6900
|
+
if (Ea)
|
|
6901
6901
|
return vr;
|
|
6902
|
-
|
|
6902
|
+
Ea = 1, Object.defineProperty(vr, "__esModule", { value: !0 }), vr.DialogServiceConnector = void 0;
|
|
6903
6903
|
const t = Nf(), e = T(), r = he, i = A(), p = b, a = R(), s = bi;
|
|
6904
6904
|
let n = class extends a.Recognizer {
|
|
6905
6905
|
/**
|
|
@@ -7075,12 +7075,12 @@ Di.ActivityReceivedEventArgs = jf;
|
|
|
7075
7075
|
var ki = {}, Ni = {};
|
|
7076
7076
|
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
7077
7077
|
Ni.TurnStatusResponsePayload = void 0;
|
|
7078
|
-
class
|
|
7078
|
+
class to {
|
|
7079
7079
|
constructor(e) {
|
|
7080
7080
|
this.privMessageStatusResponse = JSON.parse(e);
|
|
7081
7081
|
}
|
|
7082
7082
|
static fromJSON(e) {
|
|
7083
|
-
return new
|
|
7083
|
+
return new to(e);
|
|
7084
7084
|
}
|
|
7085
7085
|
get interactionId() {
|
|
7086
7086
|
return this.privMessageStatusResponse.interactionId;
|
|
@@ -7101,7 +7101,7 @@ class Ys {
|
|
|
7101
7101
|
}
|
|
7102
7102
|
}
|
|
7103
7103
|
}
|
|
7104
|
-
Ni.TurnStatusResponsePayload =
|
|
7104
|
+
Ni.TurnStatusResponsePayload = to;
|
|
7105
7105
|
Object.defineProperty(ki, "__esModule", { value: !0 });
|
|
7106
7106
|
ki.TurnStatusReceivedEventArgs = void 0;
|
|
7107
7107
|
const Lf = Ni;
|
|
@@ -7158,11 +7158,11 @@ var pu = {};
|
|
|
7158
7158
|
e[e.Masked = 0] = "Masked", e[e.Removed = 1] = "Removed", e[e.Raw = 2] = "Raw";
|
|
7159
7159
|
}(t.ProfanityOption || (t.ProfanityOption = {}));
|
|
7160
7160
|
})(pu);
|
|
7161
|
-
var mr = {},
|
|
7161
|
+
var mr = {}, Ia;
|
|
7162
7162
|
function qf() {
|
|
7163
|
-
if (
|
|
7163
|
+
if (Ia)
|
|
7164
7164
|
return mr;
|
|
7165
|
-
|
|
7165
|
+
Ia = 1, Object.defineProperty(mr, "__esModule", { value: !0 }), mr.BaseAudioPlayer = void 0;
|
|
7166
7166
|
const t = J, e = R(), r = Ke;
|
|
7167
7167
|
let i = class {
|
|
7168
7168
|
/**
|
|
@@ -7307,13 +7307,13 @@ class xf {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
}
|
|
7309
7309
|
ji.VoiceProfile = xf;
|
|
7310
|
-
var Ye = {},
|
|
7310
|
+
var Ye = {}, Ta;
|
|
7311
7311
|
function Uf() {
|
|
7312
|
-
if (
|
|
7312
|
+
if (Ta)
|
|
7313
7313
|
return Ye;
|
|
7314
|
-
|
|
7314
|
+
Ta = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.VoiceProfileEnrollmentCancellationDetails = Ye.VoiceProfileEnrollmentResult = void 0;
|
|
7315
7315
|
const t = T(), e = R();
|
|
7316
|
-
let r = class
|
|
7316
|
+
let r = class xs {
|
|
7317
7317
|
constructor(a, s, n) {
|
|
7318
7318
|
this.privReason = a, this.privProperties = new e.PropertyCollection(), this.privReason !== e.ResultReason.Canceled ? s && (this.privDetails = JSON.parse(s), this.privDetails.enrollmentStatus.toLowerCase() === "enrolling" && (this.privReason = e.ResultReason.EnrollingVoiceProfile)) : (this.privErrorDetails = n, this.privProperties.setProperty(t.CancellationErrorCodePropertyName, e.CancellationErrorCode[e.CancellationErrorCode.ServiceError]));
|
|
7319
7319
|
}
|
|
@@ -7338,7 +7338,7 @@ function Uf() {
|
|
|
7338
7338
|
static FromIdentificationProfileList(a) {
|
|
7339
7339
|
const s = [];
|
|
7340
7340
|
for (const n of a.value) {
|
|
7341
|
-
const o = n.enrollmentStatus.toLowerCase() === "enrolling" ? e.ResultReason.EnrollingVoiceProfile : n.enrollmentStatus.toLowerCase() === "enrolled" ? e.ResultReason.EnrolledVoiceProfile : e.ResultReason.Canceled, c = new
|
|
7341
|
+
const o = n.enrollmentStatus.toLowerCase() === "enrolling" ? e.ResultReason.EnrollingVoiceProfile : n.enrollmentStatus.toLowerCase() === "enrolled" ? e.ResultReason.EnrolledVoiceProfile : e.ResultReason.Canceled, c = new xs(o, null, null);
|
|
7342
7342
|
c.privDetails = this.getIdentificationDetails(n), s.push(c);
|
|
7343
7343
|
}
|
|
7344
7344
|
return s;
|
|
@@ -7346,7 +7346,7 @@ function Uf() {
|
|
|
7346
7346
|
static FromVerificationProfileList(a) {
|
|
7347
7347
|
const s = [];
|
|
7348
7348
|
for (const n of a.value) {
|
|
7349
|
-
const o = n.enrollmentStatus.toLowerCase() === "enrolling" ? e.ResultReason.EnrollingVoiceProfile : n.enrollmentStatus.toLowerCase() === "enrolled" ? e.ResultReason.EnrolledVoiceProfile : e.ResultReason.Canceled, c = new
|
|
7349
|
+
const o = n.enrollmentStatus.toLowerCase() === "enrolling" ? e.ResultReason.EnrollingVoiceProfile : n.enrollmentStatus.toLowerCase() === "enrolled" ? e.ResultReason.EnrolledVoiceProfile : e.ResultReason.Canceled, c = new xs(o, null, null);
|
|
7350
7350
|
c.privDetails = this.getVerificationDetails(n), s.push(c);
|
|
7351
7351
|
}
|
|
7352
7352
|
return s;
|
|
@@ -7398,11 +7398,11 @@ function Uf() {
|
|
|
7398
7398
|
}
|
|
7399
7399
|
return Ye.VoiceProfileEnrollmentCancellationDetails = i, Ye;
|
|
7400
7400
|
}
|
|
7401
|
-
var et = {},
|
|
7401
|
+
var et = {}, Aa;
|
|
7402
7402
|
function Wf() {
|
|
7403
|
-
if (
|
|
7403
|
+
if (Aa)
|
|
7404
7404
|
return et;
|
|
7405
|
-
|
|
7405
|
+
Aa = 1, Object.defineProperty(et, "__esModule", { value: !0 }), et.VoiceProfileCancellationDetails = et.VoiceProfileResult = void 0;
|
|
7406
7406
|
const t = T(), e = b, r = R();
|
|
7407
7407
|
let i = class {
|
|
7408
7408
|
constructor(s, n) {
|
|
@@ -7439,11 +7439,11 @@ function Wf() {
|
|
|
7439
7439
|
}
|
|
7440
7440
|
return et.VoiceProfileCancellationDetails = p, et;
|
|
7441
7441
|
}
|
|
7442
|
-
var Sr = {},
|
|
7442
|
+
var Sr = {}, wa;
|
|
7443
7443
|
function Vf() {
|
|
7444
|
-
if (
|
|
7444
|
+
if (wa)
|
|
7445
7445
|
return Sr;
|
|
7446
|
-
|
|
7446
|
+
wa = 1, Object.defineProperty(Sr, "__esModule", { value: !0 }), Sr.VoiceProfilePhraseResult = void 0;
|
|
7447
7447
|
const t = b, e = R();
|
|
7448
7448
|
let r = class extends e.VoiceProfileResult {
|
|
7449
7449
|
constructor(p, a, s, n) {
|
|
@@ -7458,11 +7458,11 @@ function Vf() {
|
|
|
7458
7458
|
};
|
|
7459
7459
|
return Sr.VoiceProfilePhraseResult = r, Sr;
|
|
7460
7460
|
}
|
|
7461
|
-
var Cr = {},
|
|
7461
|
+
var Cr = {}, _a;
|
|
7462
7462
|
function Hf() {
|
|
7463
|
-
if (
|
|
7463
|
+
if (_a)
|
|
7464
7464
|
return Cr;
|
|
7465
|
-
|
|
7465
|
+
_a = 1, Object.defineProperty(Cr, "__esModule", { value: !0 }), Cr.VoiceProfileClient = void 0;
|
|
7466
7466
|
const t = T(), e = Wp(), r = b, i = R();
|
|
7467
7467
|
let p = class extends i.Recognizer {
|
|
7468
7468
|
/**
|
|
@@ -7619,11 +7619,11 @@ function Hf() {
|
|
|
7619
7619
|
};
|
|
7620
7620
|
return Cr.VoiceProfileClient = p, Cr;
|
|
7621
7621
|
}
|
|
7622
|
-
var yr = {},
|
|
7622
|
+
var yr = {}, ba;
|
|
7623
7623
|
function $f() {
|
|
7624
|
-
if (
|
|
7624
|
+
if (ba)
|
|
7625
7625
|
return yr;
|
|
7626
|
-
|
|
7626
|
+
ba = 1, Object.defineProperty(yr, "__esModule", { value: !0 }), yr.SpeakerRecognizer = void 0;
|
|
7627
7627
|
const t = T(), e = b, r = R();
|
|
7628
7628
|
let i = class extends r.Recognizer {
|
|
7629
7629
|
/**
|
|
@@ -7711,11 +7711,11 @@ function $f() {
|
|
|
7711
7711
|
};
|
|
7712
7712
|
return yr.SpeakerRecognizer = i, yr;
|
|
7713
7713
|
}
|
|
7714
|
-
var Rr = {},
|
|
7714
|
+
var Rr = {}, Ma;
|
|
7715
7715
|
function Kf() {
|
|
7716
|
-
if (
|
|
7716
|
+
if (Ma)
|
|
7717
7717
|
return Rr;
|
|
7718
|
-
|
|
7718
|
+
Ma = 1, Object.defineProperty(Rr, "__esModule", { value: !0 }), Rr.SpeakerIdentificationModel = void 0;
|
|
7719
7719
|
const t = b, e = R();
|
|
7720
7720
|
let r = class uu {
|
|
7721
7721
|
constructor(p) {
|
|
@@ -7742,11 +7742,11 @@ function Kf() {
|
|
|
7742
7742
|
};
|
|
7743
7743
|
return Rr.SpeakerIdentificationModel = r, Rr;
|
|
7744
7744
|
}
|
|
7745
|
-
var Pr = {},
|
|
7745
|
+
var Pr = {}, Oa;
|
|
7746
7746
|
function Jf() {
|
|
7747
|
-
if (
|
|
7747
|
+
if (Oa)
|
|
7748
7748
|
return Pr;
|
|
7749
|
-
|
|
7749
|
+
Oa = 1, Object.defineProperty(Pr, "__esModule", { value: !0 }), Pr.SpeakerVerificationModel = void 0;
|
|
7750
7750
|
const t = b, e = R();
|
|
7751
7751
|
let r = class du {
|
|
7752
7752
|
constructor(p) {
|
|
@@ -7769,18 +7769,18 @@ function Jf() {
|
|
|
7769
7769
|
};
|
|
7770
7770
|
return Pr.SpeakerVerificationModel = r, Pr;
|
|
7771
7771
|
}
|
|
7772
|
-
var Er = {},
|
|
7772
|
+
var Er = {}, ro = {};
|
|
7773
7773
|
(function(t) {
|
|
7774
7774
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LanguageIdMode = void 0, function(e) {
|
|
7775
7775
|
e[e.AtStart = 0] = "AtStart", e[e.Continuous = 1] = "Continuous";
|
|
7776
7776
|
}(t.LanguageIdMode || (t.LanguageIdMode = {}));
|
|
7777
|
-
})(
|
|
7778
|
-
var
|
|
7777
|
+
})(ro);
|
|
7778
|
+
var Da;
|
|
7779
7779
|
function Gf() {
|
|
7780
|
-
if (
|
|
7780
|
+
if (Da)
|
|
7781
7781
|
return Er;
|
|
7782
|
-
|
|
7783
|
-
const t = T(), e = b, r = R(), i =
|
|
7782
|
+
Da = 1, Object.defineProperty(Er, "__esModule", { value: !0 }), Er.AutoDetectSourceLanguageConfig = void 0;
|
|
7783
|
+
const t = T(), e = b, r = R(), i = ro;
|
|
7784
7784
|
let p = class Hn {
|
|
7785
7785
|
constructor() {
|
|
7786
7786
|
this.privProperties = new r.PropertyCollection(), this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_LanguageIdMode, "AtStart"), this.privLanguageIdMode = i.LanguageIdMode.AtStart;
|
|
@@ -7856,10 +7856,10 @@ function Gf() {
|
|
|
7856
7856
|
var Li = {};
|
|
7857
7857
|
Object.defineProperty(Li, "__esModule", { value: !0 });
|
|
7858
7858
|
Li.AutoDetectSourceLanguageResult = void 0;
|
|
7859
|
-
const
|
|
7859
|
+
const ka = b;
|
|
7860
7860
|
class Jn {
|
|
7861
7861
|
constructor(e, r) {
|
|
7862
|
-
|
|
7862
|
+
ka.Contracts.throwIfNullOrUndefined(e, "language"), ka.Contracts.throwIfNullOrUndefined(r, "languageDetectionConfidence"), this.privLanguage = e, this.privLanguageDetectionConfidence = r;
|
|
7863
7863
|
}
|
|
7864
7864
|
/**
|
|
7865
7865
|
* Creates an instance of AutoDetectSourceLanguageResult object from a SpeechRecognitionResult instance.
|
|
@@ -7895,7 +7895,7 @@ var Bi = {};
|
|
|
7895
7895
|
Object.defineProperty(Bi, "__esModule", { value: !0 });
|
|
7896
7896
|
Bi.SourceLanguageConfig = void 0;
|
|
7897
7897
|
const Qf = b;
|
|
7898
|
-
class
|
|
7898
|
+
class no {
|
|
7899
7899
|
constructor(e, r) {
|
|
7900
7900
|
Qf.Contracts.throwIfNullOrUndefined(e, "language"), this.privLanguage = e, this.privEndpointId = r;
|
|
7901
7901
|
}
|
|
@@ -7910,7 +7910,7 @@ class to {
|
|
|
7910
7910
|
* Added in version 1.13.0.
|
|
7911
7911
|
*/
|
|
7912
7912
|
static fromLanguage(e, r) {
|
|
7913
|
-
return new
|
|
7913
|
+
return new no(e, r);
|
|
7914
7914
|
}
|
|
7915
7915
|
get language() {
|
|
7916
7916
|
return this.privLanguage;
|
|
@@ -7919,10 +7919,10 @@ class to {
|
|
|
7919
7919
|
return this.privEndpointId;
|
|
7920
7920
|
}
|
|
7921
7921
|
}
|
|
7922
|
-
Bi.SourceLanguageConfig =
|
|
7923
|
-
var
|
|
7922
|
+
Bi.SourceLanguageConfig = no;
|
|
7923
|
+
var _s = {}, Na;
|
|
7924
7924
|
function Xf() {
|
|
7925
|
-
return
|
|
7925
|
+
return Na || (Na = 1, function(t) {
|
|
7926
7926
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SpeakerRecognitionCancellationDetails = t.SpeakerRecognitionResult = t.SpeakerRecognitionResultType = void 0;
|
|
7927
7927
|
const e = T(), r = R();
|
|
7928
7928
|
var i;
|
|
@@ -7971,13 +7971,13 @@ function Xf() {
|
|
|
7971
7971
|
}
|
|
7972
7972
|
}
|
|
7973
7973
|
t.SpeakerRecognitionCancellationDetails = a;
|
|
7974
|
-
}(
|
|
7974
|
+
}(_s)), _s;
|
|
7975
7975
|
}
|
|
7976
|
-
var
|
|
7976
|
+
var bs = {}, tt = {}, za;
|
|
7977
7977
|
function hu() {
|
|
7978
|
-
if (
|
|
7978
|
+
if (za)
|
|
7979
7979
|
return tt;
|
|
7980
|
-
|
|
7980
|
+
za = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.ConversationImpl = tt.Conversation = void 0;
|
|
7981
7981
|
const t = T(), e = A(), r = b, i = R();
|
|
7982
7982
|
let p = class {
|
|
7983
7983
|
constructor() {
|
|
@@ -8603,11 +8603,11 @@ class Zf {
|
|
|
8603
8603
|
}
|
|
8604
8604
|
}
|
|
8605
8605
|
qi.ConversationCommon = Zf;
|
|
8606
|
-
var Ir = {},
|
|
8606
|
+
var Ir = {}, ja;
|
|
8607
8607
|
function Yf() {
|
|
8608
|
-
if (
|
|
8608
|
+
if (ja)
|
|
8609
8609
|
return Ir;
|
|
8610
|
-
|
|
8610
|
+
ja = 1, Object.defineProperty(Ir, "__esModule", { value: !0 }), Ir.ConversationExpirationEventArgs = void 0;
|
|
8611
8611
|
const t = R();
|
|
8612
8612
|
let e = class extends t.SessionEventArgs {
|
|
8613
8613
|
constructor(i, p) {
|
|
@@ -8620,11 +8620,11 @@ function Yf() {
|
|
|
8620
8620
|
};
|
|
8621
8621
|
return Ir.ConversationExpirationEventArgs = e, Ir;
|
|
8622
8622
|
}
|
|
8623
|
-
var Tr = {},
|
|
8623
|
+
var Tr = {}, La;
|
|
8624
8624
|
function eg() {
|
|
8625
|
-
if (
|
|
8625
|
+
if (La)
|
|
8626
8626
|
return Tr;
|
|
8627
|
-
|
|
8627
|
+
La = 1, Object.defineProperty(Tr, "__esModule", { value: !0 }), Tr.ConversationParticipantsChangedEventArgs = void 0;
|
|
8628
8628
|
const t = R();
|
|
8629
8629
|
let e = class extends t.SessionEventArgs {
|
|
8630
8630
|
constructor(i, p, a) {
|
|
@@ -8639,21 +8639,21 @@ function eg() {
|
|
|
8639
8639
|
};
|
|
8640
8640
|
return Tr.ConversationParticipantsChangedEventArgs = e, Tr;
|
|
8641
8641
|
}
|
|
8642
|
-
var Ar = {},
|
|
8642
|
+
var Ar = {}, Ba;
|
|
8643
8643
|
function tg() {
|
|
8644
|
-
if (
|
|
8644
|
+
if (Ba)
|
|
8645
8645
|
return Ar;
|
|
8646
|
-
|
|
8646
|
+
Ba = 1, Object.defineProperty(Ar, "__esModule", { value: !0 }), Ar.ConversationTranslationCanceledEventArgs = void 0;
|
|
8647
8647
|
const t = zn();
|
|
8648
8648
|
let e = class extends t.CancellationEventArgsBase {
|
|
8649
8649
|
};
|
|
8650
8650
|
return Ar.ConversationTranslationCanceledEventArgs = e, Ar;
|
|
8651
8651
|
}
|
|
8652
|
-
var wr = {},
|
|
8652
|
+
var wr = {}, qa;
|
|
8653
8653
|
function rg() {
|
|
8654
|
-
if (
|
|
8654
|
+
if (qa)
|
|
8655
8655
|
return wr;
|
|
8656
|
-
|
|
8656
|
+
qa = 1, Object.defineProperty(wr, "__esModule", { value: !0 }), wr.ConversationTranslationEventArgs = void 0;
|
|
8657
8657
|
const t = R();
|
|
8658
8658
|
let e = class extends t.RecognitionEventArgs {
|
|
8659
8659
|
/**
|
|
@@ -8676,11 +8676,11 @@ function rg() {
|
|
|
8676
8676
|
};
|
|
8677
8677
|
return wr.ConversationTranslationEventArgs = e, wr;
|
|
8678
8678
|
}
|
|
8679
|
-
var _r = {},
|
|
8679
|
+
var _r = {}, Fa;
|
|
8680
8680
|
function ng() {
|
|
8681
|
-
if (
|
|
8681
|
+
if (Fa)
|
|
8682
8682
|
return _r;
|
|
8683
|
-
|
|
8683
|
+
Fa = 1, Object.defineProperty(_r, "__esModule", { value: !0 }), _r.ConversationTranslationResult = void 0;
|
|
8684
8684
|
const t = Jp();
|
|
8685
8685
|
let e = class extends t.TranslationRecognitionResult {
|
|
8686
8686
|
constructor(i, p, a, s, n, o, c, u, d, h, l) {
|
|
@@ -8701,7 +8701,7 @@ function ng() {
|
|
|
8701
8701
|
};
|
|
8702
8702
|
return _r.ConversationTranslationResult = e, _r;
|
|
8703
8703
|
}
|
|
8704
|
-
var
|
|
8704
|
+
var Ms = {}, br = {}, Ln = {};
|
|
8705
8705
|
Object.defineProperty(Ln, "__esModule", { value: !0 });
|
|
8706
8706
|
Ln.StringUtils = void 0;
|
|
8707
8707
|
class ig {
|
|
@@ -8742,11 +8742,11 @@ class ig {
|
|
|
8742
8742
|
}
|
|
8743
8743
|
}
|
|
8744
8744
|
Ln.StringUtils = ig;
|
|
8745
|
-
var
|
|
8745
|
+
var xa;
|
|
8746
8746
|
function sg() {
|
|
8747
|
-
if (
|
|
8747
|
+
if (xa)
|
|
8748
8748
|
return br;
|
|
8749
|
-
|
|
8749
|
+
xa = 1, Object.defineProperty(br, "__esModule", { value: !0 }), br.ConversationTranslatorConnectionFactory = void 0;
|
|
8750
8750
|
const t = V(), e = Ln, r = b, i = R(), p = W, a = Se, s = Ce(), n = T();
|
|
8751
8751
|
let o = class lu extends s.ConnectionFactoryBase {
|
|
8752
8752
|
constructor(u) {
|
|
@@ -8780,11 +8780,11 @@ function sg() {
|
|
|
8780
8780
|
};
|
|
8781
8781
|
return br.ConversationTranslatorConnectionFactory = o, o.CTS_VIRT_MIC_PATH = "/speech/recognition/dynamicaudio", br;
|
|
8782
8782
|
}
|
|
8783
|
-
var
|
|
8783
|
+
var Ua;
|
|
8784
8784
|
function og() {
|
|
8785
|
-
return
|
|
8785
|
+
return Ua || (Ua = 1, function(t) {
|
|
8786
8786
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ConversationTranslator = t.SpeechState = void 0;
|
|
8787
|
-
const e = T(), r = sg(), i = A(), p = b, a = R(), s = hu(), n =
|
|
8787
|
+
const e = T(), r = sg(), i = A(), p = b, a = R(), s = hu(), n = io();
|
|
8788
8788
|
var o;
|
|
8789
8789
|
(function(d) {
|
|
8790
8790
|
d[d.Inactive = 0] = "Inactive", d[d.Connecting = 1] = "Connecting", d[d.Connected = 2] = "Connected";
|
|
@@ -9011,13 +9011,13 @@ function og() {
|
|
|
9011
9011
|
}
|
|
9012
9012
|
}
|
|
9013
9013
|
t.ConversationTranslator = u;
|
|
9014
|
-
}(
|
|
9014
|
+
}(Ms)), Ms;
|
|
9015
9015
|
}
|
|
9016
|
-
var Mr = {},
|
|
9016
|
+
var Mr = {}, Wa;
|
|
9017
9017
|
function ag() {
|
|
9018
|
-
if (
|
|
9018
|
+
if (Wa)
|
|
9019
9019
|
return Mr;
|
|
9020
|
-
|
|
9020
|
+
Wa = 1, Object.defineProperty(Mr, "__esModule", { value: !0 }), Mr.ConversationTranscriber = void 0;
|
|
9021
9021
|
const t = T(), e = he, r = A(), i = b, p = R();
|
|
9022
9022
|
let a = class vu extends p.Recognizer {
|
|
9023
9023
|
/**
|
|
@@ -9153,11 +9153,11 @@ function ag() {
|
|
|
9153
9153
|
};
|
|
9154
9154
|
return Mr.ConversationTranscriber = a, Mr;
|
|
9155
9155
|
}
|
|
9156
|
-
var rt = {},
|
|
9156
|
+
var rt = {}, Va;
|
|
9157
9157
|
function cg() {
|
|
9158
|
-
if (
|
|
9158
|
+
if (Va)
|
|
9159
9159
|
return rt;
|
|
9160
|
-
|
|
9160
|
+
Va = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.Participant = rt.User = void 0;
|
|
9161
9161
|
const t = R();
|
|
9162
9162
|
class e {
|
|
9163
9163
|
constructor(p) {
|
|
@@ -9211,11 +9211,11 @@ var fu = {};
|
|
|
9211
9211
|
e[e.JoinedConversation = 0] = "JoinedConversation", e[e.LeftConversation = 1] = "LeftConversation", e[e.Updated = 2] = "Updated";
|
|
9212
9212
|
}(t.ParticipantChangedReason || (t.ParticipantChangedReason = {}));
|
|
9213
9213
|
})(fu);
|
|
9214
|
-
var nt = {},
|
|
9214
|
+
var nt = {}, Ha;
|
|
9215
9215
|
function pg() {
|
|
9216
|
-
if (
|
|
9216
|
+
if (Ha)
|
|
9217
9217
|
return nt;
|
|
9218
|
-
|
|
9218
|
+
Ha = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.MeetingImpl = nt.Meeting = void 0;
|
|
9219
9219
|
const t = T(), e = A(), r = b, i = R();
|
|
9220
9220
|
let p = class {
|
|
9221
9221
|
constructor() {
|
|
@@ -9800,22 +9800,22 @@ function pg() {
|
|
|
9800
9800
|
}
|
|
9801
9801
|
return nt.MeetingImpl = a, nt;
|
|
9802
9802
|
}
|
|
9803
|
-
var Or = {},
|
|
9803
|
+
var Or = {}, $a;
|
|
9804
9804
|
function ug() {
|
|
9805
|
-
if (
|
|
9805
|
+
if ($a)
|
|
9806
9806
|
return Or;
|
|
9807
|
-
|
|
9807
|
+
$a = 1, Object.defineProperty(Or, "__esModule", { value: !0 }), Or.MeetingTranscriptionCanceledEventArgs = void 0;
|
|
9808
9808
|
const t = zn();
|
|
9809
9809
|
class e extends t.CancellationEventArgsBase {
|
|
9810
9810
|
}
|
|
9811
9811
|
return Or.MeetingTranscriptionCanceledEventArgs = e, Or;
|
|
9812
9812
|
}
|
|
9813
|
-
var Dr = {},
|
|
9813
|
+
var Dr = {}, Ka;
|
|
9814
9814
|
function dg() {
|
|
9815
|
-
if (
|
|
9815
|
+
if (Ka)
|
|
9816
9816
|
return Dr;
|
|
9817
|
-
|
|
9818
|
-
const t = T(), e = A(), r = b, i = R(), p =
|
|
9817
|
+
Ka = 1, Object.defineProperty(Dr, "__esModule", { value: !0 }), Dr.MeetingTranscriber = void 0;
|
|
9818
|
+
const t = T(), e = A(), r = b, i = R(), p = io();
|
|
9819
9819
|
let a = class {
|
|
9820
9820
|
/**
|
|
9821
9821
|
* MeetingTranscriber constructor.
|
|
@@ -9941,11 +9941,11 @@ function dg() {
|
|
|
9941
9941
|
};
|
|
9942
9942
|
return Dr.MeetingTranscriber = a, Dr;
|
|
9943
9943
|
}
|
|
9944
|
-
var kr = {},
|
|
9944
|
+
var kr = {}, Ja;
|
|
9945
9945
|
function hg() {
|
|
9946
|
-
if (
|
|
9946
|
+
if (Ja)
|
|
9947
9947
|
return kr;
|
|
9948
|
-
|
|
9948
|
+
Ja = 1, Object.defineProperty(kr, "__esModule", { value: !0 }), kr.ConversationTranscriptionResult = void 0;
|
|
9949
9949
|
const t = R();
|
|
9950
9950
|
let e = class extends t.RecognitionResult {
|
|
9951
9951
|
/**
|
|
@@ -9980,9 +9980,9 @@ function hg() {
|
|
|
9980
9980
|
};
|
|
9981
9981
|
return kr.ConversationTranscriptionResult = e, kr;
|
|
9982
9982
|
}
|
|
9983
|
-
var
|
|
9984
|
-
function
|
|
9985
|
-
return
|
|
9983
|
+
var Ga;
|
|
9984
|
+
function io() {
|
|
9985
|
+
return Ga || (Ga = 1, function(t) {
|
|
9986
9986
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ConversationTranscriptionResult = t.MeetingTranscriber = t.MeetingTranscriptionCanceledEventArgs = t.MeetingImpl = t.Meeting = t.ParticipantChangedReason = t.User = t.Participant = t.ConversationTranscriber = t.ConversationTranslator = t.ConversationTranslationResult = t.ConversationTranslationEventArgs = t.ConversationTranslationCanceledEventArgs = t.ConversationParticipantsChangedEventArgs = t.ConversationExpirationEventArgs = t.ConversationCommon = t.ConversationImpl = t.Conversation = void 0;
|
|
9987
9987
|
var e = hu();
|
|
9988
9988
|
Object.defineProperty(t, "Conversation", { enumerable: !0, get: function() {
|
|
@@ -10050,13 +10050,13 @@ function ro() {
|
|
|
10050
10050
|
Object.defineProperty(t, "ConversationTranscriptionResult", { enumerable: !0, get: function() {
|
|
10051
10051
|
return g.ConversationTranscriptionResult;
|
|
10052
10052
|
} });
|
|
10053
|
-
}(
|
|
10053
|
+
}(bs)), bs;
|
|
10054
10054
|
}
|
|
10055
|
-
var it = {},
|
|
10056
|
-
function
|
|
10057
|
-
if (
|
|
10055
|
+
var it = {}, Qa;
|
|
10056
|
+
function so() {
|
|
10057
|
+
if (Qa)
|
|
10058
10058
|
return it;
|
|
10059
|
-
|
|
10059
|
+
Qa = 1, Object.defineProperty(it, "__esModule", { value: !0 }), it.SynthesisRequest = it.Synthesizer = void 0;
|
|
10060
10060
|
const t = T(), e = A(), r = b, i = R();
|
|
10061
10061
|
let p = class gu {
|
|
10062
10062
|
/**
|
|
@@ -10305,12 +10305,12 @@ function no() {
|
|
|
10305
10305
|
}
|
|
10306
10306
|
return it.SynthesisRequest = a, it;
|
|
10307
10307
|
}
|
|
10308
|
-
var Nr = {},
|
|
10308
|
+
var Nr = {}, Xa;
|
|
10309
10309
|
function lg() {
|
|
10310
|
-
if (
|
|
10310
|
+
if (Xa)
|
|
10311
10311
|
return Nr;
|
|
10312
|
-
|
|
10313
|
-
const t = T(), e = A(), r = Nn, i = Je, p = K, a = b, s = R(), n =
|
|
10312
|
+
Xa = 1, Object.defineProperty(Nr, "__esModule", { value: !0 }), Nr.SpeechSynthesizer = void 0;
|
|
10313
|
+
const t = T(), e = A(), r = Nn, i = Je, p = K, a = b, s = R(), n = so();
|
|
10314
10314
|
let o = class mu extends s.Synthesizer {
|
|
10315
10315
|
/**
|
|
10316
10316
|
* SpeechSynthesizer constructor.
|
|
@@ -10501,11 +10501,11 @@ class vg {
|
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
10503
|
Fi.SynthesisResult = vg;
|
|
10504
|
-
var zr = {},
|
|
10504
|
+
var zr = {}, Za;
|
|
10505
10505
|
function fg() {
|
|
10506
|
-
if (
|
|
10506
|
+
if (Za)
|
|
10507
10507
|
return zr;
|
|
10508
|
-
|
|
10508
|
+
Za = 1, Object.defineProperty(zr, "__esModule", { value: !0 }), zr.SpeechSynthesisResult = void 0;
|
|
10509
10509
|
const t = R();
|
|
10510
10510
|
let e = class extends t.SynthesisResult {
|
|
10511
10511
|
/**
|
|
@@ -10734,11 +10734,11 @@ var Su = {};
|
|
|
10734
10734
|
e.Word = "WordBoundary", e.Punctuation = "PunctuationBoundary", e.Sentence = "SentenceBoundary";
|
|
10735
10735
|
}(t.SpeechSynthesisBoundaryType || (t.SpeechSynthesisBoundaryType = {}));
|
|
10736
10736
|
})(Su);
|
|
10737
|
-
var jr = {},
|
|
10737
|
+
var jr = {}, Ya;
|
|
10738
10738
|
function yg() {
|
|
10739
|
-
if (
|
|
10739
|
+
if (Ya)
|
|
10740
10740
|
return jr;
|
|
10741
|
-
|
|
10741
|
+
Ya = 1, Object.defineProperty(jr, "__esModule", { value: !0 }), jr.SynthesisVoicesResult = void 0;
|
|
10742
10742
|
const t = R();
|
|
10743
10743
|
let e = class extends t.SynthesisResult {
|
|
10744
10744
|
/**
|
|
@@ -10850,7 +10850,7 @@ var Cu = {};
|
|
|
10850
10850
|
var Hi = {};
|
|
10851
10851
|
Object.defineProperty(Hi, "__esModule", { value: !0 });
|
|
10852
10852
|
Hi.SpeakerAudioDestination = void 0;
|
|
10853
|
-
const st = A(), Rg = K, pe = Ke, Pg = 60 * 30,
|
|
10853
|
+
const st = A(), Rg = K, pe = Ke, Pg = 60 * 30, ec = {
|
|
10854
10854
|
[pe.AudioFormatTag.PCM]: "audio/wav",
|
|
10855
10855
|
[pe.AudioFormatTag.MuLaw]: "audio/x-wav",
|
|
10856
10856
|
[pe.AudioFormatTag.MP3]: "audio/mpeg",
|
|
@@ -10889,7 +10889,7 @@ class Eg {
|
|
|
10889
10889
|
let i = new ArrayBuffer(this.privBytesReceived);
|
|
10890
10890
|
this.privAudioOutputStream.read(i).then(() => {
|
|
10891
10891
|
i = this.privFormat.addHeader(i);
|
|
10892
|
-
const p = new Blob([i], { type:
|
|
10892
|
+
const p = new Blob([i], { type: ec[this.privFormat.formatTag] });
|
|
10893
10893
|
this.privAudio.src = window.URL.createObjectURL(p), this.notifyPlayback().then(() => {
|
|
10894
10894
|
e && e();
|
|
10895
10895
|
}, (a) => {
|
|
@@ -10905,7 +10905,7 @@ class Eg {
|
|
|
10905
10905
|
set format(e) {
|
|
10906
10906
|
if (typeof AudioContext < "u" || typeof window < "u" && typeof window.webkitAudioContext < "u") {
|
|
10907
10907
|
this.privFormat = e;
|
|
10908
|
-
const r =
|
|
10908
|
+
const r = ec[this.privFormat.formatTag];
|
|
10909
10909
|
r === void 0 ? console.warn(`Unknown mimeType for format ${pe.AudioFormatTag[this.privFormat.formatTag]}; playback is not supported.`) : typeof MediaSource < "u" && MediaSource.isTypeSupported(r) ? (this.privAudio = new Audio(), this.privAudioBuffer = [], this.privMediaSource = new MediaSource(), this.privAudio.src = URL.createObjectURL(this.privMediaSource), this.privAudio.load(), this.privMediaSource.onsourceopen = () => {
|
|
10910
10910
|
this.privMediaSourceOpened = !0, this.privMediaSource.duration = Pg, this.privSourceBuffer = this.privMediaSource.addSourceBuffer(r), this.privSourceBuffer.onupdate = () => {
|
|
10911
10911
|
this.updateSourceBuffer().catch((i) => {
|
|
@@ -10985,21 +10985,21 @@ class Eg {
|
|
|
10985
10985
|
}
|
|
10986
10986
|
}
|
|
10987
10987
|
Hi.SpeakerAudioDestination = Eg;
|
|
10988
|
-
var Lr = {},
|
|
10988
|
+
var Lr = {}, tc;
|
|
10989
10989
|
function Ig() {
|
|
10990
|
-
if (
|
|
10990
|
+
if (tc)
|
|
10991
10991
|
return Lr;
|
|
10992
|
-
|
|
10992
|
+
tc = 1, Object.defineProperty(Lr, "__esModule", { value: !0 }), Lr.ConversationTranscriptionCanceledEventArgs = void 0;
|
|
10993
10993
|
const t = zn();
|
|
10994
10994
|
let e = class extends t.CancellationEventArgsBase {
|
|
10995
10995
|
};
|
|
10996
10996
|
return Lr.ConversationTranscriptionCanceledEventArgs = e, Lr;
|
|
10997
10997
|
}
|
|
10998
|
-
var Br = {},
|
|
10998
|
+
var Br = {}, rc;
|
|
10999
10999
|
function Tg() {
|
|
11000
|
-
if (
|
|
11000
|
+
if (rc)
|
|
11001
11001
|
return Br;
|
|
11002
|
-
|
|
11002
|
+
rc = 1, Object.defineProperty(Br, "__esModule", { value: !0 }), Br.MeetingTranscriptionCanceledEventArgs = void 0;
|
|
11003
11003
|
const t = zn();
|
|
11004
11004
|
let e = class extends t.CancellationEventArgsBase {
|
|
11005
11005
|
};
|
|
@@ -11017,11 +11017,11 @@ var Ru = {};
|
|
|
11017
11017
|
e[e.Phoneme = 1] = "Phoneme", e[e.Word = 2] = "Word", e[e.FullText = 3] = "FullText";
|
|
11018
11018
|
}(t.PronunciationAssessmentGranularity || (t.PronunciationAssessmentGranularity = {}));
|
|
11019
11019
|
})(Ru);
|
|
11020
|
-
var qr = {},
|
|
11020
|
+
var qr = {}, nc;
|
|
11021
11021
|
function Ag() {
|
|
11022
|
-
if (
|
|
11022
|
+
if (nc)
|
|
11023
11023
|
return qr;
|
|
11024
|
-
|
|
11024
|
+
nc = 1, Object.defineProperty(qr, "__esModule", { value: !0 }), qr.PronunciationAssessmentConfig = void 0;
|
|
11025
11025
|
const t = b, e = R();
|
|
11026
11026
|
let r = class Pu {
|
|
11027
11027
|
/**
|
|
@@ -11167,11 +11167,11 @@ function Ag() {
|
|
|
11167
11167
|
};
|
|
11168
11168
|
return qr.PronunciationAssessmentConfig = r, qr;
|
|
11169
11169
|
}
|
|
11170
|
-
var ot = {},
|
|
11170
|
+
var ot = {}, ic;
|
|
11171
11171
|
function wg() {
|
|
11172
|
-
if (
|
|
11172
|
+
if (ic)
|
|
11173
11173
|
return ot;
|
|
11174
|
-
|
|
11174
|
+
ic = 1, Object.defineProperty(ot, "__esModule", { value: !0 }), ot.PronunciationAssessmentResult = ot.ContentAssessmentResult = void 0;
|
|
11175
11175
|
const t = b, e = R();
|
|
11176
11176
|
class r {
|
|
11177
11177
|
/**
|
|
@@ -11319,11 +11319,11 @@ function wg() {
|
|
|
11319
11319
|
};
|
|
11320
11320
|
return ot.PronunciationAssessmentResult = i, ot;
|
|
11321
11321
|
}
|
|
11322
|
-
var Fr = {},
|
|
11322
|
+
var Fr = {}, sc;
|
|
11323
11323
|
function _g() {
|
|
11324
|
-
if (
|
|
11324
|
+
if (sc)
|
|
11325
11325
|
return Fr;
|
|
11326
|
-
|
|
11326
|
+
sc = 1, Object.defineProperty(Fr, "__esModule", { value: !0 }), Fr.AvatarConfig = void 0;
|
|
11327
11327
|
const t = b, e = R();
|
|
11328
11328
|
let r = class {
|
|
11329
11329
|
/**
|
|
@@ -11448,11 +11448,11 @@ var Iu = {};
|
|
|
11448
11448
|
}
|
|
11449
11449
|
t.AvatarEventArgs = e;
|
|
11450
11450
|
})(Iu);
|
|
11451
|
-
var xr = {}, Ur = {},
|
|
11451
|
+
var xr = {}, Ur = {}, oc;
|
|
11452
11452
|
function Tu() {
|
|
11453
|
-
if (
|
|
11453
|
+
if (oc)
|
|
11454
11454
|
return Ur;
|
|
11455
|
-
|
|
11455
|
+
oc = 1, Object.defineProperty(Ur, "__esModule", { value: !0 }), Ur.SpeechSynthesisConnectionFactory = void 0;
|
|
11456
11456
|
const t = V(), e = R(), r = Ce(), i = T(), p = W, a = Se;
|
|
11457
11457
|
let s = class {
|
|
11458
11458
|
constructor() {
|
|
@@ -11472,12 +11472,12 @@ function Tu() {
|
|
|
11472
11472
|
};
|
|
11473
11473
|
return Ur.SpeechSynthesisConnectionFactory = s, Ur;
|
|
11474
11474
|
}
|
|
11475
|
-
var
|
|
11475
|
+
var ac;
|
|
11476
11476
|
function bg() {
|
|
11477
|
-
if (
|
|
11477
|
+
if (ac)
|
|
11478
11478
|
return xr;
|
|
11479
|
-
|
|
11480
|
-
const t = Tu(), e = T(), r = A(), i = Je, p = R(), a = b, s =
|
|
11479
|
+
ac = 1, Object.defineProperty(xr, "__esModule", { value: !0 }), xr.AvatarSynthesizer = void 0;
|
|
11480
|
+
const t = Tu(), e = T(), r = A(), i = Je, p = R(), a = b, s = so();
|
|
11481
11481
|
let n = class extends p.Synthesizer {
|
|
11482
11482
|
/**
|
|
11483
11483
|
* Creates and initializes an instance of this class.
|
|
@@ -11634,11 +11634,11 @@ class Og {
|
|
|
11634
11634
|
}
|
|
11635
11635
|
}
|
|
11636
11636
|
_t.AvatarVideoFormat = Og;
|
|
11637
|
-
var Wr = {},
|
|
11637
|
+
var Wr = {}, cc;
|
|
11638
11638
|
function Dg() {
|
|
11639
|
-
if (
|
|
11639
|
+
if (cc)
|
|
11640
11640
|
return Wr;
|
|
11641
|
-
|
|
11641
|
+
cc = 1, Object.defineProperty(Wr, "__esModule", { value: !0 }), Wr.AvatarWebRTCConnectionResult = void 0;
|
|
11642
11642
|
const t = R();
|
|
11643
11643
|
let e = class extends t.SynthesisResult {
|
|
11644
11644
|
/**
|
|
@@ -11666,11 +11666,11 @@ function Dg() {
|
|
|
11666
11666
|
};
|
|
11667
11667
|
return Wr.AvatarWebRTCConnectionResult = e, Wr;
|
|
11668
11668
|
}
|
|
11669
|
-
var Vr = {},
|
|
11669
|
+
var Vr = {}, pc;
|
|
11670
11670
|
function kg() {
|
|
11671
|
-
if (
|
|
11671
|
+
if (pc)
|
|
11672
11672
|
return Vr;
|
|
11673
|
-
|
|
11673
|
+
pc = 1, Object.defineProperty(Vr, "__esModule", { value: !0 }), Vr.Diagnostics = void 0;
|
|
11674
11674
|
const t = V(), e = A();
|
|
11675
11675
|
let r = class {
|
|
11676
11676
|
static SetLoggingLevel(p) {
|
|
@@ -11694,9 +11694,9 @@ function kg() {
|
|
|
11694
11694
|
};
|
|
11695
11695
|
return Vr.Diagnostics = r, r.privListener = void 0, Vr;
|
|
11696
11696
|
}
|
|
11697
|
-
var
|
|
11697
|
+
var uc;
|
|
11698
11698
|
function R() {
|
|
11699
|
-
return
|
|
11699
|
+
return uc || (uc = 1, function(t) {
|
|
11700
11700
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ConnectionEventArgs = t.CancellationErrorCode = t.CancellationDetails = t.CancellationDetailsBase = t.IntentRecognitionCanceledEventArgs = t.TranslationRecognitionCanceledEventArgs = t.NoMatchDetails = t.NoMatchReason = t.Translations = t.TranslationRecognizer = t.VoiceProfileType = t.IntentRecognizer = t.SpeechRecognizer = t.Recognizer = t.PropertyId = t.PropertyCollection = t.SpeechTranslationConfigImpl = t.SpeechTranslationConfig = t.SpeechConfigImpl = t.SpeechConfig = t.ResultReason = t.TranslationSynthesisResult = t.TranslationRecognitionResult = t.TranslationSynthesisEventArgs = t.TranslationRecognitionEventArgs = t.SpeechRecognitionCanceledEventArgs = t.MeetingTranscriptionEventArgs = t.ConversationTranscriptionEventArgs = t.SpeechRecognitionEventArgs = t.LanguageUnderstandingModel = t.IntentRecognitionResult = t.SpeechRecognitionResult = t.RecognitionResult = t.IntentRecognitionEventArgs = t.OutputFormat = t.RecognitionEventArgs = t.SessionEventArgs = t.KeywordRecognitionModel = t.PushAudioOutputStreamCallback = t.PullAudioInputStreamCallback = t.CancellationReason = t.PushAudioOutputStream = t.PullAudioOutputStream = t.AudioOutputStream = t.PushAudioInputStream = t.PullAudioInputStream = t.AudioInputStream = t.AudioFormatTag = t.AudioStreamFormat = t.AudioConfig = void 0, t.SpeechSynthesisEventArgs = t.SpeechSynthesisResult = t.SynthesisResult = t.SpeechSynthesizer = t.SpeechSynthesisOutputFormat = t.Synthesizer = t.User = t.ParticipantChangedReason = t.Participant = t.MeetingTranscriber = t.Meeting = t.ConversationTranscriptionResult = t.ConversationTranscriber = t.ConversationTranslator = t.ConversationTranslationResult = t.ConversationTranslationEventArgs = t.ConversationTranslationCanceledEventArgs = t.ConversationParticipantsChangedEventArgs = t.ConversationExpirationEventArgs = t.Conversation = t.SpeakerRecognitionCancellationDetails = t.SpeakerRecognitionResultType = t.SpeakerRecognitionResult = t.SourceLanguageConfig = t.AutoDetectSourceLanguageResult = t.AutoDetectSourceLanguageConfig = t.SpeakerVerificationModel = t.SpeakerIdentificationModel = t.SpeakerRecognizer = t.VoiceProfileClient = t.VoiceProfilePhraseResult = t.VoiceProfileCancellationDetails = t.VoiceProfileResult = t.VoiceProfileEnrollmentCancellationDetails = t.VoiceProfileEnrollmentResult = t.VoiceProfile = t.ConnectionMessage = t.ConnectionMessageEventArgs = t.BaseAudioPlayer = t.ProfanityOption = t.ServicePropertyChannel = t.TurnStatusReceivedEventArgs = t.ActivityReceivedEventArgs = t.DialogServiceConnector = t.CustomCommandsConfig = t.BotFrameworkConfig = t.DialogServiceConfig = t.PhraseListGrammar = t.Connection = t.ServiceEventArgs = void 0, t.LogLevel = t.Diagnostics = t.AvatarWebRTCConnectionResult = t.Coordinate = t.AvatarVideoFormat = t.AvatarSynthesizer = t.AvatarEventArgs = t.AvatarConfig = t.LanguageIdMode = t.PronunciationAssessmentResult = t.PronunciationAssessmentConfig = t.PronunciationAssessmentGranularity = t.PronunciationAssessmentGradingSystem = t.MeetingTranscriptionCanceledEventArgs = t.ConversationTranscriptionCanceledEventArgs = t.SpeakerAudioDestination = t.VoiceInfo = t.SynthesisVoiceType = t.SynthesisVoiceGender = t.SynthesisVoicesResult = t.SpeechSynthesisBoundaryType = t.SpeechSynthesisVisemeEventArgs = t.SpeechSynthesisBookmarkEventArgs = t.SpeechSynthesisWordBoundaryEventArgs = void 0;
|
|
11701
11701
|
var e = Wp();
|
|
11702
11702
|
Object.defineProperty(t, "AudioConfig", { enumerable: !0, get: function() {
|
|
@@ -11832,9 +11832,9 @@ function R() {
|
|
|
11832
11832
|
Object.defineProperty(t, "SpeechRecognizer", { enumerable: !0, get: function() {
|
|
11833
11833
|
return ne.SpeechRecognizer;
|
|
11834
11834
|
} });
|
|
11835
|
-
var
|
|
11835
|
+
var Ro = Pf();
|
|
11836
11836
|
Object.defineProperty(t, "IntentRecognizer", { enumerable: !0, get: function() {
|
|
11837
|
-
return
|
|
11837
|
+
return Ro.IntentRecognizer;
|
|
11838
11838
|
} });
|
|
11839
11839
|
var Yu = eu;
|
|
11840
11840
|
Object.defineProperty(t, "VoiceProfileType", { enumerable: !0, get: function() {
|
|
@@ -11892,7 +11892,7 @@ function R() {
|
|
|
11892
11892
|
Object.defineProperty(t, "PhraseListGrammar", { enumerable: !0, get: function() {
|
|
11893
11893
|
return hd.PhraseListGrammar;
|
|
11894
11894
|
} });
|
|
11895
|
-
var ld =
|
|
11895
|
+
var ld = eo();
|
|
11896
11896
|
Object.defineProperty(t, "DialogServiceConfig", { enumerable: !0, get: function() {
|
|
11897
11897
|
return ld.DialogServiceConfig;
|
|
11898
11898
|
} });
|
|
@@ -11940,17 +11940,17 @@ function R() {
|
|
|
11940
11940
|
Object.defineProperty(t, "VoiceProfile", { enumerable: !0, get: function() {
|
|
11941
11941
|
return Id.VoiceProfile;
|
|
11942
11942
|
} });
|
|
11943
|
-
var
|
|
11943
|
+
var Po = Uf();
|
|
11944
11944
|
Object.defineProperty(t, "VoiceProfileEnrollmentResult", { enumerable: !0, get: function() {
|
|
11945
|
-
return
|
|
11945
|
+
return Po.VoiceProfileEnrollmentResult;
|
|
11946
11946
|
} }), Object.defineProperty(t, "VoiceProfileEnrollmentCancellationDetails", { enumerable: !0, get: function() {
|
|
11947
|
-
return
|
|
11947
|
+
return Po.VoiceProfileEnrollmentCancellationDetails;
|
|
11948
11948
|
} });
|
|
11949
|
-
var
|
|
11949
|
+
var Eo = Wf();
|
|
11950
11950
|
Object.defineProperty(t, "VoiceProfileResult", { enumerable: !0, get: function() {
|
|
11951
|
-
return
|
|
11951
|
+
return Eo.VoiceProfileResult;
|
|
11952
11952
|
} }), Object.defineProperty(t, "VoiceProfileCancellationDetails", { enumerable: !0, get: function() {
|
|
11953
|
-
return
|
|
11953
|
+
return Eo.VoiceProfileCancellationDetails;
|
|
11954
11954
|
} });
|
|
11955
11955
|
var Td = Vf();
|
|
11956
11956
|
Object.defineProperty(t, "VoiceProfilePhraseResult", { enumerable: !0, get: function() {
|
|
@@ -11992,7 +11992,7 @@ function R() {
|
|
|
11992
11992
|
} }), Object.defineProperty(t, "SpeakerRecognitionCancellationDetails", { enumerable: !0, get: function() {
|
|
11993
11993
|
return hs.SpeakerRecognitionCancellationDetails;
|
|
11994
11994
|
} });
|
|
11995
|
-
var ce =
|
|
11995
|
+
var ce = io();
|
|
11996
11996
|
Object.defineProperty(t, "Conversation", { enumerable: !0, get: function() {
|
|
11997
11997
|
return ce.Conversation;
|
|
11998
11998
|
} }), Object.defineProperty(t, "ConversationExpirationEventArgs", { enumerable: !0, get: function() {
|
|
@@ -12022,11 +12022,11 @@ function R() {
|
|
|
12022
12022
|
} }), Object.defineProperty(t, "User", { enumerable: !0, get: function() {
|
|
12023
12023
|
return ce.User;
|
|
12024
12024
|
} });
|
|
12025
|
-
var kd =
|
|
12025
|
+
var kd = so();
|
|
12026
12026
|
Object.defineProperty(t, "Synthesizer", { enumerable: !0, get: function() {
|
|
12027
12027
|
return kd.Synthesizer;
|
|
12028
12028
|
} });
|
|
12029
|
-
var Nd =
|
|
12029
|
+
var Nd = Qs;
|
|
12030
12030
|
Object.defineProperty(t, "SpeechSynthesisOutputFormat", { enumerable: !0, get: function() {
|
|
12031
12031
|
return Nd.SpeechSynthesisOutputFormat;
|
|
12032
12032
|
} });
|
|
@@ -12102,7 +12102,7 @@ function R() {
|
|
|
12102
12102
|
Object.defineProperty(t, "PronunciationAssessmentResult", { enumerable: !0, get: function() {
|
|
12103
12103
|
return Qd.PronunciationAssessmentResult;
|
|
12104
12104
|
} });
|
|
12105
|
-
var Xd =
|
|
12105
|
+
var Xd = ro;
|
|
12106
12106
|
Object.defineProperty(t, "LanguageIdMode", { enumerable: !0, get: function() {
|
|
12107
12107
|
return Xd.LanguageIdMode;
|
|
12108
12108
|
} });
|
|
@@ -12118,11 +12118,11 @@ function R() {
|
|
|
12118
12118
|
Object.defineProperty(t, "AvatarSynthesizer", { enumerable: !0, get: function() {
|
|
12119
12119
|
return eh.AvatarSynthesizer;
|
|
12120
12120
|
} });
|
|
12121
|
-
var
|
|
12121
|
+
var Io = _t;
|
|
12122
12122
|
Object.defineProperty(t, "AvatarVideoFormat", { enumerable: !0, get: function() {
|
|
12123
|
-
return
|
|
12123
|
+
return Io.AvatarVideoFormat;
|
|
12124
12124
|
} }), Object.defineProperty(t, "Coordinate", { enumerable: !0, get: function() {
|
|
12125
|
-
return
|
|
12125
|
+
return Io.Coordinate;
|
|
12126
12126
|
} });
|
|
12127
12127
|
var th = Dg();
|
|
12128
12128
|
Object.defineProperty(t, "AvatarWebRTCConnectionResult", { enumerable: !0, get: function() {
|
|
@@ -12132,17 +12132,17 @@ function R() {
|
|
|
12132
12132
|
Object.defineProperty(t, "Diagnostics", { enumerable: !0, get: function() {
|
|
12133
12133
|
return rh.Diagnostics;
|
|
12134
12134
|
} });
|
|
12135
|
-
var nh =
|
|
12135
|
+
var nh = Js;
|
|
12136
12136
|
Object.defineProperty(t, "LogLevel", { enumerable: !0, get: function() {
|
|
12137
12137
|
return nh.LogLevel;
|
|
12138
12138
|
} });
|
|
12139
|
-
}(
|
|
12139
|
+
}(As)), As;
|
|
12140
12140
|
}
|
|
12141
|
-
var
|
|
12141
|
+
var dc;
|
|
12142
12142
|
function Ng() {
|
|
12143
|
-
if (
|
|
12143
|
+
if (dc)
|
|
12144
12144
|
return Wt;
|
|
12145
|
-
|
|
12145
|
+
dc = 1, Object.defineProperty(Wt, "__esModule", { value: !0 }), Wt.ProxyInfo = void 0;
|
|
12146
12146
|
const t = R();
|
|
12147
12147
|
let e = class Au {
|
|
12148
12148
|
constructor(i, p, a, s) {
|
|
@@ -12203,9 +12203,9 @@ var jg = (t) => (...e) => {
|
|
|
12203
12203
|
}), i || (i = "GET"), r.size === 0 && r.add(200), t(r, i, p, a, s);
|
|
12204
12204
|
};
|
|
12205
12205
|
const Lg = jg;
|
|
12206
|
-
class
|
|
12206
|
+
class oo extends Error {
|
|
12207
12207
|
constructor(e, ...r) {
|
|
12208
|
-
super(...r), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
12208
|
+
super(...r), Error.captureStackTrace && Error.captureStackTrace(this, oo), this.name = "StatusError", this.message = e.statusMessage, this.statusCode = e.status, this.res = e, this.json = e.json.bind(e), this.text = e.text.bind(e), this.arrayBuffer = e.arrayBuffer.bind(e);
|
|
12209
12209
|
let i;
|
|
12210
12210
|
Object.defineProperty(this, "responseBody", { get: () => (i || (i = this.arrayBuffer()), i) }), this.headers = {};
|
|
12211
12211
|
for (const [a, s] of e.headers.entries())
|
|
@@ -12225,7 +12225,7 @@ const Bg = (t, e, r, i, p) => async (a, s, n = {}) => {
|
|
|
12225
12225
|
n = new Headers({ ...i || {}, ...n });
|
|
12226
12226
|
const c = await fetch(o, { method: e, headers: n, body: s });
|
|
12227
12227
|
if (c.statusCode = c.status, !t.has(c.status))
|
|
12228
|
-
throw new
|
|
12228
|
+
throw new oo(c);
|
|
12229
12229
|
return r === "json" ? c.json() : r === "buffer" ? c.arrayBuffer() : r === "string" ? c.text() : c;
|
|
12230
12230
|
};
|
|
12231
12231
|
var qg = Lg(Bg);
|
|
@@ -12348,9 +12348,9 @@ We.privDefaultParams = {
|
|
|
12348
12348
|
subscriptionRegion: "Ocp-Apim-Subscription-Region",
|
|
12349
12349
|
token: "X-CapitoToken"
|
|
12350
12350
|
};
|
|
12351
|
-
var
|
|
12351
|
+
var hc;
|
|
12352
12352
|
function V() {
|
|
12353
|
-
return
|
|
12353
|
+
return hc || (hc = 1, function(t) {
|
|
12354
12354
|
var e = N && N.__createBinding || (Object.create ? function(i, p, a, s) {
|
|
12355
12355
|
s === void 0 && (s = a), Object.defineProperty(i, s, { enumerable: !0, get: function() {
|
|
12356
12356
|
return p[a];
|
|
@@ -12362,13 +12362,13 @@ function V() {
|
|
|
12362
12362
|
a !== "default" && !Object.prototype.hasOwnProperty.call(p, a) && e(p, i, a);
|
|
12363
12363
|
};
|
|
12364
12364
|
Object.defineProperty(t, "__esModule", { value: !0 }), r(Ci, t), r(jp, t), r(zv(), t), r(jv(), t), r(yi, t), r(Ri, t), r(kn, t), r(Pi, t), r(Ng(), t), r(wu, t), r(Bn, t);
|
|
12365
|
-
}(
|
|
12365
|
+
}(Es)), Es;
|
|
12366
12366
|
}
|
|
12367
|
-
var
|
|
12367
|
+
var lc;
|
|
12368
12368
|
function Fg() {
|
|
12369
|
-
if (
|
|
12369
|
+
if (lc)
|
|
12370
12370
|
return Ft;
|
|
12371
|
-
|
|
12371
|
+
lc = 1, Object.defineProperty(Ft, "__esModule", { value: !0 }), Ft.IntentConnectionFactory = void 0;
|
|
12372
12372
|
const t = V(), e = R(), r = Ce(), i = T(), p = W;
|
|
12373
12373
|
let a = class extends r.ConnectionFactoryBase {
|
|
12374
12374
|
create(n, o, c) {
|
|
@@ -12444,11 +12444,11 @@ function Fg() {
|
|
|
12444
12444
|
};
|
|
12445
12445
|
return Ft.IntentConnectionFactory = a, Ft;
|
|
12446
12446
|
}
|
|
12447
|
-
var at = {},
|
|
12447
|
+
var at = {}, vc;
|
|
12448
12448
|
function xg() {
|
|
12449
|
-
if (
|
|
12449
|
+
if (vc)
|
|
12450
12450
|
return at;
|
|
12451
|
-
|
|
12451
|
+
vc = 1, Object.defineProperty(at, "__esModule", { value: !0 }), at.VoiceProfileConnectionFactory = at.SpeakerRecognitionConnectionFactory = void 0;
|
|
12452
12452
|
const t = V(), e = R(), r = Ce(), i = T(), p = W;
|
|
12453
12453
|
class a extends r.ConnectionFactoryBase {
|
|
12454
12454
|
create(c, u, d, h) {
|
|
@@ -12589,13 +12589,13 @@ var $i = {};
|
|
|
12589
12589
|
var Hr = {}, Ne = {};
|
|
12590
12590
|
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
12591
12591
|
Ne.SpeechConnectionMessage = void 0;
|
|
12592
|
-
const
|
|
12593
|
-
class
|
|
12592
|
+
const Os = A(), Te = W;
|
|
12593
|
+
class ao extends Os.ConnectionMessage {
|
|
12594
12594
|
constructor(e, r, i, p, a, s, n, o) {
|
|
12595
12595
|
if (!r)
|
|
12596
|
-
throw new
|
|
12596
|
+
throw new Os.ArgumentNullError("path");
|
|
12597
12597
|
if (!i)
|
|
12598
|
-
throw new
|
|
12598
|
+
throw new Os.ArgumentNullError("requestId");
|
|
12599
12599
|
const c = {};
|
|
12600
12600
|
if (c[Te.HeaderNames.Path] = r, c[Te.HeaderNames.RequestId] = i, c[Te.HeaderNames.RequestTimestamp] = (/* @__PURE__ */ new Date()).toISOString(), p && (c[Te.HeaderNames.ContentType] = p), s && (c[Te.HeaderNames.RequestStreamId] = s), n)
|
|
12601
12601
|
for (const u in n)
|
|
@@ -12623,10 +12623,10 @@ class so extends Ms.ConnectionMessage {
|
|
|
12623
12623
|
if (e.headers)
|
|
12624
12624
|
for (const n in e.headers)
|
|
12625
12625
|
n && (n.toLowerCase() === Te.HeaderNames.Path.toLowerCase() ? r = e.headers[n] : n.toLowerCase() === Te.HeaderNames.RequestId.toLowerCase() ? i = e.headers[n] : n.toLowerCase() === Te.HeaderNames.ContentType.toLowerCase() ? p = e.headers[n] : n.toLowerCase() === Te.HeaderNames.RequestStreamId.toLowerCase() ? a = e.headers[n] : s[n] = e.headers[n]);
|
|
12626
|
-
return new
|
|
12626
|
+
return new ao(e.messageType, r, i, p, e.body, a, s, e.id);
|
|
12627
12627
|
}
|
|
12628
12628
|
}
|
|
12629
|
-
Ne.SpeechConnectionMessage =
|
|
12629
|
+
Ne.SpeechConnectionMessage = ao;
|
|
12630
12630
|
var _u = {};
|
|
12631
12631
|
(function(t) {
|
|
12632
12632
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SegmentationMode = void 0, function(e) {
|
|
@@ -12683,11 +12683,11 @@ var ju = {};
|
|
|
12683
12683
|
e.None = "None", e.Translate = "Translate";
|
|
12684
12684
|
}(t.NextAction || (t.NextAction = {}));
|
|
12685
12685
|
})(ju);
|
|
12686
|
-
var
|
|
12686
|
+
var fc;
|
|
12687
12687
|
function Ug() {
|
|
12688
|
-
if (
|
|
12688
|
+
if (fc)
|
|
12689
12689
|
return Hr;
|
|
12690
|
-
|
|
12690
|
+
fc = 1, Object.defineProperty(Hr, "__esModule", { value: !0 }), Hr.ServiceRecognizerBase = void 0;
|
|
12691
12691
|
const t = V(), e = A(), r = R(), i = T(), p = Ne, a = _u, s = he, n = bu, o = Mu, c = Ou, u = Du, d = ku, h = Nu, l = zu, f = ju;
|
|
12692
12692
|
let g = class Pn {
|
|
12693
12693
|
constructor(v, m, C, y, E) {
|
|
@@ -13125,11 +13125,11 @@ function Ug() {
|
|
|
13125
13125
|
};
|
|
13126
13126
|
return Hr.ServiceRecognizerBase = g, g.telemetryDataEnabled = !0, Hr;
|
|
13127
13127
|
}
|
|
13128
|
-
var $r = {},
|
|
13128
|
+
var $r = {}, gc;
|
|
13129
13129
|
function Wg() {
|
|
13130
|
-
if (
|
|
13130
|
+
if (gc)
|
|
13131
13131
|
return $r;
|
|
13132
|
-
|
|
13132
|
+
gc = 1, Object.defineProperty($r, "__esModule", { value: !0 }), $r.ConversationServiceRecognizer = void 0;
|
|
13133
13133
|
const t = R(), e = T();
|
|
13134
13134
|
let r = class extends e.ServiceRecognizerBase {
|
|
13135
13135
|
constructor(p, a, s, n, o) {
|
|
@@ -13182,9 +13182,9 @@ function Wg() {
|
|
|
13182
13182
|
};
|
|
13183
13183
|
return $r.ConversationServiceRecognizer = r, $r;
|
|
13184
13184
|
}
|
|
13185
|
-
var
|
|
13185
|
+
var Ds = {}, mc;
|
|
13186
13186
|
function Vg() {
|
|
13187
|
-
return
|
|
13187
|
+
return mc || (mc = 1, function(t) {
|
|
13188
13188
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.RecognizerConfig = t.SpeechResultFormat = void 0;
|
|
13189
13189
|
const e = R(), r = T(), i = he;
|
|
13190
13190
|
(function(a) {
|
|
@@ -13245,14 +13245,14 @@ function Vg() {
|
|
|
13245
13245
|
}
|
|
13246
13246
|
}
|
|
13247
13247
|
t.RecognizerConfig = p;
|
|
13248
|
-
}(
|
|
13248
|
+
}(Ds)), Ds;
|
|
13249
13249
|
}
|
|
13250
13250
|
var Lu = {};
|
|
13251
13251
|
Object.defineProperty(Lu, "__esModule", { value: !0 });
|
|
13252
13252
|
var Ki = {};
|
|
13253
13253
|
Object.defineProperty(Ki, "__esModule", { value: !0 });
|
|
13254
13254
|
Ki.WebsocketMessageFormatter = void 0;
|
|
13255
|
-
const ve = A(),
|
|
13255
|
+
const ve = A(), Sc = `\r
|
|
13256
13256
|
`;
|
|
13257
13257
|
class Hg {
|
|
13258
13258
|
toConnectionMessage(e) {
|
|
@@ -13290,7 +13290,7 @@ class Hg {
|
|
|
13290
13290
|
const r = new ve.Deferred();
|
|
13291
13291
|
try {
|
|
13292
13292
|
if (e.messageType === ve.MessageType.Text) {
|
|
13293
|
-
const i = `${this.makeHeaders(e)}${
|
|
13293
|
+
const i = `${this.makeHeaders(e)}${Sc}${e.textBody ? e.textBody : ""}`;
|
|
13294
13294
|
r.resolve(new ve.RawWebsocketMessage(ve.MessageType.Text, i, e.id));
|
|
13295
13295
|
} else if (e.messageType === ve.MessageType.Binary) {
|
|
13296
13296
|
const i = this.makeHeaders(e), p = e.binaryBody, a = this.stringToArrayBuffer(i), s = new Int8Array(a), n = s.byteLength, o = new Int8Array(2 + n + (p ? p.byteLength : 0));
|
|
@@ -13310,7 +13310,7 @@ class Hg {
|
|
|
13310
13310
|
let r = "";
|
|
13311
13311
|
if (e.headers)
|
|
13312
13312
|
for (const i in e.headers)
|
|
13313
|
-
i && (r += `${i}: ${e.headers[i]}${
|
|
13313
|
+
i && (r += `${i}: ${e.headers[i]}${Sc}`);
|
|
13314
13314
|
return r;
|
|
13315
13315
|
}
|
|
13316
13316
|
parseHeaders(e) {
|
|
@@ -13335,11 +13335,11 @@ class Hg {
|
|
|
13335
13335
|
}
|
|
13336
13336
|
}
|
|
13337
13337
|
Ki.WebsocketMessageFormatter = Hg;
|
|
13338
|
-
var Kr = {},
|
|
13338
|
+
var Kr = {}, Cc;
|
|
13339
13339
|
function $g() {
|
|
13340
|
-
if (
|
|
13340
|
+
if (Cc)
|
|
13341
13341
|
return Kr;
|
|
13342
|
-
|
|
13342
|
+
Cc = 1, Object.defineProperty(Kr, "__esModule", { value: !0 }), Kr.SpeechConnectionFactory = void 0;
|
|
13343
13343
|
const t = V(), e = T(), r = R(), i = Ce(), p = T(), a = W, s = Se, n = he;
|
|
13344
13344
|
let o = class extends i.ConnectionFactoryBase {
|
|
13345
13345
|
constructor() {
|
|
@@ -13372,11 +13372,11 @@ function $g() {
|
|
|
13372
13372
|
};
|
|
13373
13373
|
return Kr.SpeechConnectionFactory = o, Kr;
|
|
13374
13374
|
}
|
|
13375
|
-
var Jr = {},
|
|
13375
|
+
var Jr = {}, yc;
|
|
13376
13376
|
function Kg() {
|
|
13377
|
-
if (
|
|
13377
|
+
if (yc)
|
|
13378
13378
|
return Jr;
|
|
13379
|
-
|
|
13379
|
+
yc = 1, Object.defineProperty(Jr, "__esModule", { value: !0 }), Jr.ConversationTranscriberConnectionFactory = void 0;
|
|
13380
13380
|
const t = V(), e = R(), r = T(), i = Ce(), p = T(), a = W, s = Se;
|
|
13381
13381
|
let n = class extends i.ConnectionFactoryBase {
|
|
13382
13382
|
constructor() {
|
|
@@ -13415,11 +13415,11 @@ function Kg() {
|
|
|
13415
13415
|
};
|
|
13416
13416
|
return Jr.ConversationTranscriberConnectionFactory = n, Jr;
|
|
13417
13417
|
}
|
|
13418
|
-
var Gr = {},
|
|
13418
|
+
var Gr = {}, Rc;
|
|
13419
13419
|
function Jg() {
|
|
13420
|
-
if (
|
|
13420
|
+
if (Rc)
|
|
13421
13421
|
return Gr;
|
|
13422
|
-
|
|
13422
|
+
Rc = 1, Object.defineProperty(Gr, "__esModule", { value: !0 }), Gr.TranscriberConnectionFactory = void 0;
|
|
13423
13423
|
const t = V(), e = R(), r = Ce(), i = T(), p = W, a = Se;
|
|
13424
13424
|
let s = class extends r.ConnectionFactoryBase {
|
|
13425
13425
|
constructor() {
|
|
@@ -13443,11 +13443,11 @@ function Jg() {
|
|
|
13443
13443
|
};
|
|
13444
13444
|
return Gr.TranscriberConnectionFactory = s, Gr;
|
|
13445
13445
|
}
|
|
13446
|
-
var Qr = {},
|
|
13446
|
+
var Qr = {}, Pc;
|
|
13447
13447
|
function Gg() {
|
|
13448
|
-
if (
|
|
13448
|
+
if (Pc)
|
|
13449
13449
|
return Qr;
|
|
13450
|
-
|
|
13450
|
+
Pc = 1, Object.defineProperty(Qr, "__esModule", { value: !0 }), Qr.TranslationConnectionFactory = void 0;
|
|
13451
13451
|
const t = V(), e = Ln, r = R(), i = Ce(), p = T(), a = W, s = Se, n = he;
|
|
13452
13452
|
let o = class extends i.ConnectionFactoryBase {
|
|
13453
13453
|
constructor() {
|
|
@@ -13478,11 +13478,11 @@ function Gg() {
|
|
|
13478
13478
|
};
|
|
13479
13479
|
return Qr.TranslationConnectionFactory = o, Qr;
|
|
13480
13480
|
}
|
|
13481
|
-
var Xr = {},
|
|
13481
|
+
var Xr = {}, Ec;
|
|
13482
13482
|
function Qg() {
|
|
13483
|
-
if (
|
|
13483
|
+
if (Ec)
|
|
13484
13484
|
return Xr;
|
|
13485
|
-
|
|
13485
|
+
Ec = 1, Object.defineProperty(Xr, "__esModule", { value: !0 }), Xr.EnumTranslation = void 0;
|
|
13486
13486
|
const t = R(), e = T();
|
|
13487
13487
|
let r = class {
|
|
13488
13488
|
static implTranslateRecognitionResult(p, a = !1) {
|
|
@@ -13574,11 +13574,11 @@ var Bu = {};
|
|
|
13574
13574
|
e[e.Success = 0] = "Success", e[e.NoMatch = 1] = "NoMatch", e[e.InitialSilenceTimeout = 2] = "InitialSilenceTimeout", e[e.BabbleTimeout = 3] = "BabbleTimeout", e[e.Error = 4] = "Error", e[e.EndOfDictation = 5] = "EndOfDictation", e[e.TooManyRequests = 6] = "TooManyRequests", e[e.BadRequest = 7] = "BadRequest", e[e.Forbidden = 8] = "Forbidden";
|
|
13575
13575
|
}(t.RecognitionStatus || (t.RecognitionStatus = {}));
|
|
13576
13576
|
})(Bu);
|
|
13577
|
-
var Zr = {},
|
|
13577
|
+
var Zr = {}, Ic;
|
|
13578
13578
|
function Xg() {
|
|
13579
|
-
if (
|
|
13579
|
+
if (Ic)
|
|
13580
13580
|
return Zr;
|
|
13581
|
-
|
|
13581
|
+
Ic = 1, Object.defineProperty(Zr, "__esModule", { value: !0 }), Zr.TranslationSynthesisEnd = void 0;
|
|
13582
13582
|
const t = T();
|
|
13583
13583
|
let e = class qu {
|
|
13584
13584
|
constructor(i) {
|
|
@@ -13599,7 +13599,7 @@ function Xg() {
|
|
|
13599
13599
|
var Ji = {};
|
|
13600
13600
|
Object.defineProperty(Ji, "__esModule", { value: !0 });
|
|
13601
13601
|
Ji.TranslationHypothesis = void 0;
|
|
13602
|
-
const Zg = b,
|
|
13602
|
+
const Zg = b, Tc = gi;
|
|
13603
13603
|
class Gn {
|
|
13604
13604
|
constructor(e, r) {
|
|
13605
13605
|
this.privTranslationHypothesis = e, this.privTranslationHypothesis.Offset += r, this.privTranslationHypothesis.Translation.TranslationStatus = this.mapTranslationStatus(this.privTranslationHypothesis.Translation.TranslationStatus);
|
|
@@ -13632,34 +13632,34 @@ class Gn {
|
|
|
13632
13632
|
const e = { ...this.privTranslationHypothesis };
|
|
13633
13633
|
return e.Translation !== void 0 ? JSON.stringify({
|
|
13634
13634
|
...e,
|
|
13635
|
-
TranslationStatus:
|
|
13635
|
+
TranslationStatus: Tc.TranslationStatus[e.Translation.TranslationStatus]
|
|
13636
13636
|
}) : JSON.stringify(e);
|
|
13637
13637
|
}
|
|
13638
13638
|
mapTranslationStatus(e) {
|
|
13639
13639
|
if (typeof e == "string")
|
|
13640
|
-
return
|
|
13640
|
+
return Tc.TranslationStatus[e];
|
|
13641
13641
|
if (typeof e == "number")
|
|
13642
13642
|
return e;
|
|
13643
13643
|
}
|
|
13644
13644
|
}
|
|
13645
13645
|
Ji.TranslationHypothesis = Gn;
|
|
13646
|
-
var Yr = {},
|
|
13646
|
+
var Yr = {}, Ac;
|
|
13647
13647
|
function Yg() {
|
|
13648
|
-
if (
|
|
13648
|
+
if (Ac)
|
|
13649
13649
|
return Yr;
|
|
13650
|
-
|
|
13650
|
+
Ac = 1, Object.defineProperty(Yr, "__esModule", { value: !0 }), Yr.TranslationPhrase = void 0;
|
|
13651
13651
|
const t = b, e = T(), r = gi;
|
|
13652
|
-
let i = class
|
|
13652
|
+
let i = class Us {
|
|
13653
13653
|
constructor(a, s) {
|
|
13654
13654
|
this.privTranslationPhrase = a, this.privTranslationPhrase.Offset += s, this.privTranslationPhrase.RecognitionStatus = this.mapRecognitionStatus(this.privTranslationPhrase.RecognitionStatus), this.privTranslationPhrase.Translation !== void 0 && (this.privTranslationPhrase.Translation.TranslationStatus = this.mapTranslationStatus(this.privTranslationPhrase.Translation.TranslationStatus));
|
|
13655
13655
|
}
|
|
13656
13656
|
static fromJSON(a, s) {
|
|
13657
|
-
return new
|
|
13657
|
+
return new Us(JSON.parse(a), s);
|
|
13658
13658
|
}
|
|
13659
13659
|
static fromTranslationResponse(a, s) {
|
|
13660
13660
|
t.Contracts.throwIfNullOrUndefined(a, "translationResponse");
|
|
13661
13661
|
const n = a.SpeechPhrase;
|
|
13662
|
-
return a.SpeechPhrase = void 0, n.Translation = a, n.Text = n.DisplayText, new
|
|
13662
|
+
return a.SpeechPhrase = void 0, n.Translation = a, n.Text = n.DisplayText, new Us(n, s);
|
|
13663
13663
|
}
|
|
13664
13664
|
get RecognitionStatus() {
|
|
13665
13665
|
return this.privTranslationPhrase.RecognitionStatus;
|
|
@@ -13709,11 +13709,11 @@ function Yg() {
|
|
|
13709
13709
|
};
|
|
13710
13710
|
return Yr.TranslationPhrase = i, Yr;
|
|
13711
13711
|
}
|
|
13712
|
-
var en = {},
|
|
13712
|
+
var en = {}, wc;
|
|
13713
13713
|
function em() {
|
|
13714
|
-
if (
|
|
13714
|
+
if (wc)
|
|
13715
13715
|
return en;
|
|
13716
|
-
|
|
13716
|
+
wc = 1, Object.defineProperty(en, "__esModule", { value: !0 }), en.TranslationServiceRecognizer = void 0;
|
|
13717
13717
|
const t = A(), e = R(), r = T();
|
|
13718
13718
|
let i = class extends r.ConversationServiceRecognizer {
|
|
13719
13719
|
constructor(a, s, n, o, c) {
|
|
@@ -13901,27 +13901,27 @@ function em() {
|
|
|
13901
13901
|
var Gi = {};
|
|
13902
13902
|
Object.defineProperty(Gi, "__esModule", { value: !0 });
|
|
13903
13903
|
Gi.SpeechDetected = void 0;
|
|
13904
|
-
class
|
|
13904
|
+
class co {
|
|
13905
13905
|
constructor(e, r) {
|
|
13906
13906
|
this.privSpeechStartDetected = JSON.parse(e), this.privSpeechStartDetected.Offset += r;
|
|
13907
13907
|
}
|
|
13908
13908
|
static fromJSON(e, r) {
|
|
13909
|
-
return new
|
|
13909
|
+
return new co(e, r);
|
|
13910
13910
|
}
|
|
13911
13911
|
get Offset() {
|
|
13912
13912
|
return this.privSpeechStartDetected.Offset;
|
|
13913
13913
|
}
|
|
13914
13914
|
}
|
|
13915
|
-
Gi.SpeechDetected =
|
|
13915
|
+
Gi.SpeechDetected = co;
|
|
13916
13916
|
var Qi = {};
|
|
13917
13917
|
Object.defineProperty(Qi, "__esModule", { value: !0 });
|
|
13918
13918
|
Qi.SpeechHypothesis = void 0;
|
|
13919
|
-
class
|
|
13919
|
+
class po {
|
|
13920
13920
|
constructor(e, r) {
|
|
13921
13921
|
this.privSpeechHypothesis = JSON.parse(e), this.updateOffset(r);
|
|
13922
13922
|
}
|
|
13923
13923
|
static fromJSON(e, r) {
|
|
13924
|
-
return new
|
|
13924
|
+
return new po(e, r);
|
|
13925
13925
|
}
|
|
13926
13926
|
updateOffset(e) {
|
|
13927
13927
|
this.privSpeechHypothesis.Offset += e;
|
|
@@ -13948,16 +13948,16 @@ class ao {
|
|
|
13948
13948
|
return this.privSpeechHypothesis.SpeakerId;
|
|
13949
13949
|
}
|
|
13950
13950
|
}
|
|
13951
|
-
Qi.SpeechHypothesis =
|
|
13951
|
+
Qi.SpeechHypothesis = po;
|
|
13952
13952
|
var Xi = {};
|
|
13953
13953
|
Object.defineProperty(Xi, "__esModule", { value: !0 });
|
|
13954
13954
|
Xi.SpeechKeyword = void 0;
|
|
13955
|
-
class
|
|
13955
|
+
class uo {
|
|
13956
13956
|
constructor(e, r) {
|
|
13957
13957
|
this.privSpeechKeyword = JSON.parse(e), this.privSpeechKeyword.Offset += r;
|
|
13958
13958
|
}
|
|
13959
13959
|
static fromJSON(e, r) {
|
|
13960
|
-
return new
|
|
13960
|
+
return new uo(e, r);
|
|
13961
13961
|
}
|
|
13962
13962
|
get Status() {
|
|
13963
13963
|
return this.privSpeechKeyword.Status;
|
|
@@ -13975,12 +13975,12 @@ class co {
|
|
|
13975
13975
|
return JSON.stringify(this.privSpeechKeyword);
|
|
13976
13976
|
}
|
|
13977
13977
|
}
|
|
13978
|
-
Xi.SpeechKeyword =
|
|
13979
|
-
var tn = {},
|
|
13978
|
+
Xi.SpeechKeyword = uo;
|
|
13979
|
+
var tn = {}, _c;
|
|
13980
13980
|
function tm() {
|
|
13981
|
-
if (
|
|
13981
|
+
if (_c)
|
|
13982
13982
|
return tn;
|
|
13983
|
-
|
|
13983
|
+
_c = 1, Object.defineProperty(tn, "__esModule", { value: !0 }), tn.SpeechServiceRecognizer = void 0;
|
|
13984
13984
|
const t = R(), e = T();
|
|
13985
13985
|
let r = class extends e.ServiceRecognizerBase {
|
|
13986
13986
|
constructor(p, a, s, n, o) {
|
|
@@ -14126,11 +14126,11 @@ var rn = {}, Fu = {};
|
|
|
14126
14126
|
e.CallCenter = "CallCenter";
|
|
14127
14127
|
}(t.IdentityProvider || (t.IdentityProvider = {}));
|
|
14128
14128
|
})(Fu);
|
|
14129
|
-
var
|
|
14129
|
+
var bc;
|
|
14130
14130
|
function rm() {
|
|
14131
|
-
if (
|
|
14131
|
+
if (bc)
|
|
14132
14132
|
return rn;
|
|
14133
|
-
|
|
14133
|
+
bc = 1, Object.defineProperty(rn, "__esModule", { value: !0 }), rn.ConversationTranscriptionServiceRecognizer = void 0;
|
|
14134
14134
|
const t = R(), e = T(), r = Fu, i = he;
|
|
14135
14135
|
let p = class extends e.ServiceRecognizerBase {
|
|
14136
14136
|
constructor(s, n, o, c, u) {
|
|
@@ -14199,11 +14199,11 @@ function rm() {
|
|
|
14199
14199
|
};
|
|
14200
14200
|
return rn.ConversationTranscriptionServiceRecognizer = p, rn;
|
|
14201
14201
|
}
|
|
14202
|
-
var nn = {},
|
|
14202
|
+
var nn = {}, Mc;
|
|
14203
14203
|
function nm() {
|
|
14204
|
-
if (
|
|
14204
|
+
if (Mc)
|
|
14205
14205
|
return nn;
|
|
14206
|
-
|
|
14206
|
+
Mc = 1, Object.defineProperty(nn, "__esModule", { value: !0 }), nn.TranscriptionServiceRecognizer = void 0;
|
|
14207
14207
|
const t = A(), e = R(), r = T(), i = Ne;
|
|
14208
14208
|
let p = class extends r.ConversationServiceRecognizer {
|
|
14209
14209
|
constructor(s, n, o, c, u) {
|
|
@@ -14317,11 +14317,11 @@ function nm() {
|
|
|
14317
14317
|
};
|
|
14318
14318
|
return nn.TranscriptionServiceRecognizer = p, nn;
|
|
14319
14319
|
}
|
|
14320
|
-
var sn = {},
|
|
14320
|
+
var sn = {}, Oc;
|
|
14321
14321
|
function im() {
|
|
14322
|
-
if (
|
|
14322
|
+
if (Oc)
|
|
14323
14323
|
return sn;
|
|
14324
|
-
|
|
14324
|
+
Oc = 1, Object.defineProperty(sn, "__esModule", { value: !0 }), sn.DetailedSpeechPhrase = void 0;
|
|
14325
14325
|
const t = T();
|
|
14326
14326
|
let e = class xu {
|
|
14327
14327
|
constructor(i, p) {
|
|
@@ -14381,11 +14381,11 @@ function im() {
|
|
|
14381
14381
|
};
|
|
14382
14382
|
return sn.DetailedSpeechPhrase = e, sn;
|
|
14383
14383
|
}
|
|
14384
|
-
var on = {},
|
|
14384
|
+
var on = {}, Dc;
|
|
14385
14385
|
function sm() {
|
|
14386
|
-
if (
|
|
14386
|
+
if (Dc)
|
|
14387
14387
|
return on;
|
|
14388
|
-
|
|
14388
|
+
Dc = 1, Object.defineProperty(on, "__esModule", { value: !0 }), on.SimpleSpeechPhrase = void 0;
|
|
14389
14389
|
const t = T();
|
|
14390
14390
|
let e = class Uu {
|
|
14391
14391
|
constructor(i, p = 0) {
|
|
@@ -14449,11 +14449,11 @@ class om {
|
|
|
14449
14449
|
}
|
|
14450
14450
|
}
|
|
14451
14451
|
Zi.AddedLmIntent = om;
|
|
14452
|
-
var an = {},
|
|
14452
|
+
var an = {}, kc;
|
|
14453
14453
|
function am() {
|
|
14454
|
-
if (
|
|
14454
|
+
if (kc)
|
|
14455
14455
|
return an;
|
|
14456
|
-
|
|
14456
|
+
kc = 1, Object.defineProperty(an, "__esModule", { value: !0 }), an.IntentServiceRecognizer = void 0;
|
|
14457
14457
|
const t = A(), e = R(), r = T();
|
|
14458
14458
|
let i = class extends r.ServiceRecognizerBase {
|
|
14459
14459
|
constructor(a, s, n, o, c) {
|
|
@@ -14574,12 +14574,12 @@ function am() {
|
|
|
14574
14574
|
var Yi = {};
|
|
14575
14575
|
Object.defineProperty(Yi, "__esModule", { value: !0 });
|
|
14576
14576
|
Yi.IntentResponse = void 0;
|
|
14577
|
-
class
|
|
14577
|
+
class ho {
|
|
14578
14578
|
constructor(e) {
|
|
14579
14579
|
e === "" ? this.privIntentResponse = {} : this.privIntentResponse = JSON.parse(e);
|
|
14580
14580
|
}
|
|
14581
14581
|
static fromJSON(e) {
|
|
14582
|
-
return new
|
|
14582
|
+
return new ho(e);
|
|
14583
14583
|
}
|
|
14584
14584
|
get query() {
|
|
14585
14585
|
return this.privIntentResponse.query;
|
|
@@ -14591,13 +14591,13 @@ class po {
|
|
|
14591
14591
|
return this.privIntentResponse.entities;
|
|
14592
14592
|
}
|
|
14593
14593
|
}
|
|
14594
|
-
Yi.IntentResponse =
|
|
14594
|
+
Yi.IntentResponse = ho;
|
|
14595
14595
|
var Wu = {};
|
|
14596
14596
|
Object.defineProperty(Wu, "__esModule", { value: !0 });
|
|
14597
14597
|
var es = {}, ts = {};
|
|
14598
14598
|
Object.defineProperty(ts, "__esModule", { value: !0 });
|
|
14599
14599
|
ts.ServiceTelemetryListener = void 0;
|
|
14600
|
-
const Ae = A(),
|
|
14600
|
+
const Ae = A(), Nc = $i;
|
|
14601
14601
|
class cm {
|
|
14602
14602
|
constructor(e, r, i) {
|
|
14603
14603
|
this.privIsDisposed = !1, this.privListeningTriggerMetric = null, this.privMicMetric = null, this.privConnectionEstablishMetric = null, this.privRequestId = e, this.privAudioSourceId = r, this.privAudioNodeId = i, this.privReceivedMessages = {}, this.privPhraseLatencies = [], this.privHypothesisLatencies = [];
|
|
@@ -14609,7 +14609,7 @@ class cm {
|
|
|
14609
14609
|
e > 0 && this.privHypothesisLatencies.push(Date.now() - e);
|
|
14610
14610
|
}
|
|
14611
14611
|
onEvent(e) {
|
|
14612
|
-
if (!this.privIsDisposed && (e instanceof
|
|
14612
|
+
if (!this.privIsDisposed && (e instanceof Nc.RecognitionTriggeredEvent && e.requestId === this.privRequestId && (this.privListeningTriggerMetric = {
|
|
14613
14613
|
End: e.eventTime,
|
|
14614
14614
|
Name: "ListeningTrigger",
|
|
14615
14615
|
Start: e.eventTime
|
|
@@ -14627,7 +14627,7 @@ class cm {
|
|
|
14627
14627
|
End: e.eventTime,
|
|
14628
14628
|
Name: "Microphone",
|
|
14629
14629
|
Start: this.privMicStartTime
|
|
14630
|
-
})), e instanceof
|
|
14630
|
+
})), e instanceof Nc.ConnectingToServiceEvent && e.requestId === this.privRequestId && (this.privConnectionId = e.sessionId), e instanceof Ae.ConnectionStartEvent && e.connectionId === this.privConnectionId && (this.privConnectionStartTime = e.eventTime), e instanceof Ae.ConnectionEstablishedEvent && e.connectionId === this.privConnectionId && (this.privConnectionEstablishMetric || (this.privConnectionEstablishMetric = {
|
|
14631
14631
|
End: e.eventTime,
|
|
14632
14632
|
Id: this.privConnectionId,
|
|
14633
14633
|
Name: "Connection",
|
|
@@ -14927,7 +14927,7 @@ class vm {
|
|
|
14927
14927
|
}
|
|
14928
14928
|
}
|
|
14929
14929
|
ns.DynamicGrammarBuilder = vm;
|
|
14930
|
-
var cn = {}, is = {}, ss = {},
|
|
14930
|
+
var cn = {}, is = {}, ss = {}, lo = {};
|
|
14931
14931
|
(function(t) {
|
|
14932
14932
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MessageDataStreamType = t.ActivityPayloadResponse = void 0;
|
|
14933
14933
|
class e {
|
|
@@ -14953,10 +14953,10 @@ var cn = {}, is = {}, ss = {}, uo = {};
|
|
|
14953
14953
|
t.ActivityPayloadResponse = e, function(r) {
|
|
14954
14954
|
r[r.None = 0] = "None", r[r.TextToSpeechAudio = 1] = "TextToSpeechAudio";
|
|
14955
14955
|
}(t.MessageDataStreamType || (t.MessageDataStreamType = {}));
|
|
14956
|
-
})(
|
|
14956
|
+
})(lo);
|
|
14957
14957
|
Object.defineProperty(ss, "__esModule", { value: !0 });
|
|
14958
14958
|
ss.DialogServiceTurnState = void 0;
|
|
14959
|
-
const fm = Je, gm = K, mm =
|
|
14959
|
+
const fm = Je, gm = K, mm = lo;
|
|
14960
14960
|
class Sm {
|
|
14961
14961
|
constructor(e, r) {
|
|
14962
14962
|
this.privRequestId = r, this.privIsCompleted = !1, this.privAudioStream = null, this.privTurnManager = e, this.resetTurnEndTimeout();
|
|
@@ -14982,14 +14982,14 @@ class Sm {
|
|
|
14982
14982
|
ss.DialogServiceTurnState = Sm;
|
|
14983
14983
|
Object.defineProperty(is, "__esModule", { value: !0 });
|
|
14984
14984
|
is.DialogServiceTurnStateManager = void 0;
|
|
14985
|
-
const
|
|
14985
|
+
const zc = J, Cm = ss;
|
|
14986
14986
|
class ym {
|
|
14987
14987
|
constructor() {
|
|
14988
14988
|
this.privTurnMap = /* @__PURE__ */ new Map();
|
|
14989
14989
|
}
|
|
14990
14990
|
StartTurn(e) {
|
|
14991
14991
|
if (this.privTurnMap.has(e))
|
|
14992
|
-
throw new
|
|
14992
|
+
throw new zc.InvalidOperationError("Service error: There is already a turn with id:" + e);
|
|
14993
14993
|
const r = new Cm.DialogServiceTurnState(this, e);
|
|
14994
14994
|
return this.privTurnMap.set(e, r), this.privTurnMap.get(e);
|
|
14995
14995
|
}
|
|
@@ -14998,7 +14998,7 @@ class ym {
|
|
|
14998
14998
|
}
|
|
14999
14999
|
CompleteTurn(e) {
|
|
15000
15000
|
if (!this.privTurnMap.has(e))
|
|
15001
|
-
throw new
|
|
15001
|
+
throw new zc.InvalidOperationError("Service error: Received turn end for an unknown turn id:" + e);
|
|
15002
15002
|
const r = this.privTurnMap.get(e);
|
|
15003
15003
|
return r.complete(), this.privTurnMap.delete(e), r;
|
|
15004
15004
|
}
|
|
@@ -15018,12 +15018,12 @@ var Ku = {};
|
|
|
15018
15018
|
e.EndOfTurn = "EndOfTurn", e.Continue = "Continue";
|
|
15019
15019
|
}(t.OnRejectAction || (t.OnRejectAction = {}));
|
|
15020
15020
|
})(Ku);
|
|
15021
|
-
var
|
|
15021
|
+
var jc;
|
|
15022
15022
|
function Rm() {
|
|
15023
|
-
if (
|
|
15023
|
+
if (jc)
|
|
15024
15024
|
return cn;
|
|
15025
|
-
|
|
15026
|
-
const t = V(), e = gt, r = A(), i = Je, p = R(), a = is, s = T(), n =
|
|
15025
|
+
jc = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.DialogServiceAdapter = void 0;
|
|
15026
|
+
const t = V(), e = gt, r = A(), i = Je, p = R(), a = is, s = T(), n = lo, o = $u, c = Ku, u = Ne;
|
|
15027
15027
|
let d = class extends s.ServiceRecognizerBase {
|
|
15028
15028
|
constructor(l, f, g, S, v) {
|
|
15029
15029
|
super(l, f, g, S, v), this.privEvents = new r.EventSource(), this.privDialogServiceConnector = v, this.receiveMessageOverride = () => this.receiveDialogMessageOverride(), this.privTurnStateManager = new a.DialogServiceTurnStateManager(), this.recognizeOverride = (m, C, y) => this.listenOnce(m, C, y), this.postConnectImplOverride = (m) => this.dialogConnectImpl(m), this.configConnectionOverride = (m) => this.configConnection(m), this.disconnectOverride = () => this.privDisconnect(), this.privDialogAudioSource = g, this.agentConfigSent = !1, this.privLastResult = null, this.connectionEvents.attach((m) => {
|
|
@@ -15335,7 +15335,7 @@ class Pm {
|
|
|
15335
15335
|
}
|
|
15336
15336
|
}
|
|
15337
15337
|
os.AgentConfig = Pm;
|
|
15338
|
-
var
|
|
15338
|
+
var ks = {}, pn = {}, zt = {};
|
|
15339
15339
|
Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
15340
15340
|
zt.ConversationConnectionConfig = void 0;
|
|
15341
15341
|
const Em = Bn;
|
|
@@ -15370,11 +15370,11 @@ re.privDefaultLanguageCode = "en-US";
|
|
|
15370
15370
|
re.privClientAppId = "FC539C22-1767-4F1F-84BC-B4D811114F15";
|
|
15371
15371
|
re.privWebSocketPath = "/capito/translate";
|
|
15372
15372
|
re.privTranscriptionEventKeys = ["iCalUid", "callId", "organizer", "FLAC", "MTUri", "DifferentiateGuestSpeakers", "audiorecording", "Threadid", "OrganizerMri", "OrganizerTenantId", "UserToken"];
|
|
15373
|
-
var
|
|
15373
|
+
var Lc;
|
|
15374
15374
|
function Im() {
|
|
15375
|
-
if (
|
|
15375
|
+
if (Lc)
|
|
15376
15376
|
return pn;
|
|
15377
|
-
|
|
15377
|
+
Lc = 1, Object.defineProperty(pn, "__esModule", { value: !0 }), pn.ConversationManager = void 0;
|
|
15378
15378
|
const t = V(), e = b, r = R(), i = zt;
|
|
15379
15379
|
let p = class {
|
|
15380
15380
|
constructor() {
|
|
@@ -15483,7 +15483,7 @@ class Am extends Tm.ConnectionMessage {
|
|
|
15483
15483
|
qn.ConversationConnectionMessage = Am;
|
|
15484
15484
|
Object.defineProperty(as, "__esModule", { value: !0 });
|
|
15485
15485
|
as.ConversationWebsocketMessageFormatter = void 0;
|
|
15486
|
-
const pt = A(),
|
|
15486
|
+
const pt = A(), Bc = qn;
|
|
15487
15487
|
class wm {
|
|
15488
15488
|
/**
|
|
15489
15489
|
* Format incoming messages: text (speech partial/final, IM) or binary (tts)
|
|
@@ -15492,10 +15492,10 @@ class wm {
|
|
|
15492
15492
|
const r = new pt.Deferred();
|
|
15493
15493
|
try {
|
|
15494
15494
|
if (e.messageType === pt.MessageType.Text) {
|
|
15495
|
-
const i = new
|
|
15495
|
+
const i = new Bc.ConversationConnectionMessage(e.messageType, e.textContent, {}, e.id);
|
|
15496
15496
|
r.resolve(i);
|
|
15497
15497
|
} else
|
|
15498
|
-
e.messageType === pt.MessageType.Binary && r.resolve(new
|
|
15498
|
+
e.messageType === pt.MessageType.Binary && r.resolve(new Bc.ConversationConnectionMessage(e.messageType, e.binaryContent, void 0, e.id));
|
|
15499
15499
|
} catch (i) {
|
|
15500
15500
|
r.reject(`Error formatting the message. Error: ${i}`);
|
|
15501
15501
|
}
|
|
@@ -15518,11 +15518,11 @@ class wm {
|
|
|
15518
15518
|
}
|
|
15519
15519
|
}
|
|
15520
15520
|
as.ConversationWebsocketMessageFormatter = wm;
|
|
15521
|
-
var
|
|
15521
|
+
var qc;
|
|
15522
15522
|
function _m() {
|
|
15523
|
-
if (
|
|
15523
|
+
if (qc)
|
|
15524
15524
|
return un;
|
|
15525
|
-
|
|
15525
|
+
qc = 1, Object.defineProperty(un, "__esModule", { value: !0 }), un.ConversationConnectionFactory = void 0;
|
|
15526
15526
|
const t = V(), e = A(), r = b, i = R(), p = Ce(), a = zt, s = as;
|
|
15527
15527
|
let n = class extends p.ConnectionFactoryBase {
|
|
15528
15528
|
create(c, u, d) {
|
|
@@ -15539,10 +15539,10 @@ function _m() {
|
|
|
15539
15539
|
var dn = {}, cs = {};
|
|
15540
15540
|
Object.defineProperty(cs, "__esModule", { value: !0 });
|
|
15541
15541
|
cs.ConversationRequestSession = void 0;
|
|
15542
|
-
const
|
|
15542
|
+
const Ns = A();
|
|
15543
15543
|
class bm {
|
|
15544
15544
|
constructor(e) {
|
|
15545
|
-
this.privIsDisposed = !1, this.privDetachables = new Array(), this.privSessionId = e, this.privRequestId = (0,
|
|
15545
|
+
this.privIsDisposed = !1, this.privDetachables = new Array(), this.privSessionId = e, this.privRequestId = (0, Ns.createNoDashGuid)(), this.privRequestCompletionDeferral = new Ns.Deferred();
|
|
15546
15546
|
}
|
|
15547
15547
|
get sessionId() {
|
|
15548
15548
|
return this.privSessionId;
|
|
@@ -15563,7 +15563,7 @@ class bm {
|
|
|
15563
15563
|
e !== 200 && e === 403 && this.onComplete();
|
|
15564
15564
|
}
|
|
15565
15565
|
onServiceTurnEndResponse(e) {
|
|
15566
|
-
e ? this.privRequestId = (0,
|
|
15566
|
+
e ? this.privRequestId = (0, Ns.createNoDashGuid)() : this.onComplete();
|
|
15567
15567
|
}
|
|
15568
15568
|
async dispose() {
|
|
15569
15569
|
if (!this.privIsDisposed) {
|
|
@@ -15576,11 +15576,11 @@ class bm {
|
|
|
15576
15576
|
}
|
|
15577
15577
|
}
|
|
15578
15578
|
cs.ConversationRequestSession = bm;
|
|
15579
|
-
var se = {},
|
|
15579
|
+
var se = {}, Fc;
|
|
15580
15580
|
function Ju() {
|
|
15581
|
-
if (
|
|
15581
|
+
if (Fc)
|
|
15582
15582
|
return se;
|
|
15583
|
-
|
|
15583
|
+
Fc = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.ConversationReceivedTranslationEventArgs = se.ParticipantsListEventArgs = se.ParticipantAttributeEventArgs = se.ParticipantEventArgs = se.LockRoomEventArgs = se.MuteAllEventArgs = void 0;
|
|
15584
15584
|
const t = R();
|
|
15585
15585
|
class e extends t.SessionEventArgs {
|
|
15586
15586
|
constructor(o, c) {
|
|
@@ -15751,7 +15751,7 @@ var Gu = {}, ps = {};
|
|
|
15751
15751
|
Object.defineProperty(ps, "__esModule", { value: !0 });
|
|
15752
15752
|
ps.CommandResponsePayload = void 0;
|
|
15753
15753
|
const Om = (t) => JSON.parse(t);
|
|
15754
|
-
class
|
|
15754
|
+
class vo {
|
|
15755
15755
|
constructor(e) {
|
|
15756
15756
|
this.privCommandResponse = Om(e);
|
|
15757
15757
|
}
|
|
@@ -15780,15 +15780,15 @@ class ho {
|
|
|
15780
15780
|
return this.privCommandResponse.token;
|
|
15781
15781
|
}
|
|
15782
15782
|
static fromJSON(e) {
|
|
15783
|
-
return new
|
|
15783
|
+
return new vo(e);
|
|
15784
15784
|
}
|
|
15785
15785
|
}
|
|
15786
|
-
ps.CommandResponsePayload =
|
|
15786
|
+
ps.CommandResponsePayload = vo;
|
|
15787
15787
|
var bt = {};
|
|
15788
15788
|
Object.defineProperty(bt, "__esModule", { value: !0 });
|
|
15789
15789
|
bt.ParticipantPayloadResponse = bt.ParticipantsListPayloadResponse = void 0;
|
|
15790
15790
|
const Dm = (t) => JSON.parse(t), km = (t) => JSON.parse(t);
|
|
15791
|
-
class
|
|
15791
|
+
class fo {
|
|
15792
15792
|
constructor(e) {
|
|
15793
15793
|
this.privParticipantsPayloadResponse = Dm(e);
|
|
15794
15794
|
}
|
|
@@ -15826,11 +15826,11 @@ class lo {
|
|
|
15826
15826
|
return this.privParticipantsPayloadResponse.type;
|
|
15827
15827
|
}
|
|
15828
15828
|
static fromJSON(e) {
|
|
15829
|
-
return new
|
|
15829
|
+
return new fo(e);
|
|
15830
15830
|
}
|
|
15831
15831
|
}
|
|
15832
|
-
bt.ParticipantsListPayloadResponse =
|
|
15833
|
-
class
|
|
15832
|
+
bt.ParticipantsListPayloadResponse = fo;
|
|
15833
|
+
class go {
|
|
15834
15834
|
constructor(e) {
|
|
15835
15835
|
this.privParticipantPayloadResponse = km(e);
|
|
15836
15836
|
}
|
|
@@ -15856,15 +15856,15 @@ class vo {
|
|
|
15856
15856
|
return this.privParticipantPayloadResponse.avatar;
|
|
15857
15857
|
}
|
|
15858
15858
|
static fromJSON(e) {
|
|
15859
|
-
return new
|
|
15859
|
+
return new go(e);
|
|
15860
15860
|
}
|
|
15861
15861
|
}
|
|
15862
|
-
bt.ParticipantPayloadResponse =
|
|
15862
|
+
bt.ParticipantPayloadResponse = go;
|
|
15863
15863
|
var Mt = {};
|
|
15864
15864
|
Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
15865
15865
|
Mt.TextResponsePayload = Mt.SpeechResponsePayload = void 0;
|
|
15866
15866
|
const Nm = (t) => JSON.parse(t), zm = (t) => JSON.parse(t);
|
|
15867
|
-
class
|
|
15867
|
+
class mo {
|
|
15868
15868
|
constructor(e) {
|
|
15869
15869
|
this.privSpeechResponse = Nm(e);
|
|
15870
15870
|
}
|
|
@@ -15899,11 +15899,11 @@ class fo {
|
|
|
15899
15899
|
return this.privSpeechResponse.type === "final";
|
|
15900
15900
|
}
|
|
15901
15901
|
static fromJSON(e) {
|
|
15902
|
-
return new
|
|
15902
|
+
return new mo(e);
|
|
15903
15903
|
}
|
|
15904
15904
|
}
|
|
15905
|
-
Mt.SpeechResponsePayload =
|
|
15906
|
-
class
|
|
15905
|
+
Mt.SpeechResponsePayload = mo;
|
|
15906
|
+
class So {
|
|
15907
15907
|
constructor(e) {
|
|
15908
15908
|
this.privTextResponse = zm(e);
|
|
15909
15909
|
}
|
|
@@ -15935,10 +15935,10 @@ class go {
|
|
|
15935
15935
|
return this.privTextResponse.type;
|
|
15936
15936
|
}
|
|
15937
15937
|
static fromJSON(e) {
|
|
15938
|
-
return new
|
|
15938
|
+
return new So(e);
|
|
15939
15939
|
}
|
|
15940
15940
|
}
|
|
15941
|
-
Mt.TextResponsePayload =
|
|
15941
|
+
Mt.TextResponsePayload = So;
|
|
15942
15942
|
(function(t) {
|
|
15943
15943
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.TextResponsePayload = t.SpeechResponsePayload = t.ParticipantPayloadResponse = t.ParticipantsListPayloadResponse = t.CommandResponsePayload = void 0;
|
|
15944
15944
|
var e = ps;
|
|
@@ -15958,11 +15958,11 @@ Mt.TextResponsePayload = go;
|
|
|
15958
15958
|
return i.TextResponsePayload;
|
|
15959
15959
|
} });
|
|
15960
15960
|
})(Gu);
|
|
15961
|
-
var
|
|
15961
|
+
var xc;
|
|
15962
15962
|
function jm() {
|
|
15963
|
-
if (
|
|
15963
|
+
if (xc)
|
|
15964
15964
|
return dn;
|
|
15965
|
-
|
|
15965
|
+
xc = 1, Object.defineProperty(dn, "__esModule", { value: !0 }), dn.ConversationServiceAdapter = void 0;
|
|
15966
15966
|
const t = A(), e = R(), r = T(), i = qn, p = cs, a = Ju(), s = Me, n = Gu;
|
|
15967
15967
|
let o = class extends r.ServiceRecognizerBase {
|
|
15968
15968
|
constructor(u, d, h, l, f) {
|
|
@@ -16145,11 +16145,11 @@ function jm() {
|
|
|
16145
16145
|
};
|
|
16146
16146
|
return dn.ConversationServiceAdapter = o, dn;
|
|
16147
16147
|
}
|
|
16148
|
-
var
|
|
16148
|
+
var Uc;
|
|
16149
16149
|
function Lm() {
|
|
16150
|
-
if (
|
|
16150
|
+
if (Uc)
|
|
16151
16151
|
return ct;
|
|
16152
|
-
|
|
16152
|
+
Uc = 1, Object.defineProperty(ct, "__esModule", { value: !0 }), ct.ConversationTranslatorRecognizer = ct.ConversationRecognizerFactory = void 0;
|
|
16153
16153
|
const t = T(), e = A(), r = b, i = R(), p = _m(), a = jm();
|
|
16154
16154
|
class s {
|
|
16155
16155
|
static fromConfig(c, u, d) {
|
|
@@ -16307,11 +16307,11 @@ function Lm() {
|
|
|
16307
16307
|
};
|
|
16308
16308
|
return ct.ConversationTranslatorRecognizer = n, ct;
|
|
16309
16309
|
}
|
|
16310
|
-
var hn = {},
|
|
16310
|
+
var hn = {}, Wc;
|
|
16311
16311
|
function Bm() {
|
|
16312
|
-
if (
|
|
16312
|
+
if (Wc)
|
|
16313
16313
|
return hn;
|
|
16314
|
-
|
|
16314
|
+
Wc = 1, Object.defineProperty(hn, "__esModule", { value: !0 }), hn.TranscriberRecognizer = void 0;
|
|
16315
16315
|
const t = A(), e = b, r = R(), i = T(), p = he;
|
|
16316
16316
|
let a = class extends r.Recognizer {
|
|
16317
16317
|
/**
|
|
@@ -16416,9 +16416,9 @@ function Bm() {
|
|
|
16416
16416
|
};
|
|
16417
16417
|
return hn.TranscriberRecognizer = a, hn;
|
|
16418
16418
|
}
|
|
16419
|
-
var
|
|
16419
|
+
var Vc;
|
|
16420
16420
|
function qm() {
|
|
16421
|
-
return
|
|
16421
|
+
return Vc || (Vc = 1, function(t) {
|
|
16422
16422
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.InternalParticipants = t.ConversationTranslatorMessageTypes = t.ConversationTranslatorCommandTypes = t.ParticipantsListEventArgs = t.ParticipantEventArgs = t.ParticipantAttributeEventArgs = t.MuteAllEventArgs = t.LockRoomEventArgs = t.ConversationReceivedTranslationEventArgs = t.TranscriberRecognizer = t.ConversationRecognizerFactory = t.ConversationConnectionConfig = t.ConversationManager = void 0;
|
|
16423
16423
|
var e = Im();
|
|
16424
16424
|
Object.defineProperty(t, "ConversationManager", { enumerable: !0, get: function() {
|
|
@@ -16458,9 +16458,9 @@ function qm() {
|
|
|
16458
16458
|
} }), Object.defineProperty(t, "InternalParticipants", { enumerable: !0, get: function() {
|
|
16459
16459
|
return s.InternalParticipants;
|
|
16460
16460
|
} });
|
|
16461
|
-
}(
|
|
16461
|
+
}(ks)), ks;
|
|
16462
16462
|
}
|
|
16463
|
-
var
|
|
16463
|
+
var Co = {};
|
|
16464
16464
|
(function(t) {
|
|
16465
16465
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SynthesisAudioMetadata = t.MetadataType = void 0, function(r) {
|
|
16466
16466
|
r.WordBoundary = "WordBoundary", r.Bookmark = "Bookmark", r.Viseme = "Viseme", r.SentenceBoundary = "SentenceBoundary", r.SessionEnd = "SessionEnd", r.AvatarSignal = "TalkingAvatarSignal";
|
|
@@ -16477,13 +16477,13 @@ var mo = {};
|
|
|
16477
16477
|
}
|
|
16478
16478
|
}
|
|
16479
16479
|
t.SynthesisAudioMetadata = e;
|
|
16480
|
-
})(
|
|
16480
|
+
})(Co);
|
|
16481
16481
|
var ln = {}, Pe = {};
|
|
16482
16482
|
Object.defineProperty(Pe, "__esModule", { value: !0 });
|
|
16483
16483
|
Pe.SynthesisStartedEvent = Pe.ConnectingToSynthesisServiceEvent = Pe.SynthesisTriggeredEvent = Pe.SpeechSynthesisEvent = void 0;
|
|
16484
|
-
const
|
|
16485
|
-
class us extends
|
|
16486
|
-
constructor(e, r, i =
|
|
16484
|
+
const Hc = A();
|
|
16485
|
+
class us extends Hc.PlatformEvent {
|
|
16486
|
+
constructor(e, r, i = Hc.EventType.Info) {
|
|
16487
16487
|
super(e, i), this.privRequestId = r;
|
|
16488
16488
|
}
|
|
16489
16489
|
get requestId() {
|
|
@@ -16521,13 +16521,13 @@ class Um extends us {
|
|
|
16521
16521
|
}
|
|
16522
16522
|
}
|
|
16523
16523
|
Pe.SynthesisStartedEvent = Um;
|
|
16524
|
-
var
|
|
16524
|
+
var $c;
|
|
16525
16525
|
function Wm() {
|
|
16526
|
-
if (
|
|
16526
|
+
if ($c)
|
|
16527
16527
|
return ln;
|
|
16528
|
-
|
|
16529
|
-
const t = A(), e = K, r = R(), i =
|
|
16530
|
-
let a = class
|
|
16528
|
+
$c = 1, Object.defineProperty(ln, "__esModule", { value: !0 }), ln.SynthesisTurn = void 0;
|
|
16529
|
+
const t = A(), e = K, r = R(), i = Co, p = Pe;
|
|
16530
|
+
let a = class Ws {
|
|
16531
16531
|
constructor() {
|
|
16532
16532
|
this.privIsDisposed = !1, this.privIsSynthesizing = !1, this.privIsSynthesisEnded = !1, this.privBytesReceived = 0, this.privInTurn = !1, this.privTextOffset = 0, this.privNextSearchTextIndex = 0, this.privSentenceOffset = 0, this.privNextSearchSentenceIndex = 0, this.privRequestId = (0, t.createNoDashGuid)(), this.privTurnDeferral = new t.Deferred(), this.privTurnDeferral.resolve();
|
|
16533
16533
|
}
|
|
@@ -16659,7 +16659,7 @@ function Wm() {
|
|
|
16659
16659
|
return n.length >= 2 && n[0] === "<" && n[n.length - 1] === ">";
|
|
16660
16660
|
}
|
|
16661
16661
|
updateTextOffset(n, o) {
|
|
16662
|
-
o === i.MetadataType.WordBoundary ? (this.privTextOffset = this.privRawText.indexOf(n, this.privNextSearchTextIndex), this.privTextOffset >= 0 && (this.privNextSearchTextIndex = this.privTextOffset + n.length, this.privIsSSML && this.withinXmlTag(this.privTextOffset) && !
|
|
16662
|
+
o === i.MetadataType.WordBoundary ? (this.privTextOffset = this.privRawText.indexOf(n, this.privNextSearchTextIndex), this.privTextOffset >= 0 && (this.privNextSearchTextIndex = this.privTextOffset + n.length, this.privIsSSML && this.withinXmlTag(this.privTextOffset) && !Ws.isXmlTag(n) && this.updateTextOffset(n, o))) : (this.privSentenceOffset = this.privRawText.indexOf(n, this.privNextSearchSentenceIndex), this.privSentenceOffset >= 0 && (this.privNextSearchSentenceIndex = this.privSentenceOffset + n.length, this.privIsSSML && this.withinXmlTag(this.privSentenceOffset) && !Ws.isXmlTag(n) && this.updateTextOffset(n, o)));
|
|
16663
16663
|
}
|
|
16664
16664
|
onComplete() {
|
|
16665
16665
|
this.privIsSynthesizing && (this.privIsSynthesizing = !1, this.privIsSynthesisEnded = !0, this.privAudioOutputStream.close(), this.privInTurn = !1, this.privTurnAudioDestination !== void 0 && (this.privTurnAudioDestination.close(), this.privTurnAudioDestination = void 0));
|
|
@@ -16685,11 +16685,11 @@ function Wm() {
|
|
|
16685
16685
|
};
|
|
16686
16686
|
return ln.SynthesisTurn = a, ln;
|
|
16687
16687
|
}
|
|
16688
|
-
var vn = {},
|
|
16688
|
+
var vn = {}, Kc;
|
|
16689
16689
|
function Vm() {
|
|
16690
|
-
if (
|
|
16690
|
+
if (Kc)
|
|
16691
16691
|
return vn;
|
|
16692
|
-
|
|
16692
|
+
Kc = 1, Object.defineProperty(vn, "__esModule", { value: !0 }), vn.SynthesisAdapterBase = void 0;
|
|
16693
16693
|
const t = A(), e = R(), r = T(), i = Ne;
|
|
16694
16694
|
let p = class {
|
|
16695
16695
|
constructor(s, n, o, c) {
|
|
@@ -16904,11 +16904,11 @@ function Vm() {
|
|
|
16904
16904
|
};
|
|
16905
16905
|
return vn.SynthesisAdapterBase = p, p.telemetryDataEnabled = !0, vn;
|
|
16906
16906
|
}
|
|
16907
|
-
var fn = {},
|
|
16907
|
+
var fn = {}, Jc;
|
|
16908
16908
|
function Hm() {
|
|
16909
|
-
if (
|
|
16909
|
+
if (Jc)
|
|
16910
16910
|
return fn;
|
|
16911
|
-
|
|
16911
|
+
Jc = 1, Object.defineProperty(fn, "__esModule", { value: !0 }), fn.AvatarSynthesisAdapter = void 0;
|
|
16912
16912
|
const t = R(), e = T();
|
|
16913
16913
|
let r = class extends e.SynthesisAdapterBase {
|
|
16914
16914
|
constructor(p, a, s, n, o) {
|
|
@@ -16971,11 +16971,11 @@ function Hm() {
|
|
|
16971
16971
|
};
|
|
16972
16972
|
return fn.AvatarSynthesisAdapter = r, fn;
|
|
16973
16973
|
}
|
|
16974
|
-
var gn = {},
|
|
16974
|
+
var gn = {}, Gc;
|
|
16975
16975
|
function $m() {
|
|
16976
|
-
if (
|
|
16976
|
+
if (Gc)
|
|
16977
16977
|
return gn;
|
|
16978
|
-
|
|
16978
|
+
Gc = 1, Object.defineProperty(gn, "__esModule", { value: !0 }), gn.SpeechSynthesisAdapter = void 0;
|
|
16979
16979
|
const t = R(), e = T();
|
|
16980
16980
|
let r = class extends e.SynthesisAdapterBase {
|
|
16981
16981
|
constructor(p, a, s, n, o) {
|
|
@@ -17036,11 +17036,11 @@ function $m() {
|
|
|
17036
17036
|
};
|
|
17037
17037
|
return gn.SpeechSynthesisAdapter = r, gn;
|
|
17038
17038
|
}
|
|
17039
|
-
var mn = {},
|
|
17039
|
+
var mn = {}, Qc;
|
|
17040
17040
|
function Km() {
|
|
17041
|
-
if (
|
|
17041
|
+
if (Qc)
|
|
17042
17042
|
return mn;
|
|
17043
|
-
|
|
17043
|
+
Qc = 1, Object.defineProperty(mn, "__esModule", { value: !0 }), mn.SynthesisRestAdapter = void 0;
|
|
17044
17044
|
const t = V(), e = R(), r = Ce(), i = W;
|
|
17045
17045
|
let p = class {
|
|
17046
17046
|
constructor(s, n) {
|
|
@@ -17066,9 +17066,9 @@ function Km() {
|
|
|
17066
17066
|
};
|
|
17067
17067
|
return mn.SynthesisRestAdapter = p, mn;
|
|
17068
17068
|
}
|
|
17069
|
-
var
|
|
17069
|
+
var zs = {}, Xc;
|
|
17070
17070
|
function Jm() {
|
|
17071
|
-
return
|
|
17071
|
+
return Xc || (Xc = 1, function(t) {
|
|
17072
17072
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.SynthesizerConfig = t.SynthesisServiceType = void 0;
|
|
17073
17073
|
const e = T();
|
|
17074
17074
|
var r;
|
|
@@ -17098,13 +17098,13 @@ function Jm() {
|
|
|
17098
17098
|
}
|
|
17099
17099
|
}
|
|
17100
17100
|
t.SynthesizerConfig = i;
|
|
17101
|
-
}(
|
|
17101
|
+
}(zs)), zs;
|
|
17102
17102
|
}
|
|
17103
|
-
var Sn = {},
|
|
17103
|
+
var Sn = {}, Zc;
|
|
17104
17104
|
function Gm() {
|
|
17105
|
-
if (
|
|
17105
|
+
if (Zc)
|
|
17106
17106
|
return Sn;
|
|
17107
|
-
|
|
17107
|
+
Zc = 1, Object.defineProperty(Sn, "__esModule", { value: !0 }), Sn.SynthesisContext = void 0;
|
|
17108
17108
|
const t = R();
|
|
17109
17109
|
let e = class {
|
|
17110
17110
|
constructor() {
|
|
@@ -17153,11 +17153,11 @@ function Gm() {
|
|
|
17153
17153
|
};
|
|
17154
17154
|
return Sn.SynthesisContext = e, Sn;
|
|
17155
17155
|
}
|
|
17156
|
-
var Cn = {},
|
|
17156
|
+
var Cn = {}, Yc;
|
|
17157
17157
|
function Qm() {
|
|
17158
|
-
if (
|
|
17158
|
+
if (Yc)
|
|
17159
17159
|
return Cn;
|
|
17160
|
-
|
|
17160
|
+
Yc = 1, Object.defineProperty(Cn, "__esModule", { value: !0 }), Cn.SpeakerRecognitionConfig = void 0;
|
|
17161
17161
|
const t = T();
|
|
17162
17162
|
let e = class {
|
|
17163
17163
|
constructor(i, p) {
|
|
@@ -17172,11 +17172,11 @@ function Qm() {
|
|
|
17172
17172
|
};
|
|
17173
17173
|
return Cn.SpeakerRecognitionConfig = e, Cn;
|
|
17174
17174
|
}
|
|
17175
|
-
var yn = {},
|
|
17175
|
+
var yn = {}, ep;
|
|
17176
17176
|
function Xm() {
|
|
17177
|
-
if (
|
|
17177
|
+
if (ep)
|
|
17178
17178
|
return yn;
|
|
17179
|
-
|
|
17179
|
+
ep = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.SpeakerServiceRecognizer = void 0;
|
|
17180
17180
|
const t = V(), e = A(), r = R(), i = T(), p = Ne;
|
|
17181
17181
|
let a = class extends i.ServiceRecognizerBase {
|
|
17182
17182
|
constructor(n, o, c, u, d) {
|
|
@@ -17245,11 +17245,11 @@ function Xm() {
|
|
|
17245
17245
|
};
|
|
17246
17246
|
return yn.SpeakerServiceRecognizer = a, yn;
|
|
17247
17247
|
}
|
|
17248
|
-
var Rn = {},
|
|
17248
|
+
var Rn = {}, tp;
|
|
17249
17249
|
function Zm() {
|
|
17250
|
-
if (
|
|
17250
|
+
if (tp)
|
|
17251
17251
|
return Rn;
|
|
17252
|
-
|
|
17252
|
+
tp = 1, Object.defineProperty(Rn, "__esModule", { value: !0 }), Rn.VoiceServiceRecognizer = void 0;
|
|
17253
17253
|
const t = V(), e = A(), r = R(), i = T(), p = Ne;
|
|
17254
17254
|
let a = class extends i.ServiceRecognizerBase {
|
|
17255
17255
|
constructor(n, o, c, u, d) {
|
|
@@ -17528,9 +17528,9 @@ var Qu = {};
|
|
|
17528
17528
|
s.Phone = "Phone", s.Speaker = "Speaker", s.Car = "Car", s.Headset = "Headset", s.Thermostat = "Thermostat", s.Microphones = "Microphones", s.Deskphone = "Deskphone", s.RemoteControl = "RemoteControl", s.Unknown = "Unknown", s.File = "File", s.Stream = "Stream";
|
|
17529
17529
|
}(t.type || (t.type = {}));
|
|
17530
17530
|
})(Qu);
|
|
17531
|
-
var
|
|
17531
|
+
var rp;
|
|
17532
17532
|
function T() {
|
|
17533
|
-
return
|
|
17533
|
+
return rp || (rp = 1, function(t) {
|
|
17534
17534
|
var e = N && N.__createBinding || (Object.create ? function(a, s, n, o) {
|
|
17535
17535
|
o === void 0 && (o = n), Object.defineProperty(a, o, { enumerable: !0, get: function() {
|
|
17536
17536
|
return s[n];
|
|
@@ -17541,7 +17541,7 @@ function T() {
|
|
|
17541
17541
|
for (var n in a)
|
|
17542
17542
|
n !== "default" && !Object.prototype.hasOwnProperty.call(s, n) && e(s, a, n);
|
|
17543
17543
|
};
|
|
17544
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.AutoDetectSourceLanguagesOpenRangeOptionName = t.ForceDictationPropertyName = t.ServicePropertiesPropertyName = t.CancellationErrorCodePropertyName = t.OutputFormatPropertyName = t.SpeechSynthesisAdapter = t.AvatarSynthesisAdapter = void 0, r(Xn, t), r(Si, t), r(Nt, t), r(Np, t), r(zp, t), r(Fg(), t), r(xg(), t), r($i, t), r(Ug(), t), r(Wg(), t), r(Vg(), t), r(Lu, t), r(Ki, t), r($g(), t), r(Kg(), t), r(Jg(), t), r(Gg(), t), r(Tu(), t), r(Qg(), t), r(Bu, t), r(Xg(), t), r(Ji, t), r(Yg(), t), r(em(), t), r(Gi, t), r(Qi, t), r(Xi, t), r(tm(), t), r(rm(), t), r(nm(), t), r(im(), t), r(sm(), t), r(Zi, t), r(am(), t), r(Yi, t), r(Wu, t), r(es, t), r(rs, t), r(ns, t), r(Rm(), t), r(os, t), r(qm(), t), r(
|
|
17544
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.AutoDetectSourceLanguagesOpenRangeOptionName = t.ForceDictationPropertyName = t.ServicePropertiesPropertyName = t.CancellationErrorCodePropertyName = t.OutputFormatPropertyName = t.SpeechSynthesisAdapter = t.AvatarSynthesisAdapter = void 0, r(Xn, t), r(Si, t), r(Nt, t), r(Np, t), r(zp, t), r(Fg(), t), r(xg(), t), r($i, t), r(Ug(), t), r(Wg(), t), r(Vg(), t), r(Lu, t), r(Ki, t), r($g(), t), r(Kg(), t), r(Jg(), t), r(Gg(), t), r(Tu(), t), r(Qg(), t), r(Bu, t), r(Xg(), t), r(Ji, t), r(Yg(), t), r(em(), t), r(Gi, t), r(Qi, t), r(Xi, t), r(tm(), t), r(rm(), t), r(nm(), t), r(im(), t), r(sm(), t), r(Zi, t), r(am(), t), r(Yi, t), r(Wu, t), r(es, t), r(rs, t), r(ns, t), r(Rm(), t), r(os, t), r(qm(), t), r(Co, t), r(Wm(), t), r(Vm(), t);
|
|
17545
17545
|
var i = Hm();
|
|
17546
17546
|
Object.defineProperty(t, "AvatarSynthesisAdapter", { enumerable: !0, get: function() {
|
|
17547
17547
|
return i.AvatarSynthesisAdapter;
|
|
@@ -17550,7 +17550,7 @@ function T() {
|
|
|
17550
17550
|
Object.defineProperty(t, "SpeechSynthesisAdapter", { enumerable: !0, get: function() {
|
|
17551
17551
|
return p.SpeechSynthesisAdapter;
|
|
17552
17552
|
} }), r(Km(), t), r(Jm(), t), r(Gm(), t), r(Qm(), t), r(Xm(), t), r(Zm(), t), r(Qu, t), t.OutputFormatPropertyName = "OutputFormat", t.CancellationErrorCodePropertyName = "CancellationErrorCode", t.ServicePropertiesPropertyName = "ServiceProperties", t.ForceDictationPropertyName = "ForceDictation", t.AutoDetectSourceLanguagesOpenRangeOptionName = "UND";
|
|
17553
|
-
}(
|
|
17553
|
+
}(fs)), fs;
|
|
17554
17554
|
}
|
|
17555
17555
|
(function(t) {
|
|
17556
17556
|
var e = N && N.__createBinding || (Object.create ? function(p, a, s, n) {
|
|
@@ -17573,21 +17573,21 @@ for (let t = 0; t < 256; ++t)
|
|
|
17573
17573
|
function Ym(t, e = 0) {
|
|
17574
17574
|
return ($[t[e + 0]] + $[t[e + 1]] + $[t[e + 2]] + $[t[e + 3]] + "-" + $[t[e + 4]] + $[t[e + 5]] + "-" + $[t[e + 6]] + $[t[e + 7]] + "-" + $[t[e + 8]] + $[t[e + 9]] + "-" + $[t[e + 10]] + $[t[e + 11]] + $[t[e + 12]] + $[t[e + 13]] + $[t[e + 14]] + $[t[e + 15]]).toLowerCase();
|
|
17575
17575
|
}
|
|
17576
|
-
let
|
|
17576
|
+
let js;
|
|
17577
17577
|
const eS = new Uint8Array(16);
|
|
17578
17578
|
function tS() {
|
|
17579
|
-
if (!
|
|
17579
|
+
if (!js) {
|
|
17580
17580
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
17581
17581
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
17582
|
-
|
|
17582
|
+
js = crypto.getRandomValues.bind(crypto);
|
|
17583
17583
|
}
|
|
17584
|
-
return
|
|
17584
|
+
return js(eS);
|
|
17585
17585
|
}
|
|
17586
|
-
const rS = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
17586
|
+
const rS = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), np = { randomUUID: rS };
|
|
17587
17587
|
function nS(t, e, r) {
|
|
17588
17588
|
var p;
|
|
17589
|
-
if (
|
|
17590
|
-
return
|
|
17589
|
+
if (np.randomUUID && !e && !t)
|
|
17590
|
+
return np.randomUUID();
|
|
17591
17591
|
t = t || {};
|
|
17592
17592
|
const i = t.random ?? ((p = t.rng) == null ? void 0 : p.call(t)) ?? tS();
|
|
17593
17593
|
if (i.length < 16)
|
|
@@ -17601,18 +17601,18 @@ function nS(t, e, r) {
|
|
|
17601
17601
|
}
|
|
17602
17602
|
return Ym(i);
|
|
17603
17603
|
}
|
|
17604
|
-
const Ot = op(), be = ap(), Et = De(""), ut = De(""),
|
|
17605
|
-
let Oe = null,
|
|
17604
|
+
const Ot = op(), be = ap(), Et = De(""), ut = De(""), ip = De(""), Vs = De("");
|
|
17605
|
+
let Oe = null, Hs = [];
|
|
17606
17606
|
const Xu = De("");
|
|
17607
17607
|
let qe = null;
|
|
17608
|
-
const
|
|
17608
|
+
const sp = 4e3;
|
|
17609
17609
|
cp(async () => {
|
|
17610
|
-
be.authToken = await
|
|
17610
|
+
be.authToken = await yo();
|
|
17611
17611
|
});
|
|
17612
17612
|
let U = null, Tt = null, ye = null, $n = null, It = null;
|
|
17613
|
-
const
|
|
17613
|
+
const Ls = "https://cdn.jsdelivr.net/npm/@ffmpeg/core-mt@0.12.10/dist/esm", ds = () => {
|
|
17614
17614
|
ye && ye.mute(), U && (U.close(), U = null), Tt = null;
|
|
17615
|
-
},
|
|
17615
|
+
}, yo = async () => {
|
|
17616
17616
|
var t, e, r;
|
|
17617
17617
|
try {
|
|
17618
17618
|
const i = await pp("/voiceTesting");
|
|
@@ -17632,7 +17632,7 @@ const sp = "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm", ds = ()
|
|
|
17632
17632
|
console.error("Error stopping recognition", t);
|
|
17633
17633
|
}
|
|
17634
17634
|
), $n = null), Oe && Oe.state !== "inactive" && Oe.stop();
|
|
17635
|
-
}, iS = async (t) => (be.authToken = await
|
|
17635
|
+
}, iS = async (t) => (be.authToken = await yo(), await ds(), new Promise((e, r) => {
|
|
17636
17636
|
const i = Re.SpeechConfig.fromAuthorizationToken(be.authToken, "eastus2");
|
|
17637
17637
|
i.speechSynthesisVoiceName = "en-US-EmmaMultilingualNeural", ye = new Re.SpeakerAudioDestination();
|
|
17638
17638
|
const p = Re.AudioConfig.fromSpeakerOutput(ye);
|
|
@@ -17652,30 +17652,30 @@ const sp = "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm", ds = ()
|
|
|
17652
17652
|
}
|
|
17653
17653
|
);
|
|
17654
17654
|
})), sS = async (t) => {
|
|
17655
|
-
be.authToken = await
|
|
17655
|
+
be.authToken = await yo();
|
|
17656
17656
|
const e = Re.SpeechConfig.fromAuthorizationToken(be.authToken, "eastus2");
|
|
17657
17657
|
e.speechRecognitionLanguage = "en-US";
|
|
17658
17658
|
const r = Re.AudioConfig.fromDefaultMicrophoneInput(), i = new Re.SpeechRecognizer(e, r);
|
|
17659
17659
|
return $n = i, Et.value = "", ut.value = "", await Zu(), i.recognizing = (p, a) => {
|
|
17660
|
-
a.result.text && a.result.text.trim() && (Et.value = a.result.text.trim(), ds(), be.userspeaking = !0, be.userSpeechText = (ut.value ? ut.value + " " : "") + Et.value,
|
|
17660
|
+
a.result.text && a.result.text.trim() && (Et.value = a.result.text.trim(), ds(), be.userspeaking = !0, be.userSpeechText = (ut.value ? ut.value + " " : "") + Et.value, Vs.value = "user", qe && clearTimeout(qe), qe = setTimeout(() => {
|
|
17661
17661
|
Et.value && (t(Et.value.trim()), Et.value = "");
|
|
17662
|
-
},
|
|
17662
|
+
}, sp));
|
|
17663
17663
|
}, i.recognized = async (p, a) => {
|
|
17664
17664
|
a.result.reason === Re.ResultReason.RecognizedSpeech && a.result.text && a.result.text.trim() && (ut.value += " " + a.result.text.trim(), qe && clearTimeout(qe), qe = setTimeout(async () => {
|
|
17665
17665
|
ut.value && (t(ut.value), console.log("Audio stop recording"), ut.value = "");
|
|
17666
|
-
},
|
|
17666
|
+
}, sp));
|
|
17667
17667
|
}, i.canceled = async (p, a) => {
|
|
17668
17668
|
console.error("Recognition canceled:", a), console.log("Audio stop recording");
|
|
17669
17669
|
}, i.startContinuousRecognitionAsync(), i;
|
|
17670
17670
|
}, BC = async () => {
|
|
17671
17671
|
var t, e;
|
|
17672
|
-
|
|
17672
|
+
ip.value = "", Xu.value = "";
|
|
17673
17673
|
try {
|
|
17674
17674
|
ds(), await sS(async (r) => {
|
|
17675
17675
|
if (r) {
|
|
17676
|
-
console.log("triggering Audio sentiment:");
|
|
17676
|
+
ip.value = r, console.log("triggering Audio sentiment:");
|
|
17677
17677
|
const i = await oS();
|
|
17678
|
-
console.log("Audio sentiment:", i)
|
|
17678
|
+
console.log("Audio sentiment:", i);
|
|
17679
17679
|
const p = Zu();
|
|
17680
17680
|
}
|
|
17681
17681
|
});
|
|
@@ -17690,7 +17690,7 @@ const sp = "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm", ds = ()
|
|
|
17690
17690
|
var e, r;
|
|
17691
17691
|
Xu.value = "";
|
|
17692
17692
|
try {
|
|
17693
|
-
(
|
|
17693
|
+
(Vs.value == "user" || Vs.value == "listening") && ds(), await iS(t);
|
|
17694
17694
|
} catch (i) {
|
|
17695
17695
|
if (console.error(i), wn.isAxiosError(i)) {
|
|
17696
17696
|
const p = i;
|
|
@@ -17703,7 +17703,7 @@ async function Zu() {
|
|
|
17703
17703
|
try {
|
|
17704
17704
|
const t = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
17705
17705
|
Oe = new MediaRecorder(t, { mimeType: "audio/webm" }), Oe.ondataavailable = (e) => {
|
|
17706
|
-
e.data.size > 0 &&
|
|
17706
|
+
e.data.size > 0 && Hs.push(e.data);
|
|
17707
17707
|
}, Oe.start(), console.log("Audio recording started");
|
|
17708
17708
|
} catch (t) {
|
|
17709
17709
|
console.error("Error starting audio recording:", t);
|
|
@@ -17715,8 +17715,8 @@ async function oS() {
|
|
|
17715
17715
|
return e("No active recorder found");
|
|
17716
17716
|
Oe.onstop = async () => {
|
|
17717
17717
|
var i, p, a;
|
|
17718
|
-
const r = new Blob(
|
|
17719
|
-
|
|
17718
|
+
const r = new Blob(Hs, { type: "audio/webm" });
|
|
17719
|
+
Hs = [];
|
|
17720
17720
|
try {
|
|
17721
17721
|
console.log("Sending audio for analysis...");
|
|
17722
17722
|
const s = await aS(r);
|
|
@@ -17776,8 +17776,9 @@ async function cS() {
|
|
|
17776
17776
|
return t.on("log", ({ message: e }) => {
|
|
17777
17777
|
console.log(e);
|
|
17778
17778
|
}), await t.load({
|
|
17779
|
-
coreURL: await
|
|
17780
|
-
wasmURL: await
|
|
17779
|
+
coreURL: await vs(`${Ls}/ffmpeg-core.js`, "text/javascript"),
|
|
17780
|
+
wasmURL: await vs(`${Ls}/ffmpeg-core.wasm`, "application/wasm"),
|
|
17781
|
+
workerURL: await vs(`${Ls}/ffmpeg-core.worker.js`, "text/javascript")
|
|
17781
17782
|
}), It = t, t;
|
|
17782
17783
|
}
|
|
17783
17784
|
const pS = (t) => new Promise((e, r) => {
|
|
@@ -17794,11 +17795,11 @@ export {
|
|
|
17794
17795
|
vS as d,
|
|
17795
17796
|
fS as e,
|
|
17796
17797
|
ds as f,
|
|
17797
|
-
|
|
17798
|
+
yo as g,
|
|
17798
17799
|
dp as h,
|
|
17799
|
-
|
|
17800
|
+
Vs as i,
|
|
17800
17801
|
_e as m,
|
|
17801
17802
|
qC as p,
|
|
17802
|
-
|
|
17803
|
-
|
|
17803
|
+
ip as r,
|
|
17804
|
+
wo as s
|
|
17804
17805
|
};
|