record_audio
Records microphone audio to a 16 kHz mono .wav file and returns levels, SNR and warnings so you can check quality before analysis.
Instructions
Records from the computer's microphone and saves a 16 kHz mono .wav.
Args:
seconds: recording length (max 120 by default). Tell the user before calling.
name: optional file name (without extension); defaults to date and time.
Returns `audio` (path of the .wav), levels (peak/RMS in dBFS, estimated SNR, % clipping),
`confidence` and `warnings`. The `no_microphone_permission` warning means macOS delivered no
audio: the user must enable the microphone for the app in System Settings.
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": {
"seconds": "<seconds>"
},
"name": "record_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| seconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |