Skip to main content
When an agent controls a local computer, the CLI can turn short text into speech and play it through the default audio output. This is useful for audible alerts, hands-free status updates, or quick voice previews.
For local agent feedback, cast "message" is the simplest realtime-style path because playback starts as part of the CLI command. For API-level chunked streaming, use the Typecast streaming endpoint through an SDK.

Speak immediately

By default, the CLI plays the generated audio instead of saving it.

Use saved audio for reliability

For longer messages or repeated playback, save the audio first:
Then play it with your system audio tool:

Agent prompt pattern

Good audio messages

Choosing the audio path

Keep PC audio messages short. For detailed status, speak one sentence and write the full details in the chat or log.