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

cast "The export is complete."
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:
cast "The build failed. Check the test report before pushing." --out agent-alert.wav
Then play it with your system audio tool:
afplay agent-alert.wav

Agent prompt pattern

When a long-running task finishes, speak a short status update through PC audio.
Use the CLI.
Keep the spoken sentence under 12 words.
If playback fails, save the audio file and report its path.

Good audio messages

SituationSuggested text
Task completeThe task is complete.
Human input neededI need your input to continue.
Test failureTests failed. Please check the report.
Deployment readyThe preview is ready.

Choosing the audio path

NeedBest path
Fast audible statuscast "The preview is ready."
Repeat the same alertSave with --out agent-alert.wav, then replay with afplay
Agent-specific voiceSet cast config set voice-id tc_xxx
Project-specific voiceClone once with cast voices clone, then use --voice-id uc_xxx
Detailed reportSpeak one sentence, write details in chat or a log
Keep PC audio messages short. For detailed status, speak one sentence and write the full details in the chat or log.