Here are SSML samples.
I can pause .
I can speak in cardinals. Your number is 10.
Or I can speak in ordinals. You are 10 in line.
Or I can even speak in digits. The digits for ten are 10.
I can also substitute phrases, like the W3C.
Finally, I can speak a paragraph with two sentences.
This is sentence one.This is sentence two.
`,
voice: "polly.Joey",
listen: {
onStarted: () => console.log("TTS started"),
onFailed: () => console.log("TTS failed"),
onUpdated: (tts) => console.log("TTS state:", tts.state),
onEnded: () => {
console.log("TTS ended");
call.hangup();
}
}
}).onStarted();
}
});
```