mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 01:33:29 +00:00
11 lines
269 B
TypeScript
11 lines
269 B
TypeScript
import { escapeXml } from "../voice-mapping.js";
|
|
|
|
export function generateNotifyTwiml(message: string, voice: string): string {
|
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
<Response>
|
|
<Say voice="${voice}">${escapeXml(message)}</Say>
|
|
<Hangup/>
|
|
</Response>`;
|
|
}
|
|
|