Spaces:
Sleeping
Sleeping
Marcos
commited on
Commit
·
3288a09
1
Parent(s):
731ed80
Switch to Spanish with es-AR-ElenaNeural Azure voice
Browse files- backend/index.js +2 -2
backend/index.js
CHANGED
@@ -201,7 +201,7 @@ app.post("/voice-chat", async (req, res) => {
|
|
201 |
}
|
202 |
|
203 |
if (!geminiTextForTTS || geminiTextForTTS.trim() === "") {
|
204 |
-
geminiTextForTTS = "
|
205 |
facialExpression = "sad";
|
206 |
animation = "Talking_0";
|
207 |
}
|
@@ -256,7 +256,7 @@ app.post("/voice-chat", async (req, res) => {
|
|
256 |
console.error("Error in /voice-chat endpoint:", error);
|
257 |
// Generic error response
|
258 |
const fallbackMessage = {
|
259 |
-
text: "
|
260 |
audio: "", // Consider having a pre-recorded base64 audio for errors
|
261 |
lipsync: { metadata: { version: 1 }, mouthCues: [{ start: 0, end: 0.5, value: "X" }] },
|
262 |
facialExpression: "sad",
|
|
|
201 |
}
|
202 |
|
203 |
if (!geminiTextForTTS || geminiTextForTTS.trim() === "") {
|
204 |
+
geminiTextForTTS = "No pude procesar el audio, ¿puedes repetirlo por favor?";
|
205 |
facialExpression = "sad";
|
206 |
animation = "Talking_0";
|
207 |
}
|
|
|
256 |
console.error("Error in /voice-chat endpoint:", error);
|
257 |
// Generic error response
|
258 |
const fallbackMessage = {
|
259 |
+
text: "Ups, algo salió mal en el servidor.",
|
260 |
audio: "", // Consider having a pre-recorded base64 audio for errors
|
261 |
lipsync: { metadata: { version: 1 }, mouthCues: [{ start: 0, end: 0.5, value: "X" }] },
|
262 |
facialExpression: "sad",
|