Play audio for the human listener
audio_playPlays an audio file or a selected time range through the server's speakers for human listening, returning a process ID in the background; use stop to end server-started playbacks.
Instructions
Plays an audio file, or one window of it given as range, on the speakers of the machine running this server, so the human user can listen; the agent cannot hear it. Playback starts in the background and the call returns at once with the process id; action 'stop' ends the playbacks this server started and nothing else. Use it when the user asks to play, hear, listen to or audition a file or a section, such as 'play the chorus'. Not for measurements (use audio_analyze, audio_loudness or audio_visualize, which return numbers and images). Players started before a server restart can no longer be stopped by this tool. Example: {"action": "play", "path": "song.wav", "range": {"start_sec": 30, "end_sec": 60}}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "audio_play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | For 'play': the audio file to play (wav, flac, mp3, ogg, aiff, ...). | |
| range | No | For 'play': play only this window {start_sec, end_sec} of the file. An end_sec past the end is clipped (reported in warnings). It is cut to a temporary WAV first, which is deleted when playback ends. | |
| action | Yes | 'play' starts the file in the background; 'stop' ends the playbacks this server started (and only those). | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |