we went to mocks - now going to unit-setup.ts - centralized

This commit is contained in:
2025-11-26 10:28:58 -08:00
parent 4638e39cc4
commit e987ec8aea
45 changed files with 1168 additions and 1323 deletions

View File

@@ -19,7 +19,8 @@ export const VoiceLabPage: React.FC = () => {
}
setIsGeneratingSpeech(true);
try {
const base64Audio = await generateSpeechFromText(textToSpeak);
const response = await generateSpeechFromText(textToSpeak);
const base64Audio = await response.json(); // Extract the base64 audio string from the response
if (base64Audio) {
const audioSrc = `data:audio/mpeg;base64,${base64Audio}`;
const audio = new Audio(audioSrc);