Refactored everything into modules.
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user