@ztimson/utils 0.28.9 → 0.28.10
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/index.cjs +32 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +32 -4
- package/dist/index.mjs.map +1 -1
- package/dist/tts.d.ts +5 -1
- package/package.json +1 -1
package/dist/tts.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare class TTS {
|
|
2
2
|
private static readonly QUALITY_PATTERNS;
|
|
3
3
|
private _currentUtterance;
|
|
4
|
+
private _voicesLoaded;
|
|
5
|
+
private _isStopping;
|
|
4
6
|
private _rate;
|
|
5
7
|
get rate(): number;
|
|
6
8
|
set rate(value: number);
|
|
@@ -20,6 +22,8 @@ export declare class TTS {
|
|
|
20
22
|
volume?: number;
|
|
21
23
|
voice?: SpeechSynthesisVoice | null;
|
|
22
24
|
});
|
|
25
|
+
/** Initializes voice loading and sets default voice if needed */
|
|
26
|
+
private initializeVoices;
|
|
23
27
|
/**
|
|
24
28
|
* Selects the best available TTS voice, prioritizing high-quality options
|
|
25
29
|
* @param lang Speaking language
|
|
@@ -48,6 +52,6 @@ export declare class TTS {
|
|
|
48
52
|
*/
|
|
49
53
|
speakStream(): {
|
|
50
54
|
next: (text: string) => void;
|
|
51
|
-
done: () => void
|
|
55
|
+
done: () => Promise<void>;
|
|
52
56
|
};
|
|
53
57
|
}
|