fix: TTS modal audio playback and download functionality
- Add missing blobUrl to speakText return value - TTS modal now correctly receives blobUrl for audio playback and download - Fixes missing MP3 download and autoplay functionality
This commit is contained in:
parent
f42ea86c7b
commit
69fd142004
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export async function speakText(text, voice = "alloy", rate = 0.9) {
|
|||
// Store the last TTS result
|
||||
setLastTTS(text, { audio, blob: audioBlob });
|
||||
|
||||
return { audio, blob: audioBlob };
|
||||
return { audio, blob: audioBlob, blobUrl: audioUrl };
|
||||
} catch (error) {
|
||||
console.error("Error in TTS:", error);
|
||||
throw error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue