You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/voice-call.ts
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -104,10 +104,26 @@ export async function callEmergencyContact(elderlyProfileId: string) {
104
104
return;
105
105
}
106
106
107
-
constescapedName=escapeXml(profile.name);
108
-
consttwiml=`<Response>
109
-
<Say>This is an urgent message from Seniora Care. We have been unable to reach ${escapedName} after multiple reminder call attempts. Please check on them as soon as possible. Thank you.</Say>
110
-
</Response>`;
107
+
constemergencyScript=`This is an urgent message from Seniora Care. We have been unable to reach ${profile.name} after multiple reminder call attempts. Please check on them as soon as possible. Thank you.`;
console.warn("ElevenLabs TTS failed for emergency call, using Twilio Say fallback:",ttsError);
122
+
constescapedName=escapeXml(profile.name);
123
+
twiml=`<Response>
124
+
<Say>This is an urgent message from Seniora Care. We have been unable to reach ${escapedName} after multiple reminder call attempts. Please check on them as soon as possible. Thank you.</Say>
0 commit comments