speechstate 2.9.2 → 2.9.3-pr19-1-13770142250.0
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/speechstate.d.ts +90 -684
- package/dist/speechstate.d.ts.map +1 -1
- package/dist/tts.d.ts +6 -72
- package/dist/tts.d.ts.map +1 -1
- package/dist/tts.js +13 -19
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/speechstate.d.ts
CHANGED
|
@@ -394,80 +394,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
394
394
|
readonly on: {
|
|
395
395
|
readonly READY: {
|
|
396
396
|
readonly target: "Ready";
|
|
397
|
-
readonly actions:
|
|
398
|
-
type: "READY";
|
|
399
|
-
value: {
|
|
400
|
-
wsaTTS: SpeechSynthesis;
|
|
401
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
402
|
-
};
|
|
403
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
404
|
-
checkCache: {
|
|
405
|
-
src: "checkCache";
|
|
406
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
407
|
-
cacheURL: string;
|
|
408
|
-
utterance: string;
|
|
409
|
-
voice: string;
|
|
410
|
-
locale: string;
|
|
411
|
-
}, import("xstate").EventObject>;
|
|
412
|
-
id: string;
|
|
413
|
-
};
|
|
414
|
-
getAudioFromCache: {
|
|
415
|
-
src: "getAudioFromCache";
|
|
416
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
417
|
-
audioContext: AudioContext;
|
|
418
|
-
cacheURL: string;
|
|
419
|
-
utterance: string;
|
|
420
|
-
voice: string;
|
|
421
|
-
locale: string;
|
|
422
|
-
}, import("xstate").EventObject>;
|
|
423
|
-
id: string;
|
|
424
|
-
};
|
|
425
|
-
getAudio: {
|
|
426
|
-
src: "getAudio";
|
|
427
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
428
|
-
audioContext: AudioContext;
|
|
429
|
-
audioURL: string;
|
|
430
|
-
}, import("xstate").EventObject>;
|
|
431
|
-
id: string;
|
|
432
|
-
};
|
|
433
|
-
playAudio: {
|
|
434
|
-
src: "playAudio";
|
|
435
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
436
|
-
audioContext: AudioContext;
|
|
437
|
-
audioBuffer: AudioBuffer;
|
|
438
|
-
}, import("xstate").EventObject>;
|
|
439
|
-
id: string;
|
|
440
|
-
};
|
|
441
|
-
createEventsFromStream: {
|
|
442
|
-
src: "createEventsFromStream";
|
|
443
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
444
|
-
id: string;
|
|
445
|
-
};
|
|
446
|
-
ponyfill: {
|
|
447
|
-
src: "ponyfill";
|
|
448
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
449
|
-
id: string;
|
|
450
|
-
};
|
|
451
|
-
start: {
|
|
452
|
-
src: "start";
|
|
453
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
454
|
-
utterance: string;
|
|
455
|
-
voice: string;
|
|
456
|
-
ttsLexicon: string;
|
|
457
|
-
locale: string;
|
|
458
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
459
|
-
wsaTTS: SpeechSynthesis;
|
|
460
|
-
visemes?: boolean;
|
|
461
|
-
}, import("xstate").EventObject>;
|
|
462
|
-
id: string;
|
|
463
|
-
};
|
|
464
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
397
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
465
398
|
type: "READY";
|
|
466
399
|
value: {
|
|
467
400
|
wsaTTS: SpeechSynthesis;
|
|
468
401
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
469
402
|
};
|
|
470
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
403
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
471
404
|
};
|
|
472
405
|
};
|
|
473
406
|
};
|
|
@@ -1513,7 +1446,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
1513
1446
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
1514
1447
|
readonly states: {
|
|
1515
1448
|
readonly Go: {
|
|
1516
|
-
readonly entry: ({
|
|
1449
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
1517
1450
|
readonly invoke: {
|
|
1518
1451
|
readonly src: "start";
|
|
1519
1452
|
readonly input: ({ context }: {
|
|
@@ -1561,11 +1494,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
1561
1494
|
}) => {
|
|
1562
1495
|
azureAuthorizationToken: string;
|
|
1563
1496
|
azureRegion: string;
|
|
1497
|
+
audioContext: AudioContext;
|
|
1564
1498
|
};
|
|
1565
1499
|
};
|
|
1566
1500
|
readonly on: {
|
|
1567
1501
|
readonly READY: {
|
|
1568
|
-
readonly actions:
|
|
1502
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
1569
1503
|
type: "READY";
|
|
1570
1504
|
value: {
|
|
1571
1505
|
wsaTTS: SpeechSynthesis;
|
|
@@ -1632,7 +1566,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
1632
1566
|
}, import("xstate").EventObject>;
|
|
1633
1567
|
id: string;
|
|
1634
1568
|
};
|
|
1635
|
-
}>, never, never, never, never
|
|
1569
|
+
}>, never, never, never, never>;
|
|
1636
1570
|
};
|
|
1637
1571
|
readonly NEW_TOKEN: {
|
|
1638
1572
|
readonly target: "Ponyfill";
|
|
@@ -2419,80 +2353,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
2419
2353
|
readonly on: {
|
|
2420
2354
|
readonly READY: {
|
|
2421
2355
|
readonly target: "Ready";
|
|
2422
|
-
readonly actions:
|
|
2423
|
-
type: "READY";
|
|
2424
|
-
value: {
|
|
2425
|
-
wsaTTS: SpeechSynthesis;
|
|
2426
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
2427
|
-
};
|
|
2428
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
2429
|
-
checkCache: {
|
|
2430
|
-
src: "checkCache";
|
|
2431
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
2432
|
-
cacheURL: string;
|
|
2433
|
-
utterance: string;
|
|
2434
|
-
voice: string;
|
|
2435
|
-
locale: string;
|
|
2436
|
-
}, import("xstate").EventObject>;
|
|
2437
|
-
id: string;
|
|
2438
|
-
};
|
|
2439
|
-
getAudioFromCache: {
|
|
2440
|
-
src: "getAudioFromCache";
|
|
2441
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
2442
|
-
audioContext: AudioContext;
|
|
2443
|
-
cacheURL: string;
|
|
2444
|
-
utterance: string;
|
|
2445
|
-
voice: string;
|
|
2446
|
-
locale: string;
|
|
2447
|
-
}, import("xstate").EventObject>;
|
|
2448
|
-
id: string;
|
|
2449
|
-
};
|
|
2450
|
-
getAudio: {
|
|
2451
|
-
src: "getAudio";
|
|
2452
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
2453
|
-
audioContext: AudioContext;
|
|
2454
|
-
audioURL: string;
|
|
2455
|
-
}, import("xstate").EventObject>;
|
|
2456
|
-
id: string;
|
|
2457
|
-
};
|
|
2458
|
-
playAudio: {
|
|
2459
|
-
src: "playAudio";
|
|
2460
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
2461
|
-
audioContext: AudioContext;
|
|
2462
|
-
audioBuffer: AudioBuffer;
|
|
2463
|
-
}, import("xstate").EventObject>;
|
|
2464
|
-
id: string;
|
|
2465
|
-
};
|
|
2466
|
-
createEventsFromStream: {
|
|
2467
|
-
src: "createEventsFromStream";
|
|
2468
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
2469
|
-
id: string;
|
|
2470
|
-
};
|
|
2471
|
-
ponyfill: {
|
|
2472
|
-
src: "ponyfill";
|
|
2473
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
2474
|
-
id: string;
|
|
2475
|
-
};
|
|
2476
|
-
start: {
|
|
2477
|
-
src: "start";
|
|
2478
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
2479
|
-
utterance: string;
|
|
2480
|
-
voice: string;
|
|
2481
|
-
ttsLexicon: string;
|
|
2482
|
-
locale: string;
|
|
2483
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
2484
|
-
wsaTTS: SpeechSynthesis;
|
|
2485
|
-
visemes?: boolean;
|
|
2486
|
-
}, import("xstate").EventObject>;
|
|
2487
|
-
id: string;
|
|
2488
|
-
};
|
|
2489
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
2356
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
2490
2357
|
type: "READY";
|
|
2491
2358
|
value: {
|
|
2492
2359
|
wsaTTS: SpeechSynthesis;
|
|
2493
2360
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
2494
2361
|
};
|
|
2495
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
2362
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
2496
2363
|
};
|
|
2497
2364
|
};
|
|
2498
2365
|
};
|
|
@@ -3538,7 +3405,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
3538
3405
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
3539
3406
|
readonly states: {
|
|
3540
3407
|
readonly Go: {
|
|
3541
|
-
readonly entry: ({
|
|
3408
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
3542
3409
|
readonly invoke: {
|
|
3543
3410
|
readonly src: "start";
|
|
3544
3411
|
readonly input: ({ context }: {
|
|
@@ -3586,11 +3453,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
3586
3453
|
}) => {
|
|
3587
3454
|
azureAuthorizationToken: string;
|
|
3588
3455
|
azureRegion: string;
|
|
3456
|
+
audioContext: AudioContext;
|
|
3589
3457
|
};
|
|
3590
3458
|
};
|
|
3591
3459
|
readonly on: {
|
|
3592
3460
|
readonly READY: {
|
|
3593
|
-
readonly actions:
|
|
3461
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
3594
3462
|
type: "READY";
|
|
3595
3463
|
value: {
|
|
3596
3464
|
wsaTTS: SpeechSynthesis;
|
|
@@ -3657,7 +3525,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
3657
3525
|
}, import("xstate").EventObject>;
|
|
3658
3526
|
id: string;
|
|
3659
3527
|
};
|
|
3660
|
-
}>, never, never, never, never
|
|
3528
|
+
}>, never, never, never, never>;
|
|
3661
3529
|
};
|
|
3662
3530
|
readonly NEW_TOKEN: {
|
|
3663
3531
|
readonly target: "Ponyfill";
|
|
@@ -4493,80 +4361,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
4493
4361
|
readonly on: {
|
|
4494
4362
|
readonly READY: {
|
|
4495
4363
|
readonly target: "Ready";
|
|
4496
|
-
readonly actions:
|
|
4497
|
-
type: "READY";
|
|
4498
|
-
value: {
|
|
4499
|
-
wsaTTS: SpeechSynthesis;
|
|
4500
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
4501
|
-
};
|
|
4502
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
4503
|
-
checkCache: {
|
|
4504
|
-
src: "checkCache";
|
|
4505
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
4506
|
-
cacheURL: string;
|
|
4507
|
-
utterance: string;
|
|
4508
|
-
voice: string;
|
|
4509
|
-
locale: string;
|
|
4510
|
-
}, import("xstate").EventObject>;
|
|
4511
|
-
id: string;
|
|
4512
|
-
};
|
|
4513
|
-
getAudioFromCache: {
|
|
4514
|
-
src: "getAudioFromCache";
|
|
4515
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
4516
|
-
audioContext: AudioContext;
|
|
4517
|
-
cacheURL: string;
|
|
4518
|
-
utterance: string;
|
|
4519
|
-
voice: string;
|
|
4520
|
-
locale: string;
|
|
4521
|
-
}, import("xstate").EventObject>;
|
|
4522
|
-
id: string;
|
|
4523
|
-
};
|
|
4524
|
-
getAudio: {
|
|
4525
|
-
src: "getAudio";
|
|
4526
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
4527
|
-
audioContext: AudioContext;
|
|
4528
|
-
audioURL: string;
|
|
4529
|
-
}, import("xstate").EventObject>;
|
|
4530
|
-
id: string;
|
|
4531
|
-
};
|
|
4532
|
-
playAudio: {
|
|
4533
|
-
src: "playAudio";
|
|
4534
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
4535
|
-
audioContext: AudioContext;
|
|
4536
|
-
audioBuffer: AudioBuffer;
|
|
4537
|
-
}, import("xstate").EventObject>;
|
|
4538
|
-
id: string;
|
|
4539
|
-
};
|
|
4540
|
-
createEventsFromStream: {
|
|
4541
|
-
src: "createEventsFromStream";
|
|
4542
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
4543
|
-
id: string;
|
|
4544
|
-
};
|
|
4545
|
-
ponyfill: {
|
|
4546
|
-
src: "ponyfill";
|
|
4547
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
4548
|
-
id: string;
|
|
4549
|
-
};
|
|
4550
|
-
start: {
|
|
4551
|
-
src: "start";
|
|
4552
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
4553
|
-
utterance: string;
|
|
4554
|
-
voice: string;
|
|
4555
|
-
ttsLexicon: string;
|
|
4556
|
-
locale: string;
|
|
4557
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
4558
|
-
wsaTTS: SpeechSynthesis;
|
|
4559
|
-
visemes?: boolean;
|
|
4560
|
-
}, import("xstate").EventObject>;
|
|
4561
|
-
id: string;
|
|
4562
|
-
};
|
|
4563
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
4364
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
4564
4365
|
type: "READY";
|
|
4565
4366
|
value: {
|
|
4566
4367
|
wsaTTS: SpeechSynthesis;
|
|
4567
4368
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
4568
4369
|
};
|
|
4569
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
4370
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
4570
4371
|
};
|
|
4571
4372
|
};
|
|
4572
4373
|
};
|
|
@@ -5612,7 +5413,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
5612
5413
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
5613
5414
|
readonly states: {
|
|
5614
5415
|
readonly Go: {
|
|
5615
|
-
readonly entry: ({
|
|
5416
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
5616
5417
|
readonly invoke: {
|
|
5617
5418
|
readonly src: "start";
|
|
5618
5419
|
readonly input: ({ context }: {
|
|
@@ -5660,11 +5461,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
5660
5461
|
}) => {
|
|
5661
5462
|
azureAuthorizationToken: string;
|
|
5662
5463
|
azureRegion: string;
|
|
5464
|
+
audioContext: AudioContext;
|
|
5663
5465
|
};
|
|
5664
5466
|
};
|
|
5665
5467
|
readonly on: {
|
|
5666
5468
|
readonly READY: {
|
|
5667
|
-
readonly actions:
|
|
5469
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
5668
5470
|
type: "READY";
|
|
5669
5471
|
value: {
|
|
5670
5472
|
wsaTTS: SpeechSynthesis;
|
|
@@ -5731,7 +5533,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
5731
5533
|
}, import("xstate").EventObject>;
|
|
5732
5534
|
id: string;
|
|
5733
5535
|
};
|
|
5734
|
-
}>, never, never, never, never
|
|
5536
|
+
}>, never, never, never, never>;
|
|
5735
5537
|
};
|
|
5736
5538
|
readonly NEW_TOKEN: {
|
|
5737
5539
|
readonly target: "Ponyfill";
|
|
@@ -6133,80 +5935,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
6133
5935
|
readonly on: {
|
|
6134
5936
|
readonly READY: {
|
|
6135
5937
|
readonly target: "Ready";
|
|
6136
|
-
readonly actions:
|
|
6137
|
-
type: "READY";
|
|
6138
|
-
value: {
|
|
6139
|
-
wsaTTS: SpeechSynthesis;
|
|
6140
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
6141
|
-
};
|
|
6142
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
6143
|
-
checkCache: {
|
|
6144
|
-
src: "checkCache";
|
|
6145
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
6146
|
-
cacheURL: string;
|
|
6147
|
-
utterance: string;
|
|
6148
|
-
voice: string;
|
|
6149
|
-
locale: string;
|
|
6150
|
-
}, import("xstate").EventObject>;
|
|
6151
|
-
id: string;
|
|
6152
|
-
};
|
|
6153
|
-
getAudioFromCache: {
|
|
6154
|
-
src: "getAudioFromCache";
|
|
6155
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
6156
|
-
audioContext: AudioContext;
|
|
6157
|
-
cacheURL: string;
|
|
6158
|
-
utterance: string;
|
|
6159
|
-
voice: string;
|
|
6160
|
-
locale: string;
|
|
6161
|
-
}, import("xstate").EventObject>;
|
|
6162
|
-
id: string;
|
|
6163
|
-
};
|
|
6164
|
-
getAudio: {
|
|
6165
|
-
src: "getAudio";
|
|
6166
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
6167
|
-
audioContext: AudioContext;
|
|
6168
|
-
audioURL: string;
|
|
6169
|
-
}, import("xstate").EventObject>;
|
|
6170
|
-
id: string;
|
|
6171
|
-
};
|
|
6172
|
-
playAudio: {
|
|
6173
|
-
src: "playAudio";
|
|
6174
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
6175
|
-
audioContext: AudioContext;
|
|
6176
|
-
audioBuffer: AudioBuffer;
|
|
6177
|
-
}, import("xstate").EventObject>;
|
|
6178
|
-
id: string;
|
|
6179
|
-
};
|
|
6180
|
-
createEventsFromStream: {
|
|
6181
|
-
src: "createEventsFromStream";
|
|
6182
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
6183
|
-
id: string;
|
|
6184
|
-
};
|
|
6185
|
-
ponyfill: {
|
|
6186
|
-
src: "ponyfill";
|
|
6187
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
6188
|
-
id: string;
|
|
6189
|
-
};
|
|
6190
|
-
start: {
|
|
6191
|
-
src: "start";
|
|
6192
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
6193
|
-
utterance: string;
|
|
6194
|
-
voice: string;
|
|
6195
|
-
ttsLexicon: string;
|
|
6196
|
-
locale: string;
|
|
6197
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
6198
|
-
wsaTTS: SpeechSynthesis;
|
|
6199
|
-
visemes?: boolean;
|
|
6200
|
-
}, import("xstate").EventObject>;
|
|
6201
|
-
id: string;
|
|
6202
|
-
};
|
|
6203
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
5938
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
6204
5939
|
type: "READY";
|
|
6205
5940
|
value: {
|
|
6206
5941
|
wsaTTS: SpeechSynthesis;
|
|
6207
5942
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
6208
5943
|
};
|
|
6209
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
5944
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
6210
5945
|
};
|
|
6211
5946
|
};
|
|
6212
5947
|
};
|
|
@@ -7252,7 +6987,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
7252
6987
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
7253
6988
|
readonly states: {
|
|
7254
6989
|
readonly Go: {
|
|
7255
|
-
readonly entry: ({
|
|
6990
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
7256
6991
|
readonly invoke: {
|
|
7257
6992
|
readonly src: "start";
|
|
7258
6993
|
readonly input: ({ context }: {
|
|
@@ -7300,11 +7035,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
7300
7035
|
}) => {
|
|
7301
7036
|
azureAuthorizationToken: string;
|
|
7302
7037
|
azureRegion: string;
|
|
7038
|
+
audioContext: AudioContext;
|
|
7303
7039
|
};
|
|
7304
7040
|
};
|
|
7305
7041
|
readonly on: {
|
|
7306
7042
|
readonly READY: {
|
|
7307
|
-
readonly actions:
|
|
7043
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
7308
7044
|
type: "READY";
|
|
7309
7045
|
value: {
|
|
7310
7046
|
wsaTTS: SpeechSynthesis;
|
|
@@ -7371,7 +7107,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
7371
7107
|
}, import("xstate").EventObject>;
|
|
7372
7108
|
id: string;
|
|
7373
7109
|
};
|
|
7374
|
-
}>, never, never, never, never
|
|
7110
|
+
}>, never, never, never, never>;
|
|
7375
7111
|
};
|
|
7376
7112
|
readonly NEW_TOKEN: {
|
|
7377
7113
|
readonly target: "Ponyfill";
|
|
@@ -8591,80 +8327,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
8591
8327
|
readonly on: {
|
|
8592
8328
|
readonly READY: {
|
|
8593
8329
|
readonly target: "Ready";
|
|
8594
|
-
readonly actions:
|
|
8595
|
-
type: "READY";
|
|
8596
|
-
value: {
|
|
8597
|
-
wsaTTS: SpeechSynthesis;
|
|
8598
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
8599
|
-
};
|
|
8600
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
8601
|
-
checkCache: {
|
|
8602
|
-
src: "checkCache";
|
|
8603
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
8604
|
-
cacheURL: string;
|
|
8605
|
-
utterance: string;
|
|
8606
|
-
voice: string;
|
|
8607
|
-
locale: string;
|
|
8608
|
-
}, import("xstate").EventObject>;
|
|
8609
|
-
id: string;
|
|
8610
|
-
};
|
|
8611
|
-
getAudioFromCache: {
|
|
8612
|
-
src: "getAudioFromCache";
|
|
8613
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
8614
|
-
audioContext: AudioContext;
|
|
8615
|
-
cacheURL: string;
|
|
8616
|
-
utterance: string;
|
|
8617
|
-
voice: string;
|
|
8618
|
-
locale: string;
|
|
8619
|
-
}, import("xstate").EventObject>;
|
|
8620
|
-
id: string;
|
|
8621
|
-
};
|
|
8622
|
-
getAudio: {
|
|
8623
|
-
src: "getAudio";
|
|
8624
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
8625
|
-
audioContext: AudioContext;
|
|
8626
|
-
audioURL: string;
|
|
8627
|
-
}, import("xstate").EventObject>;
|
|
8628
|
-
id: string;
|
|
8629
|
-
};
|
|
8630
|
-
playAudio: {
|
|
8631
|
-
src: "playAudio";
|
|
8632
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
8633
|
-
audioContext: AudioContext;
|
|
8634
|
-
audioBuffer: AudioBuffer;
|
|
8635
|
-
}, import("xstate").EventObject>;
|
|
8636
|
-
id: string;
|
|
8637
|
-
};
|
|
8638
|
-
createEventsFromStream: {
|
|
8639
|
-
src: "createEventsFromStream";
|
|
8640
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
8641
|
-
id: string;
|
|
8642
|
-
};
|
|
8643
|
-
ponyfill: {
|
|
8644
|
-
src: "ponyfill";
|
|
8645
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
8646
|
-
id: string;
|
|
8647
|
-
};
|
|
8648
|
-
start: {
|
|
8649
|
-
src: "start";
|
|
8650
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
8651
|
-
utterance: string;
|
|
8652
|
-
voice: string;
|
|
8653
|
-
ttsLexicon: string;
|
|
8654
|
-
locale: string;
|
|
8655
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
8656
|
-
wsaTTS: SpeechSynthesis;
|
|
8657
|
-
visemes?: boolean;
|
|
8658
|
-
}, import("xstate").EventObject>;
|
|
8659
|
-
id: string;
|
|
8660
|
-
};
|
|
8661
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
8330
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
8662
8331
|
type: "READY";
|
|
8663
8332
|
value: {
|
|
8664
8333
|
wsaTTS: SpeechSynthesis;
|
|
8665
8334
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
8666
8335
|
};
|
|
8667
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
8336
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
8668
8337
|
};
|
|
8669
8338
|
};
|
|
8670
8339
|
};
|
|
@@ -9710,7 +9379,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
9710
9379
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
9711
9380
|
readonly states: {
|
|
9712
9381
|
readonly Go: {
|
|
9713
|
-
readonly entry: ({
|
|
9382
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
9714
9383
|
readonly invoke: {
|
|
9715
9384
|
readonly src: "start";
|
|
9716
9385
|
readonly input: ({ context }: {
|
|
@@ -9758,11 +9427,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
9758
9427
|
}) => {
|
|
9759
9428
|
azureAuthorizationToken: string;
|
|
9760
9429
|
azureRegion: string;
|
|
9430
|
+
audioContext: AudioContext;
|
|
9761
9431
|
};
|
|
9762
9432
|
};
|
|
9763
9433
|
readonly on: {
|
|
9764
9434
|
readonly READY: {
|
|
9765
|
-
readonly actions:
|
|
9435
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
9766
9436
|
type: "READY";
|
|
9767
9437
|
value: {
|
|
9768
9438
|
wsaTTS: SpeechSynthesis;
|
|
@@ -9829,7 +9499,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
9829
9499
|
}, import("xstate").EventObject>;
|
|
9830
9500
|
id: string;
|
|
9831
9501
|
};
|
|
9832
|
-
}>, never, never, never, never
|
|
9502
|
+
}>, never, never, never, never>;
|
|
9833
9503
|
};
|
|
9834
9504
|
readonly NEW_TOKEN: {
|
|
9835
9505
|
readonly target: "Ponyfill";
|
|
@@ -10617,116 +10287,49 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
10617
10287
|
visemes?: boolean;
|
|
10618
10288
|
}, import("xstate").EventObject>;
|
|
10619
10289
|
id: string;
|
|
10620
|
-
};
|
|
10621
|
-
}>, "src", TSrc>["logic"]>;
|
|
10622
|
-
<TLogic extends import("xstate").AnyActorLogic>(src: TLogic, options?: {
|
|
10623
|
-
id?: never;
|
|
10624
|
-
systemId?: string;
|
|
10625
|
-
input?: import("xstate").InputFrom<TLogic>;
|
|
10626
|
-
syncSnapshot?: boolean;
|
|
10627
|
-
}): import("xstate").ActorRefFromLogic<TLogic>;
|
|
10628
|
-
};
|
|
10629
|
-
input: import("./types").TTSInit;
|
|
10630
|
-
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./types").TTSContext, import("./types").TTSEvent, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, import("./types").TTSEvent, import("xstate").AnyEventObject>;
|
|
10631
|
-
}) => {
|
|
10632
|
-
azureAuthorizationToken: string;
|
|
10633
|
-
ttsDefaultVoice: string;
|
|
10634
|
-
ttsLexicon: string;
|
|
10635
|
-
audioContext: AudioContext;
|
|
10636
|
-
azureRegion: string;
|
|
10637
|
-
locale: string;
|
|
10638
|
-
buffer: string;
|
|
10639
|
-
};
|
|
10640
|
-
readonly on: {
|
|
10641
|
-
readonly ERROR: {
|
|
10642
|
-
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
10643
|
-
type: "ERROR";
|
|
10644
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
10645
|
-
};
|
|
10646
|
-
};
|
|
10647
|
-
readonly type: "parallel";
|
|
10648
|
-
readonly states: {
|
|
10649
|
-
readonly Operation: {
|
|
10650
|
-
readonly initial: "NotReady";
|
|
10651
|
-
readonly states: {
|
|
10652
|
-
readonly NotReady: {
|
|
10653
|
-
readonly on: {
|
|
10654
|
-
readonly READY: {
|
|
10655
|
-
readonly target: "Ready";
|
|
10656
|
-
readonly actions:
|
|
10657
|
-
type: "READY";
|
|
10658
|
-
value: {
|
|
10659
|
-
wsaTTS: SpeechSynthesis;
|
|
10660
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
10661
|
-
};
|
|
10662
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
10663
|
-
checkCache: {
|
|
10664
|
-
src: "checkCache";
|
|
10665
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
10666
|
-
cacheURL: string;
|
|
10667
|
-
utterance: string;
|
|
10668
|
-
voice: string;
|
|
10669
|
-
locale: string;
|
|
10670
|
-
}, import("xstate").EventObject>;
|
|
10671
|
-
id: string;
|
|
10672
|
-
};
|
|
10673
|
-
getAudioFromCache: {
|
|
10674
|
-
src: "getAudioFromCache";
|
|
10675
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
10676
|
-
audioContext: AudioContext;
|
|
10677
|
-
cacheURL: string;
|
|
10678
|
-
utterance: string;
|
|
10679
|
-
voice: string;
|
|
10680
|
-
locale: string;
|
|
10681
|
-
}, import("xstate").EventObject>;
|
|
10682
|
-
id: string;
|
|
10683
|
-
};
|
|
10684
|
-
getAudio: {
|
|
10685
|
-
src: "getAudio";
|
|
10686
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
10687
|
-
audioContext: AudioContext;
|
|
10688
|
-
audioURL: string;
|
|
10689
|
-
}, import("xstate").EventObject>;
|
|
10690
|
-
id: string;
|
|
10691
|
-
};
|
|
10692
|
-
playAudio: {
|
|
10693
|
-
src: "playAudio";
|
|
10694
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
10695
|
-
audioContext: AudioContext;
|
|
10696
|
-
audioBuffer: AudioBuffer;
|
|
10697
|
-
}, import("xstate").EventObject>;
|
|
10698
|
-
id: string;
|
|
10699
|
-
};
|
|
10700
|
-
createEventsFromStream: {
|
|
10701
|
-
src: "createEventsFromStream";
|
|
10702
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
10703
|
-
id: string;
|
|
10704
|
-
};
|
|
10705
|
-
ponyfill: {
|
|
10706
|
-
src: "ponyfill";
|
|
10707
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
10708
|
-
id: string;
|
|
10709
|
-
};
|
|
10710
|
-
start: {
|
|
10711
|
-
src: "start";
|
|
10712
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
10713
|
-
utterance: string;
|
|
10714
|
-
voice: string;
|
|
10715
|
-
ttsLexicon: string;
|
|
10716
|
-
locale: string;
|
|
10717
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
10718
|
-
wsaTTS: SpeechSynthesis;
|
|
10719
|
-
visemes?: boolean;
|
|
10720
|
-
}, import("xstate").EventObject>;
|
|
10721
|
-
id: string;
|
|
10722
|
-
};
|
|
10723
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
10290
|
+
};
|
|
10291
|
+
}>, "src", TSrc>["logic"]>;
|
|
10292
|
+
<TLogic extends import("xstate").AnyActorLogic>(src: TLogic, options?: {
|
|
10293
|
+
id?: never;
|
|
10294
|
+
systemId?: string;
|
|
10295
|
+
input?: import("xstate").InputFrom<TLogic>;
|
|
10296
|
+
syncSnapshot?: boolean;
|
|
10297
|
+
}): import("xstate").ActorRefFromLogic<TLogic>;
|
|
10298
|
+
};
|
|
10299
|
+
input: import("./types").TTSInit;
|
|
10300
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./types").TTSContext, import("./types").TTSEvent, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, import("./types").TTSEvent, import("xstate").AnyEventObject>;
|
|
10301
|
+
}) => {
|
|
10302
|
+
azureAuthorizationToken: string;
|
|
10303
|
+
ttsDefaultVoice: string;
|
|
10304
|
+
ttsLexicon: string;
|
|
10305
|
+
audioContext: AudioContext;
|
|
10306
|
+
azureRegion: string;
|
|
10307
|
+
locale: string;
|
|
10308
|
+
buffer: string;
|
|
10309
|
+
};
|
|
10310
|
+
readonly on: {
|
|
10311
|
+
readonly ERROR: {
|
|
10312
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
10313
|
+
type: "ERROR";
|
|
10314
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
10315
|
+
};
|
|
10316
|
+
};
|
|
10317
|
+
readonly type: "parallel";
|
|
10318
|
+
readonly states: {
|
|
10319
|
+
readonly Operation: {
|
|
10320
|
+
readonly initial: "NotReady";
|
|
10321
|
+
readonly states: {
|
|
10322
|
+
readonly NotReady: {
|
|
10323
|
+
readonly on: {
|
|
10324
|
+
readonly READY: {
|
|
10325
|
+
readonly target: "Ready";
|
|
10326
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
10724
10327
|
type: "READY";
|
|
10725
10328
|
value: {
|
|
10726
10329
|
wsaTTS: SpeechSynthesis;
|
|
10727
10330
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
10728
10331
|
};
|
|
10729
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
10332
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
10730
10333
|
};
|
|
10731
10334
|
};
|
|
10732
10335
|
};
|
|
@@ -11772,7 +11375,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
11772
11375
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
11773
11376
|
readonly states: {
|
|
11774
11377
|
readonly Go: {
|
|
11775
|
-
readonly entry: ({
|
|
11378
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
11776
11379
|
readonly invoke: {
|
|
11777
11380
|
readonly src: "start";
|
|
11778
11381
|
readonly input: ({ context }: {
|
|
@@ -11820,11 +11423,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
11820
11423
|
}) => {
|
|
11821
11424
|
azureAuthorizationToken: string;
|
|
11822
11425
|
azureRegion: string;
|
|
11426
|
+
audioContext: AudioContext;
|
|
11823
11427
|
};
|
|
11824
11428
|
};
|
|
11825
11429
|
readonly on: {
|
|
11826
11430
|
readonly READY: {
|
|
11827
|
-
readonly actions:
|
|
11431
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
11828
11432
|
type: "READY";
|
|
11829
11433
|
value: {
|
|
11830
11434
|
wsaTTS: SpeechSynthesis;
|
|
@@ -11891,7 +11495,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
11891
11495
|
}, import("xstate").EventObject>;
|
|
11892
11496
|
id: string;
|
|
11893
11497
|
};
|
|
11894
|
-
}>, never, never, never, never
|
|
11498
|
+
}>, never, never, never, never>;
|
|
11895
11499
|
};
|
|
11896
11500
|
readonly NEW_TOKEN: {
|
|
11897
11501
|
readonly target: "Ponyfill";
|
|
@@ -12714,80 +12318,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
12714
12318
|
readonly on: {
|
|
12715
12319
|
readonly READY: {
|
|
12716
12320
|
readonly target: "Ready";
|
|
12717
|
-
readonly actions:
|
|
12718
|
-
type: "READY";
|
|
12719
|
-
value: {
|
|
12720
|
-
wsaTTS: SpeechSynthesis;
|
|
12721
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
12722
|
-
};
|
|
12723
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
12724
|
-
checkCache: {
|
|
12725
|
-
src: "checkCache";
|
|
12726
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
12727
|
-
cacheURL: string;
|
|
12728
|
-
utterance: string;
|
|
12729
|
-
voice: string;
|
|
12730
|
-
locale: string;
|
|
12731
|
-
}, import("xstate").EventObject>;
|
|
12732
|
-
id: string;
|
|
12733
|
-
};
|
|
12734
|
-
getAudioFromCache: {
|
|
12735
|
-
src: "getAudioFromCache";
|
|
12736
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
12737
|
-
audioContext: AudioContext;
|
|
12738
|
-
cacheURL: string;
|
|
12739
|
-
utterance: string;
|
|
12740
|
-
voice: string;
|
|
12741
|
-
locale: string;
|
|
12742
|
-
}, import("xstate").EventObject>;
|
|
12743
|
-
id: string;
|
|
12744
|
-
};
|
|
12745
|
-
getAudio: {
|
|
12746
|
-
src: "getAudio";
|
|
12747
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
12748
|
-
audioContext: AudioContext;
|
|
12749
|
-
audioURL: string;
|
|
12750
|
-
}, import("xstate").EventObject>;
|
|
12751
|
-
id: string;
|
|
12752
|
-
};
|
|
12753
|
-
playAudio: {
|
|
12754
|
-
src: "playAudio";
|
|
12755
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
12756
|
-
audioContext: AudioContext;
|
|
12757
|
-
audioBuffer: AudioBuffer;
|
|
12758
|
-
}, import("xstate").EventObject>;
|
|
12759
|
-
id: string;
|
|
12760
|
-
};
|
|
12761
|
-
createEventsFromStream: {
|
|
12762
|
-
src: "createEventsFromStream";
|
|
12763
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
12764
|
-
id: string;
|
|
12765
|
-
};
|
|
12766
|
-
ponyfill: {
|
|
12767
|
-
src: "ponyfill";
|
|
12768
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
12769
|
-
id: string;
|
|
12770
|
-
};
|
|
12771
|
-
start: {
|
|
12772
|
-
src: "start";
|
|
12773
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
12774
|
-
utterance: string;
|
|
12775
|
-
voice: string;
|
|
12776
|
-
ttsLexicon: string;
|
|
12777
|
-
locale: string;
|
|
12778
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
12779
|
-
wsaTTS: SpeechSynthesis;
|
|
12780
|
-
visemes?: boolean;
|
|
12781
|
-
}, import("xstate").EventObject>;
|
|
12782
|
-
id: string;
|
|
12783
|
-
};
|
|
12784
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
12321
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
12785
12322
|
type: "READY";
|
|
12786
12323
|
value: {
|
|
12787
12324
|
wsaTTS: SpeechSynthesis;
|
|
12788
12325
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
12789
12326
|
};
|
|
12790
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
12327
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
12791
12328
|
};
|
|
12792
12329
|
};
|
|
12793
12330
|
};
|
|
@@ -13833,7 +13370,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
13833
13370
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
13834
13371
|
readonly states: {
|
|
13835
13372
|
readonly Go: {
|
|
13836
|
-
readonly entry: ({
|
|
13373
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
13837
13374
|
readonly invoke: {
|
|
13838
13375
|
readonly src: "start";
|
|
13839
13376
|
readonly input: ({ context }: {
|
|
@@ -13881,11 +13418,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
13881
13418
|
}) => {
|
|
13882
13419
|
azureAuthorizationToken: string;
|
|
13883
13420
|
azureRegion: string;
|
|
13421
|
+
audioContext: AudioContext;
|
|
13884
13422
|
};
|
|
13885
13423
|
};
|
|
13886
13424
|
readonly on: {
|
|
13887
13425
|
readonly READY: {
|
|
13888
|
-
readonly actions:
|
|
13426
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
13889
13427
|
type: "READY";
|
|
13890
13428
|
value: {
|
|
13891
13429
|
wsaTTS: SpeechSynthesis;
|
|
@@ -13952,7 +13490,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
13952
13490
|
}, import("xstate").EventObject>;
|
|
13953
13491
|
id: string;
|
|
13954
13492
|
};
|
|
13955
|
-
}>, never, never, never, never
|
|
13493
|
+
}>, never, never, never, never>;
|
|
13956
13494
|
};
|
|
13957
13495
|
readonly NEW_TOKEN: {
|
|
13958
13496
|
readonly target: "Ponyfill";
|
|
@@ -14771,80 +14309,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
14771
14309
|
readonly on: {
|
|
14772
14310
|
readonly READY: {
|
|
14773
14311
|
readonly target: "Ready";
|
|
14774
|
-
readonly actions:
|
|
14775
|
-
type: "READY";
|
|
14776
|
-
value: {
|
|
14777
|
-
wsaTTS: SpeechSynthesis;
|
|
14778
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
14779
|
-
};
|
|
14780
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
14781
|
-
checkCache: {
|
|
14782
|
-
src: "checkCache";
|
|
14783
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
14784
|
-
cacheURL: string;
|
|
14785
|
-
utterance: string;
|
|
14786
|
-
voice: string;
|
|
14787
|
-
locale: string;
|
|
14788
|
-
}, import("xstate").EventObject>;
|
|
14789
|
-
id: string;
|
|
14790
|
-
};
|
|
14791
|
-
getAudioFromCache: {
|
|
14792
|
-
src: "getAudioFromCache";
|
|
14793
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
14794
|
-
audioContext: AudioContext;
|
|
14795
|
-
cacheURL: string;
|
|
14796
|
-
utterance: string;
|
|
14797
|
-
voice: string;
|
|
14798
|
-
locale: string;
|
|
14799
|
-
}, import("xstate").EventObject>;
|
|
14800
|
-
id: string;
|
|
14801
|
-
};
|
|
14802
|
-
getAudio: {
|
|
14803
|
-
src: "getAudio";
|
|
14804
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
14805
|
-
audioContext: AudioContext;
|
|
14806
|
-
audioURL: string;
|
|
14807
|
-
}, import("xstate").EventObject>;
|
|
14808
|
-
id: string;
|
|
14809
|
-
};
|
|
14810
|
-
playAudio: {
|
|
14811
|
-
src: "playAudio";
|
|
14812
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
14813
|
-
audioContext: AudioContext;
|
|
14814
|
-
audioBuffer: AudioBuffer;
|
|
14815
|
-
}, import("xstate").EventObject>;
|
|
14816
|
-
id: string;
|
|
14817
|
-
};
|
|
14818
|
-
createEventsFromStream: {
|
|
14819
|
-
src: "createEventsFromStream";
|
|
14820
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
14821
|
-
id: string;
|
|
14822
|
-
};
|
|
14823
|
-
ponyfill: {
|
|
14824
|
-
src: "ponyfill";
|
|
14825
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
14826
|
-
id: string;
|
|
14827
|
-
};
|
|
14828
|
-
start: {
|
|
14829
|
-
src: "start";
|
|
14830
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
14831
|
-
utterance: string;
|
|
14832
|
-
voice: string;
|
|
14833
|
-
ttsLexicon: string;
|
|
14834
|
-
locale: string;
|
|
14835
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
14836
|
-
wsaTTS: SpeechSynthesis;
|
|
14837
|
-
visemes?: boolean;
|
|
14838
|
-
}, import("xstate").EventObject>;
|
|
14839
|
-
id: string;
|
|
14840
|
-
};
|
|
14841
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
14312
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
14842
14313
|
type: "READY";
|
|
14843
14314
|
value: {
|
|
14844
14315
|
wsaTTS: SpeechSynthesis;
|
|
14845
14316
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
14846
14317
|
};
|
|
14847
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
14318
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
14848
14319
|
};
|
|
14849
14320
|
};
|
|
14850
14321
|
};
|
|
@@ -15890,7 +15361,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
15890
15361
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
15891
15362
|
readonly states: {
|
|
15892
15363
|
readonly Go: {
|
|
15893
|
-
readonly entry: ({
|
|
15364
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
15894
15365
|
readonly invoke: {
|
|
15895
15366
|
readonly src: "start";
|
|
15896
15367
|
readonly input: ({ context }: {
|
|
@@ -15938,11 +15409,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
15938
15409
|
}) => {
|
|
15939
15410
|
azureAuthorizationToken: string;
|
|
15940
15411
|
azureRegion: string;
|
|
15412
|
+
audioContext: AudioContext;
|
|
15941
15413
|
};
|
|
15942
15414
|
};
|
|
15943
15415
|
readonly on: {
|
|
15944
15416
|
readonly READY: {
|
|
15945
|
-
readonly actions:
|
|
15417
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
15946
15418
|
type: "READY";
|
|
15947
15419
|
value: {
|
|
15948
15420
|
wsaTTS: SpeechSynthesis;
|
|
@@ -16009,7 +15481,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
16009
15481
|
}, import("xstate").EventObject>;
|
|
16010
15482
|
id: string;
|
|
16011
15483
|
};
|
|
16012
|
-
}>, never, never, never, never
|
|
15484
|
+
}>, never, never, never, never>;
|
|
16013
15485
|
};
|
|
16014
15486
|
readonly NEW_TOKEN: {
|
|
16015
15487
|
readonly target: "Ponyfill";
|
|
@@ -16844,80 +16316,13 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
16844
16316
|
readonly on: {
|
|
16845
16317
|
readonly READY: {
|
|
16846
16318
|
readonly target: "Ready";
|
|
16847
|
-
readonly actions:
|
|
16848
|
-
type: "READY";
|
|
16849
|
-
value: {
|
|
16850
|
-
wsaTTS: SpeechSynthesis;
|
|
16851
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
16852
|
-
};
|
|
16853
|
-
}, import("./types").TTSEvent, undefined, import("xstate").Values<{
|
|
16854
|
-
checkCache: {
|
|
16855
|
-
src: "checkCache";
|
|
16856
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
16857
|
-
cacheURL: string;
|
|
16858
|
-
utterance: string;
|
|
16859
|
-
voice: string;
|
|
16860
|
-
locale: string;
|
|
16861
|
-
}, import("xstate").EventObject>;
|
|
16862
|
-
id: string;
|
|
16863
|
-
};
|
|
16864
|
-
getAudioFromCache: {
|
|
16865
|
-
src: "getAudioFromCache";
|
|
16866
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
16867
|
-
audioContext: AudioContext;
|
|
16868
|
-
cacheURL: string;
|
|
16869
|
-
utterance: string;
|
|
16870
|
-
voice: string;
|
|
16871
|
-
locale: string;
|
|
16872
|
-
}, import("xstate").EventObject>;
|
|
16873
|
-
id: string;
|
|
16874
|
-
};
|
|
16875
|
-
getAudio: {
|
|
16876
|
-
src: "getAudio";
|
|
16877
|
-
logic: import("xstate").PromiseActorLogic<any, {
|
|
16878
|
-
audioContext: AudioContext;
|
|
16879
|
-
audioURL: string;
|
|
16880
|
-
}, import("xstate").EventObject>;
|
|
16881
|
-
id: string;
|
|
16882
|
-
};
|
|
16883
|
-
playAudio: {
|
|
16884
|
-
src: "playAudio";
|
|
16885
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, {
|
|
16886
|
-
audioContext: AudioContext;
|
|
16887
|
-
audioBuffer: AudioBuffer;
|
|
16888
|
-
}, import("xstate").EventObject>;
|
|
16889
|
-
id: string;
|
|
16890
|
-
};
|
|
16891
|
-
createEventsFromStream: {
|
|
16892
|
-
src: "createEventsFromStream";
|
|
16893
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, Agenda, import("xstate").EventObject>;
|
|
16894
|
-
id: string;
|
|
16895
|
-
};
|
|
16896
|
-
ponyfill: {
|
|
16897
|
-
src: "ponyfill";
|
|
16898
|
-
logic: import("xstate").CallbackActorLogic<null, import("./types").TTSPonyfillInput, import("xstate").EventObject>;
|
|
16899
|
-
id: string;
|
|
16900
|
-
};
|
|
16901
|
-
start: {
|
|
16902
|
-
src: "start";
|
|
16903
|
-
logic: import("xstate").CallbackActorLogic<null, {
|
|
16904
|
-
utterance: string;
|
|
16905
|
-
voice: string;
|
|
16906
|
-
ttsLexicon: string;
|
|
16907
|
-
locale: string;
|
|
16908
|
-
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
16909
|
-
wsaTTS: SpeechSynthesis;
|
|
16910
|
-
visemes?: boolean;
|
|
16911
|
-
}, import("xstate").EventObject>;
|
|
16912
|
-
id: string;
|
|
16913
|
-
};
|
|
16914
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
16319
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
16915
16320
|
type: "READY";
|
|
16916
16321
|
value: {
|
|
16917
16322
|
wsaTTS: SpeechSynthesis;
|
|
16918
16323
|
wsaUtt: import("./types").ConstructableSpeechSynthesisUtterance;
|
|
16919
16324
|
};
|
|
16920
|
-
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never
|
|
16325
|
+
}, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
16921
16326
|
};
|
|
16922
16327
|
};
|
|
16923
16328
|
};
|
|
@@ -17963,7 +17368,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
17963
17368
|
readonly exit: import("xstate").ActionFunction<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent, undefined, never, never, never, "FILLER_DELAY" | "STREAMING_TIMEOUT", never>;
|
|
17964
17369
|
readonly states: {
|
|
17965
17370
|
readonly Go: {
|
|
17966
|
-
readonly entry: ({
|
|
17371
|
+
readonly entry: ({ event }: import("xstate").ActionArgs<import("./types").TTSContext, import("./types").TTSEvent, import("./types").TTSEvent>) => void;
|
|
17967
17372
|
readonly invoke: {
|
|
17968
17373
|
readonly src: "start";
|
|
17969
17374
|
readonly input: ({ context }: {
|
|
@@ -18011,11 +17416,12 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
18011
17416
|
}) => {
|
|
18012
17417
|
azureAuthorizationToken: string;
|
|
18013
17418
|
azureRegion: string;
|
|
17419
|
+
audioContext: AudioContext;
|
|
18014
17420
|
};
|
|
18015
17421
|
};
|
|
18016
17422
|
readonly on: {
|
|
18017
17423
|
readonly READY: {
|
|
18018
|
-
readonly actions:
|
|
17424
|
+
readonly actions: import("xstate").ActionFunction<import("./types").TTSContext, {
|
|
18019
17425
|
type: "READY";
|
|
18020
17426
|
value: {
|
|
18021
17427
|
wsaTTS: SpeechSynthesis;
|
|
@@ -18082,7 +17488,7 @@ declare const speechstate: import("xstate").StateMachine<SSContext, SpeechStateE
|
|
|
18082
17488
|
}, import("xstate").EventObject>;
|
|
18083
17489
|
id: string;
|
|
18084
17490
|
};
|
|
18085
|
-
}>, never, never, never, never
|
|
17491
|
+
}>, never, never, never, never>;
|
|
18086
17492
|
};
|
|
18087
17493
|
readonly NEW_TOKEN: {
|
|
18088
17494
|
readonly target: "Ponyfill";
|