Fixed option ui binidngs.
This commit is contained in:
@@ -250,11 +250,15 @@
|
||||
window.KokoroLoader.instance.generate(data.text, { voice: data.voice, speed: data.speed })
|
||||
.then(result => {
|
||||
log(`Generation successful for request ${data.id}`, 'success');
|
||||
|
||||
// Convert the result to a proper format for the parent window
|
||||
const audio = new Uint8Array(result.buffer);
|
||||
|
||||
window.parent.postMessage({
|
||||
type: 'kokoro-generated',
|
||||
id: data.id,
|
||||
success: true,
|
||||
result: result
|
||||
result: { buffer: audio.buffer }
|
||||
}, '*');
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user