Refactored everything into modules.

This commit is contained in:
2025-04-01 23:38:35 +00:00
parent 53f9eb9265
commit 2f7cda4b6d
8 changed files with 107 additions and 105 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
* Uses the kokoro-js library for high-quality TTS
*/
class KokoroHandler {
export class KokoroHandler {
constructor() {
this.enabled = false;
this.speaking = false;
@@ -593,5 +593,5 @@ class KokoroHandler {
}
}
// Don't create a global instance here - the factory will do this
// const ttsHandler = new KokoroHandler();
// Create and export a singleton for the factory to use
export const kokoroHandler = new KokoroHandler();