Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -239,10 +239,12 @@ async function playBodoSpeech(btn, text) {
|
|
| 239 |
console.error("TTS generation error:", err);
|
| 240 |
btn.disabled = false;
|
| 241 |
btn.innerHTML = `⚠️ Retry`;
|
| 242 |
-
|
|
|
|
| 243 |
}
|
| 244 |
}
|
| 245 |
|
|
|
|
| 246 |
function attachTtsButton(bubble, text) {
|
| 247 |
if (!bubble || !text.trim()) return;
|
| 248 |
const actionRow = document.createElement('div');
|
|
|
|
| 239 |
console.error("TTS generation error:", err);
|
| 240 |
btn.disabled = false;
|
| 241 |
btn.innerHTML = `⚠️ Retry`;
|
| 242 |
+
// Shows the exact error instead of the generic busy message
|
| 243 |
+
alert(`TTS Failed: ${err.message}`);
|
| 244 |
}
|
| 245 |
}
|
| 246 |
|
| 247 |
+
|
| 248 |
function attachTtsButton(bubble, text) {
|
| 249 |
if (!bubble || !text.trim()) return;
|
| 250 |
const actionRow = document.createElement('div');
|