Checkpoint Eibenreith ink architecture
This commit is contained in:
@@ -813,7 +813,7 @@ class TTSFactoryModule extends BaseModule {
|
||||
if (typeof handler.preloadSpeech === 'function') {
|
||||
console.log(`TTS Factory: Generating and caching speech for hash ${hash}`);
|
||||
const preloadData = await handler.preloadSpeech(text, options);
|
||||
if (preloadData && preloadData.success) {
|
||||
if (preloadData && preloadData.success && preloadData.audioData) {
|
||||
// Cache the speech
|
||||
await this.cacheSpeech(hash, preloadData.audioData, preloadData.duration);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user