rystem.playframework.client 0.1.2 → 0.1.3
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/README.md +462 -15
- package/lib/engine/PlayFrameworkClient.d.ts +19 -0
- package/lib/engine/PlayFrameworkClient.d.ts.map +1 -1
- package/lib/engine/PlayFrameworkClient.js +88 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -1
- package/lib/models/PlayFrameworkRequest.d.ts +10 -0
- package/lib/models/PlayFrameworkRequest.d.ts.map +1 -1
- package/lib/models/VoiceResponse.d.ts +39 -0
- package/lib/models/VoiceResponse.d.ts.map +1 -0
- package/lib/models/VoiceResponse.js +2 -0
- package/lib/utils/BrowserSpeechRecognizer.d.ts +128 -0
- package/lib/utils/BrowserSpeechRecognizer.d.ts.map +1 -0
- package/lib/utils/BrowserSpeechRecognizer.js +150 -0
- package/lib/utils/BrowserSpeechSynthesizer.d.ts +148 -0
- package/lib/utils/BrowserSpeechSynthesizer.d.ts.map +1 -0
- package/lib/utils/BrowserSpeechSynthesizer.js +400 -0
- package/lib/utils/BrowserVoiceClient.d.ts +142 -0
- package/lib/utils/BrowserVoiceClient.d.ts.map +1 -0
- package/lib/utils/BrowserVoiceClient.js +200 -0
- package/lib/utils/VoiceRecorder.d.ts +90 -0
- package/lib/utils/VoiceRecorder.d.ts.map +1 -0
- package/lib/utils/VoiceRecorder.js +195 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePlayFramework = exports.PlayFrameworkServices = exports.PlayFrameworkSettings = exports.ContentUrlConverter = exports.AIContentConverter = exports.ClientInteractionRegistry = exports.PlayFrameworkClient = exports.CommandResultHelper = exports.ConversationSortOrder = void 0;
|
|
3
|
+
exports.usePlayFramework = exports.PlayFrameworkServices = exports.PlayFrameworkSettings = exports.BrowserVoiceClient = exports.BrowserSpeechSynthesizer = exports.BrowserSpeechRecognizer = exports.VoiceRecorder = exports.ContentUrlConverter = exports.AIContentConverter = exports.ClientInteractionRegistry = exports.PlayFrameworkClient = exports.CommandResultHelper = exports.ConversationSortOrder = void 0;
|
|
4
4
|
var StoredConversation_1 = require("./models/StoredConversation");
|
|
5
5
|
Object.defineProperty(exports, "ConversationSortOrder", { enumerable: true, get: function () { return StoredConversation_1.ConversationSortOrder; } });
|
|
6
6
|
var CommandResult_1 = require("./models/CommandResult");
|
|
@@ -15,6 +15,14 @@ var AIContentConverter_1 = require("./utils/AIContentConverter");
|
|
|
15
15
|
Object.defineProperty(exports, "AIContentConverter", { enumerable: true, get: function () { return AIContentConverter_1.AIContentConverter; } });
|
|
16
16
|
var ContentUrlConverter_1 = require("./utils/ContentUrlConverter");
|
|
17
17
|
Object.defineProperty(exports, "ContentUrlConverter", { enumerable: true, get: function () { return ContentUrlConverter_1.ContentUrlConverter; } });
|
|
18
|
+
var VoiceRecorder_1 = require("./utils/VoiceRecorder");
|
|
19
|
+
Object.defineProperty(exports, "VoiceRecorder", { enumerable: true, get: function () { return VoiceRecorder_1.VoiceRecorder; } });
|
|
20
|
+
var BrowserSpeechRecognizer_1 = require("./utils/BrowserSpeechRecognizer");
|
|
21
|
+
Object.defineProperty(exports, "BrowserSpeechRecognizer", { enumerable: true, get: function () { return BrowserSpeechRecognizer_1.BrowserSpeechRecognizer; } });
|
|
22
|
+
var BrowserSpeechSynthesizer_1 = require("./utils/BrowserSpeechSynthesizer");
|
|
23
|
+
Object.defineProperty(exports, "BrowserSpeechSynthesizer", { enumerable: true, get: function () { return BrowserSpeechSynthesizer_1.BrowserSpeechSynthesizer; } });
|
|
24
|
+
var BrowserVoiceClient_1 = require("./utils/BrowserVoiceClient");
|
|
25
|
+
Object.defineProperty(exports, "BrowserVoiceClient", { enumerable: true, get: function () { return BrowserVoiceClient_1.BrowserVoiceClient; } });
|
|
18
26
|
// Service Collection
|
|
19
27
|
var PlayFrameworkSettings_1 = require("./servicecollection/PlayFrameworkSettings");
|
|
20
28
|
Object.defineProperty(exports, "PlayFrameworkSettings", { enumerable: true, get: function () { return PlayFrameworkSettings_1.PlayFrameworkSettings; } });
|
|
@@ -40,6 +40,16 @@ export interface SceneRequestSettings {
|
|
|
40
40
|
sceneName?: string;
|
|
41
41
|
/** Results from client-side tool executions. */
|
|
42
42
|
clientInteractionResults?: ClientInteractionResult[];
|
|
43
|
+
/**
|
|
44
|
+
* Additional system-level instructions appended to the system prompt.
|
|
45
|
+
* Used by voice pipeline to inject conversational style and language instructions.
|
|
46
|
+
*/
|
|
47
|
+
additionalSystemInstructions?: string[];
|
|
48
|
+
/**
|
|
49
|
+
* When true, the server injects a voice-style system instruction
|
|
50
|
+
* that tells the LLM to respond conversationally (no tables, no markdown).
|
|
51
|
+
*/
|
|
52
|
+
isVoiceMode?: boolean;
|
|
43
53
|
}
|
|
44
54
|
/**
|
|
45
55
|
* Request model for PlayFramework HTTP API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayFrameworkRequest.d.ts","sourceRoot":"","sources":["../../src/models/PlayFrameworkRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,UAAU,GAAG,iBAAiB,GAAG,OAAO,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,uCAAuC;IACvC,mBAAmB,CAAC,EAAE,OAAO,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D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,wBAAwB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrD;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAEhC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AiSceneResponse } from "./AiSceneResponse";
|
|
2
|
+
/**
|
|
3
|
+
* Type of voice pipeline response event.
|
|
4
|
+
*/
|
|
5
|
+
export type VoiceResponseType = "transcription" | "audio" | "scene" | "completed" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Single event from the voice pipeline SSE stream.
|
|
8
|
+
* The server sends these as `data: {...}\n\n` lines.
|
|
9
|
+
*/
|
|
10
|
+
export interface VoiceEvent {
|
|
11
|
+
/** Event type discriminator. */
|
|
12
|
+
type: VoiceResponseType;
|
|
13
|
+
/** Text content (transcript for "transcription", synthesized sentence for "audio"). */
|
|
14
|
+
text?: string;
|
|
15
|
+
/** Base64-encoded audio chunk (only for type === "audio"). */
|
|
16
|
+
audio?: string;
|
|
17
|
+
/** PlayFramework scene status (only for type === "scene"). */
|
|
18
|
+
status?: string;
|
|
19
|
+
/** Full scene response (only for type === "scene"). */
|
|
20
|
+
sceneResponse?: AiSceneResponse;
|
|
21
|
+
/** Scene message (only for type === "scene"). */
|
|
22
|
+
message?: string;
|
|
23
|
+
/** Error message (only for type === "error"). */
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Options for the voice pipeline request.
|
|
28
|
+
*/
|
|
29
|
+
export interface VoiceRequestOptions {
|
|
30
|
+
/** Raw audio data as Blob or File. */
|
|
31
|
+
audio: Blob | File;
|
|
32
|
+
/** Optional conversation key for multi-turn voice conversations. */
|
|
33
|
+
conversationKey?: string;
|
|
34
|
+
/** Optional metadata (userId, tenantId, etc.). */
|
|
35
|
+
metadata?: Record<string, any>;
|
|
36
|
+
/** Optional abort signal. */
|
|
37
|
+
signal?: AbortSignal;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=VoiceResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceResponse.d.ts","sourceRoot":"","sources":["../../src/models/VoiceResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,CAAC;AAE5F;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,gCAAgC;IAChC,IAAI,EAAE,iBAAiB,CAAC;IAExB,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,uDAAuD;IACvD,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,sCAAsC;IACtC,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnB,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACxB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for BrowserSpeechRecognizer.
|
|
3
|
+
*/
|
|
4
|
+
export interface BrowserSpeechRecognizerOptions {
|
|
5
|
+
/** BCP-47 language code (e.g. 'it-IT', 'en-US'). If omitted, the browser's default is used. */
|
|
6
|
+
lang?: string;
|
|
7
|
+
/** Whether to return interim (partial) results. Default: `true`. */
|
|
8
|
+
interimResults?: boolean;
|
|
9
|
+
/** Whether recognition restarts automatically on end. Default: `false`. */
|
|
10
|
+
continuous?: boolean;
|
|
11
|
+
/** Maximum alternatives per result. Default: `1`. */
|
|
12
|
+
maxAlternatives?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Result from a speech recognition session.
|
|
16
|
+
*/
|
|
17
|
+
export interface SpeechRecognitionResult {
|
|
18
|
+
/** The final transcribed text. */
|
|
19
|
+
transcript: string;
|
|
20
|
+
/** Confidence score (0-1). */
|
|
21
|
+
confidence: number;
|
|
22
|
+
/** Whether this is a final (not interim) result. */
|
|
23
|
+
isFinal: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Callbacks emitted by BrowserSpeechRecognizer.
|
|
27
|
+
*/
|
|
28
|
+
export interface BrowserSpeechRecognizerCallbacks {
|
|
29
|
+
/** Called with each interim or final result. */
|
|
30
|
+
onResult?: (result: SpeechRecognitionResult) => void;
|
|
31
|
+
/** Called when recognition ends (user stopped or no more speech). */
|
|
32
|
+
onEnd?: () => void;
|
|
33
|
+
/** Called on recognition error. */
|
|
34
|
+
onError?: (error: Error) => void;
|
|
35
|
+
/** Called when recognition starts. */
|
|
36
|
+
onStart?: () => void;
|
|
37
|
+
}
|
|
38
|
+
interface SpeechRecognitionEvent extends Event {
|
|
39
|
+
results: SpeechRecognitionResultList;
|
|
40
|
+
resultIndex: number;
|
|
41
|
+
}
|
|
42
|
+
interface SpeechRecognitionErrorEvent extends Event {
|
|
43
|
+
error: string;
|
|
44
|
+
message: string;
|
|
45
|
+
}
|
|
46
|
+
interface SpeechRecognitionResultList {
|
|
47
|
+
length: number;
|
|
48
|
+
item(index: number): SpeechRecognitionResultItem;
|
|
49
|
+
[index: number]: SpeechRecognitionResultItem;
|
|
50
|
+
}
|
|
51
|
+
interface SpeechRecognitionResultItem {
|
|
52
|
+
isFinal: boolean;
|
|
53
|
+
length: number;
|
|
54
|
+
item(index: number): SpeechRecognitionAlternative;
|
|
55
|
+
[index: number]: SpeechRecognitionAlternative;
|
|
56
|
+
}
|
|
57
|
+
interface SpeechRecognitionAlternative {
|
|
58
|
+
transcript: string;
|
|
59
|
+
confidence: number;
|
|
60
|
+
}
|
|
61
|
+
interface SpeechRecognitionAPI extends EventTarget {
|
|
62
|
+
lang: string;
|
|
63
|
+
continuous: boolean;
|
|
64
|
+
interimResults: boolean;
|
|
65
|
+
maxAlternatives: number;
|
|
66
|
+
start(): void;
|
|
67
|
+
stop(): void;
|
|
68
|
+
abort(): void;
|
|
69
|
+
onresult: ((event: SpeechRecognitionEvent) => void) | null;
|
|
70
|
+
onend: (() => void) | null;
|
|
71
|
+
onerror: ((event: SpeechRecognitionErrorEvent) => void) | null;
|
|
72
|
+
onstart: (() => void) | null;
|
|
73
|
+
}
|
|
74
|
+
declare global {
|
|
75
|
+
interface Window {
|
|
76
|
+
SpeechRecognition?: new () => SpeechRecognitionAPI;
|
|
77
|
+
webkitSpeechRecognition?: new () => SpeechRecognitionAPI;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Wraps the browser Web Speech API `SpeechRecognition` for speech-to-text.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const recognizer = new BrowserSpeechRecognizer({ lang: 'it-IT' });
|
|
86
|
+
*
|
|
87
|
+
* // One-shot usage — returns final transcript as a Promise
|
|
88
|
+
* const text = await recognizer.listen();
|
|
89
|
+
*
|
|
90
|
+
* // Event-based usage
|
|
91
|
+
* recognizer.start({
|
|
92
|
+
* onResult: (r) => console.log(r.transcript, r.isFinal),
|
|
93
|
+
* onEnd: () => console.log('done'),
|
|
94
|
+
* });
|
|
95
|
+
* // later...
|
|
96
|
+
* recognizer.stop();
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare class BrowserSpeechRecognizer {
|
|
100
|
+
private options;
|
|
101
|
+
private recognition;
|
|
102
|
+
private _isListening;
|
|
103
|
+
constructor(options?: BrowserSpeechRecognizerOptions);
|
|
104
|
+
/** Whether recognition is currently active. */
|
|
105
|
+
get isListening(): boolean;
|
|
106
|
+
/** Returns `true` if the browser supports the Web Speech Recognition API. */
|
|
107
|
+
static isSupported(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Start recognition with event callbacks.
|
|
110
|
+
* If already listening, this is a no-op.
|
|
111
|
+
*/
|
|
112
|
+
start(callbacks?: BrowserSpeechRecognizerCallbacks): void;
|
|
113
|
+
/** Stop recognition gracefully (delivers final result). */
|
|
114
|
+
stop(): void;
|
|
115
|
+
/** Abort recognition immediately (no final result). */
|
|
116
|
+
abort(): void;
|
|
117
|
+
/**
|
|
118
|
+
* One-shot recognition: starts listening and returns a Promise that resolves
|
|
119
|
+
* with the final transcript when speech ends.
|
|
120
|
+
*
|
|
121
|
+
* @param timeoutMs - Maximum wait time (default: 15000ms). Resolves with '' on timeout.
|
|
122
|
+
*/
|
|
123
|
+
listen(timeoutMs?: number): Promise<string>;
|
|
124
|
+
/** Update language at runtime (takes effect on next `start()`). */
|
|
125
|
+
setLang(lang: string): void;
|
|
126
|
+
}
|
|
127
|
+
export {};
|
|
128
|
+
//# sourceMappingURL=BrowserSpeechRecognizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserSpeechRecognizer.d.ts","sourceRoot":"","sources":["../../src/utils/BrowserSpeechRecognizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,gDAAgD;IAChD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACrD,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,mCAAmC;IACnC,OAAO,CAAC,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D,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;CAChC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,iBAAiB,CAAC,EAAE,UAAU,oBAAoB,CAAC;QACnD,uBAAuB,CAAC,EAAE,UAAU,oBAAoB,CAAC;KAC5D;CACJ;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,uBAAuB;IAChC,OAAO,CAAC,OAAO,CAA2C;IAC1D,OAAO,CAAC,WAAW,CAAqC;IACxD,OAAO,CAAC,YAAY,CAAS;gBAEjB,OAAO,CAAC,EAAE,8BAA8B;IASpD,+CAA+C;IAC/C,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,6EAA6E;IAC7E,MAAM,CAAC,WAAW,IAAI,OAAO;IAK7B;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,EAAE,gCAAgC,GAAG,IAAI;IAmDzD,2DAA2D;IAC3D,IAAI,IAAI,IAAI;IAMZ,uDAAuD;IACvD,KAAK,IAAI,IAAI;IAQb;;;;;OAKG;IACH,MAAM,CAAC,SAAS,GAAE,MAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAqClD,mEAAmE;IACnE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAG9B"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserSpeechRecognizer = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Wraps the browser Web Speech API `SpeechRecognition` for speech-to-text.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const recognizer = new BrowserSpeechRecognizer({ lang: 'it-IT' });
|
|
10
|
+
*
|
|
11
|
+
* // One-shot usage — returns final transcript as a Promise
|
|
12
|
+
* const text = await recognizer.listen();
|
|
13
|
+
*
|
|
14
|
+
* // Event-based usage
|
|
15
|
+
* recognizer.start({
|
|
16
|
+
* onResult: (r) => console.log(r.transcript, r.isFinal),
|
|
17
|
+
* onEnd: () => console.log('done'),
|
|
18
|
+
* });
|
|
19
|
+
* // later...
|
|
20
|
+
* recognizer.stop();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class BrowserSpeechRecognizer {
|
|
24
|
+
options;
|
|
25
|
+
recognition = null;
|
|
26
|
+
_isListening = false;
|
|
27
|
+
constructor(options) {
|
|
28
|
+
this.options = {
|
|
29
|
+
lang: options?.lang ?? '',
|
|
30
|
+
interimResults: options?.interimResults ?? true,
|
|
31
|
+
continuous: options?.continuous ?? false,
|
|
32
|
+
maxAlternatives: options?.maxAlternatives ?? 1,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** Whether recognition is currently active. */
|
|
36
|
+
get isListening() {
|
|
37
|
+
return this._isListening;
|
|
38
|
+
}
|
|
39
|
+
/** Returns `true` if the browser supports the Web Speech Recognition API. */
|
|
40
|
+
static isSupported() {
|
|
41
|
+
return typeof window !== 'undefined' &&
|
|
42
|
+
!!(window.SpeechRecognition || window.webkitSpeechRecognition);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Start recognition with event callbacks.
|
|
46
|
+
* If already listening, this is a no-op.
|
|
47
|
+
*/
|
|
48
|
+
start(callbacks) {
|
|
49
|
+
if (this._isListening)
|
|
50
|
+
return;
|
|
51
|
+
const SpeechRecognitionCtor = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
52
|
+
if (!SpeechRecognitionCtor) {
|
|
53
|
+
callbacks?.onError?.(new Error('SpeechRecognition API is not supported in this browser.'));
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const recognition = new SpeechRecognitionCtor();
|
|
57
|
+
this.recognition = recognition;
|
|
58
|
+
if (this.options.lang)
|
|
59
|
+
recognition.lang = this.options.lang;
|
|
60
|
+
recognition.continuous = this.options.continuous;
|
|
61
|
+
recognition.interimResults = this.options.interimResults;
|
|
62
|
+
recognition.maxAlternatives = this.options.maxAlternatives;
|
|
63
|
+
recognition.onstart = () => {
|
|
64
|
+
this._isListening = true;
|
|
65
|
+
callbacks?.onStart?.();
|
|
66
|
+
};
|
|
67
|
+
recognition.onresult = (event) => {
|
|
68
|
+
for (let i = event.resultIndex; i < event.results.length; i++) {
|
|
69
|
+
const result = event.results[i];
|
|
70
|
+
const alt = result[0];
|
|
71
|
+
callbacks?.onResult?.({
|
|
72
|
+
transcript: alt.transcript,
|
|
73
|
+
confidence: alt.confidence,
|
|
74
|
+
isFinal: result.isFinal,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
recognition.onerror = (event) => {
|
|
79
|
+
// 'no-speech' and 'aborted' are common non-fatal errors
|
|
80
|
+
const nonFatal = ['no-speech', 'aborted'];
|
|
81
|
+
if (!nonFatal.includes(event.error)) {
|
|
82
|
+
callbacks?.onError?.(new Error(`SpeechRecognition error: ${event.error} — ${event.message}`));
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
recognition.onend = () => {
|
|
86
|
+
this._isListening = false;
|
|
87
|
+
this.recognition = null;
|
|
88
|
+
callbacks?.onEnd?.();
|
|
89
|
+
};
|
|
90
|
+
recognition.start();
|
|
91
|
+
}
|
|
92
|
+
/** Stop recognition gracefully (delivers final result). */
|
|
93
|
+
stop() {
|
|
94
|
+
if (this.recognition) {
|
|
95
|
+
this.recognition.stop();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** Abort recognition immediately (no final result). */
|
|
99
|
+
abort() {
|
|
100
|
+
if (this.recognition) {
|
|
101
|
+
this.recognition.abort();
|
|
102
|
+
this._isListening = false;
|
|
103
|
+
this.recognition = null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* One-shot recognition: starts listening and returns a Promise that resolves
|
|
108
|
+
* with the final transcript when speech ends.
|
|
109
|
+
*
|
|
110
|
+
* @param timeoutMs - Maximum wait time (default: 15000ms). Resolves with '' on timeout.
|
|
111
|
+
*/
|
|
112
|
+
listen(timeoutMs = 15000) {
|
|
113
|
+
return new Promise((resolve, reject) => {
|
|
114
|
+
let finalTranscript = '';
|
|
115
|
+
let timer = null;
|
|
116
|
+
const cleanup = () => {
|
|
117
|
+
if (timer) {
|
|
118
|
+
clearTimeout(timer);
|
|
119
|
+
timer = null;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
if (timeoutMs > 0) {
|
|
123
|
+
timer = setTimeout(() => {
|
|
124
|
+
this.stop();
|
|
125
|
+
// onEnd will fire and resolve with whatever we have
|
|
126
|
+
}, timeoutMs);
|
|
127
|
+
}
|
|
128
|
+
this.start({
|
|
129
|
+
onResult: (result) => {
|
|
130
|
+
if (result.isFinal) {
|
|
131
|
+
finalTranscript += result.transcript;
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
onEnd: () => {
|
|
135
|
+
cleanup();
|
|
136
|
+
resolve(finalTranscript);
|
|
137
|
+
},
|
|
138
|
+
onError: (err) => {
|
|
139
|
+
cleanup();
|
|
140
|
+
reject(err);
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/** Update language at runtime (takes effect on next `start()`). */
|
|
146
|
+
setLang(lang) {
|
|
147
|
+
this.options.lang = lang;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.BrowserSpeechRecognizer = BrowserSpeechRecognizer;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for BrowserSpeechSynthesizer.
|
|
3
|
+
*/
|
|
4
|
+
export interface BrowserSpeechSynthesizerOptions {
|
|
5
|
+
/** BCP-47 language code (e.g. 'it-IT', 'en-US'). Default: browser default. */
|
|
6
|
+
lang?: string;
|
|
7
|
+
/** Speech rate (0.1 - 10). Default: `1`. */
|
|
8
|
+
rate?: number;
|
|
9
|
+
/** Pitch (0 - 2). Default: `1`. */
|
|
10
|
+
pitch?: number;
|
|
11
|
+
/** Volume (0 - 1). Default: `1`. */
|
|
12
|
+
volume?: number;
|
|
13
|
+
/** Preferred voice name (e.g. 'Google italiano'). If not found, uses first matching lang voice. */
|
|
14
|
+
voiceName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sentence delimiters used to split streaming text into speakable chunks.
|
|
17
|
+
* Default: `['.', '!', '?', '\n']`.
|
|
18
|
+
*/
|
|
19
|
+
sentenceDelimiters?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Minimum character count before flushing a sentence for speech.
|
|
22
|
+
* Prevents speaking very short fragments. Default: `20`.
|
|
23
|
+
*/
|
|
24
|
+
minCharsBeforeSpeak?: number;
|
|
25
|
+
/**
|
|
26
|
+
* When `true`, prefer browser-local voices (no network round-trip) over
|
|
27
|
+
* cloud/remote voices. Local voices synthesize instantly, eliminating
|
|
28
|
+
* the audible gap between sentences caused by network latency.
|
|
29
|
+
* Default: `true`.
|
|
30
|
+
*/
|
|
31
|
+
preferLocalVoice?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Callbacks emitted by BrowserSpeechSynthesizer.
|
|
35
|
+
*/
|
|
36
|
+
export interface BrowserSpeechSynthesizerCallbacks {
|
|
37
|
+
/** Called when a sentence starts being spoken. */
|
|
38
|
+
onSpeakStart?: (text: string) => void;
|
|
39
|
+
/** Called when a sentence finishes being spoken. */
|
|
40
|
+
onSpeakEnd?: (text: string) => void;
|
|
41
|
+
/** Called when all queued speech has been spoken. */
|
|
42
|
+
onQueueEmpty?: () => void;
|
|
43
|
+
/** Called on speech error. */
|
|
44
|
+
onError?: (error: Error) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Wraps the browser Web Speech API `SpeechSynthesis` for text-to-speech,
|
|
48
|
+
* with built-in sentence accumulation for streaming scenarios.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const synth = new BrowserSpeechSynthesizer({ lang: 'it-IT', rate: 1.1 });
|
|
53
|
+
*
|
|
54
|
+
* // Simple usage
|
|
55
|
+
* await synth.speak("Ciao, come stai?");
|
|
56
|
+
*
|
|
57
|
+
* // Streaming usage — feed text chunks as they arrive
|
|
58
|
+
* synth.feedChunk("Ciao, ");
|
|
59
|
+
* synth.feedChunk("come stai? ");
|
|
60
|
+
* synth.feedChunk("Tutto bene.");
|
|
61
|
+
* synth.flush(); // speak any remaining text
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare class BrowserSpeechSynthesizer {
|
|
65
|
+
private options;
|
|
66
|
+
private callbacks;
|
|
67
|
+
private buffer;
|
|
68
|
+
private _isSpeaking;
|
|
69
|
+
/** Number of utterances currently in the browser's native speech queue. */
|
|
70
|
+
private _pendingCount;
|
|
71
|
+
private resolvedVoice;
|
|
72
|
+
private voiceResolved;
|
|
73
|
+
private warmedUp;
|
|
74
|
+
/** Chrome keepalive: periodic pause/resume to prevent auto-pause after ~15s. */
|
|
75
|
+
private keepAliveTimer;
|
|
76
|
+
constructor(options?: BrowserSpeechSynthesizerOptions, callbacks?: BrowserSpeechSynthesizerCallbacks);
|
|
77
|
+
/** Whether speech is currently being synthesized. */
|
|
78
|
+
get isSpeaking(): boolean;
|
|
79
|
+
/** Returns `true` if the browser supports the Web Speech Synthesis API. */
|
|
80
|
+
static isSupported(): boolean;
|
|
81
|
+
/** Set event callbacks. */
|
|
82
|
+
setCallbacks(callbacks: BrowserSpeechSynthesizerCallbacks): void;
|
|
83
|
+
/** Update language at runtime. Resets the resolved voice cache. */
|
|
84
|
+
setLang(lang: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* Get available voices. Due to browser async loading, you may need to call this
|
|
87
|
+
* after the `voiceschanged` event fires, or retry after a short delay.
|
|
88
|
+
*/
|
|
89
|
+
static getVoices(): SpeechSynthesisVoice[];
|
|
90
|
+
/**
|
|
91
|
+
* Speak a complete text. Returns a Promise that resolves when the utterance finishes.
|
|
92
|
+
*/
|
|
93
|
+
speak(text: string): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Feed a streaming text chunk. Text is accumulated until a sentence boundary is found,
|
|
96
|
+
* then the complete sentence is queued for speaking.
|
|
97
|
+
*/
|
|
98
|
+
feedChunk(chunk: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Flush any remaining buffered text (e.g. at end of stream) and queue it for speaking.
|
|
101
|
+
*/
|
|
102
|
+
flush(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Flush and wait for all queued sentences to finish speaking.
|
|
105
|
+
* Returns a Promise that resolves when the queue is empty and speech is done.
|
|
106
|
+
*/
|
|
107
|
+
flushAndWait(): Promise<void>;
|
|
108
|
+
/** Cancel all speech and clear the queue. */
|
|
109
|
+
cancel(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Pre-warm Chrome's TTS engine by speaking a zero-volume silent utterance.
|
|
112
|
+
* This primes the internal synthesis pipeline (voice loading, audio context
|
|
113
|
+
* creation, etc.) so that the first real utterance starts faster.
|
|
114
|
+
*/
|
|
115
|
+
private preWarm;
|
|
116
|
+
/** Pause speech. */
|
|
117
|
+
pause(): void;
|
|
118
|
+
/** Resume speech. */
|
|
119
|
+
resume(): void;
|
|
120
|
+
private extractAndQueueSentences;
|
|
121
|
+
/**
|
|
122
|
+
* Submit a sentence directly to the browser's native speech queue.
|
|
123
|
+
* The browser pre-processes queued utterances so the next one starts
|
|
124
|
+
* immediately when the current one finishes — no gap between sentences.
|
|
125
|
+
*/
|
|
126
|
+
private enqueue;
|
|
127
|
+
private createUtterance;
|
|
128
|
+
/**
|
|
129
|
+
* Normalize a BCP-47 lang code: lowercase and replace underscores with hyphens.
|
|
130
|
+
*/
|
|
131
|
+
private static normalizeLang;
|
|
132
|
+
private resolveVoice;
|
|
133
|
+
/**
|
|
134
|
+
* Chrome workaround: keeps speech synthesis alive.
|
|
135
|
+
* Chrome auto-pauses `speechSynthesis` after ~15 seconds of continuous speech.
|
|
136
|
+
* Calling `pause()` then `resume()` periodically resets this internal timer.
|
|
137
|
+
*/
|
|
138
|
+
private startKeepAlive;
|
|
139
|
+
/** Stop the Chrome keepalive timer. */
|
|
140
|
+
private stopKeepAlive;
|
|
141
|
+
/**
|
|
142
|
+
* Strip common Markdown formatting so TTS reads only the plain text.
|
|
143
|
+
* Handles: bold, italic, strikethrough, inline code, code blocks,
|
|
144
|
+
* headers, links, images, blockquotes, list markers, horizontal rules.
|
|
145
|
+
*/
|
|
146
|
+
static stripMarkdown(text: string): string;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=BrowserSpeechSynthesizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserSpeechSynthesizer.d.ts","sourceRoot":"","sources":["../../src/utils/BrowserSpeechSynthesizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,kDAAkD;IAClD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,oDAAoD;IACpD,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC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