fix: kokorojs tts
This commit is contained in:
1 parent
66ffd77f2c
commit
4ad7a9bb9c
1 file changed
+2
-3
@@ -279,7 +279,7 @@
|
||||
}
|
||||
|
||||
for (const [idx, sentence] of messageContentParts.entries()) {
|
||||
const blob = await $TTSWorker
|
||||
const url = await $TTSWorker
|
||||
.generate({
|
||||
text: sentence,
|
||||
voice: $settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice
|
||||
@@ -292,8 +292,7 @@
|
||||
loadingSpeech = false;
|
||||
});
|
||||
|
||||
if (blob) {
|
||||
const url = URL.createObjectURL(blob);
|
||||
if (url) {
|
||||
$audioQueue.enqueue(url);
|
||||
loadingSpeech = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user