route_and_play
Switch macOS audio output to a specified device, then play an audio file or speak text in one atomic operation, with optional volume and restore-device settings.
Instructions
Switch output to a specific device, then play an audio file or speak text. Atomic operation for targeted audio delivery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to play a file or speak text | |
| volume | No | Volume level | |
| content | Yes | File path (for play) or text (for speak) | |
| device_name | Yes | Output device to route to | |
| restore_device | No | Device to switch back to after playback |