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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| seconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |