# Give your AI a voice on your Mac

An agent in a chat makes your Mac speak: "the build is done", "the disk is almost full", or a
line in a demo. It uses the `say` command that macOS already has.

**In short:** Switch on `exec` for the agent, then ask: "Say 'the build is done' out loud on my Mac." It calls
`exec_run {"machine": "<mac>", "argv": ["say", "the build is done"]}`.

## When to use this

You are away from the screen and want to hear when something finishes, or you are showing what an
agent can do on a real computer.

## Steps

1. Connect the agent and switch on `exec` for it ([grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)). A
   command can do anything your user account can.
2. Ask it to speak. It calls [`exec_run`](https://docs.cmdop.ai/reference/tools/exec_run.md) with `say` and the text.
3. To speak at the end of a long job, ask it to follow the task with
   [`task_output`](https://docs.cmdop.ai/reference/tools/task_output.md) and speak when it ends
   ([long jobs](https://docs.cmdop.ai/guides/use-cases/long-job.md)).

In our run ChatGPT asked Claude Code on the Mac to do it, which works the same way
([ask another AI](https://docs.cmdop.ai/guides/use-cases/second-opinion.md)), with the same safety rules.

## Check

You hear the sentence, and your page lists the `exec_run` under the agent's name.

## If it fails

- [`denied`](https://docs.cmdop.ai/reference/errors/denied.md): `exec` is off for this agent or on this machine.
- No sound: the Mac's volume is down or muted.
- `say: command not found`: the machine is not a Mac. Linux has no `say` of its own.

## Related

[Let ChatGPT run commands](https://docs.cmdop.ai/guides/use-cases/chatgpt-runs-commands.md) ·
[Pause a machine](https://docs.cmdop.ai/guides/pause-and-presence.md)
