Probe the server for edge-tts availability and load the voice list. Falls back to browser voices if the server has none. Call once after the page loads — non-blocking.
Call on incoming agent message. Beeps and/or speaks depending on settings.
Optional_from: string
Call with the user's outgoing message text. If it contains a speech request, the next reply will be spoken once even if the TTS toggle is off.