Add ink integration UI and media playback
This commit is contained in:
@@ -182,12 +182,11 @@ class TTSFactoryModule extends BaseModule {
|
||||
this.reportProgress(100, 'TTS Factory initialized');
|
||||
console.log(`TTS Factory: Initialization complete, TTS available: ${this.ttsAvailable}`);
|
||||
|
||||
// To maintain backward compatibility, we always return true
|
||||
// since TTS is now optional and the system should function without it
|
||||
// TTS is optional; the client must continue to function without it.
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.error('TTS Factory: Initialization error:', error);
|
||||
return true; // Still return true for backward compatibility
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -655,7 +654,6 @@ class TTSFactoryModule extends BaseModule {
|
||||
detail: { handler: 'none', available: false }
|
||||
}));
|
||||
|
||||
// Also dispatch tts:engine:change for compatibility with Options UI
|
||||
document.dispatchEvent(new CustomEvent('tts:engine:change', {
|
||||
detail: { engine: 'none', handler: 'none', available: false }
|
||||
}));
|
||||
@@ -719,7 +717,6 @@ class TTSFactoryModule extends BaseModule {
|
||||
});
|
||||
document.dispatchEvent(event);
|
||||
|
||||
// Also dispatch tts:engine:change for compatibility with Options UI
|
||||
document.dispatchEvent(new CustomEvent('tts:engine:change', {
|
||||
detail: { engine: id, handler: id, available: isReady }
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user