Generate test signals, clicks or room impulse responses
audio_generateSynthesize tones, chirps, white or pink noise, metronome clicks, silence, synthetic room impulse responses, or audio from exported feature matrices for testing, playback, and convolution reverb.
Instructions
Synthesizes audio from scratch: a sine tone, a frequency sweep (chirp), white or pink noise (seeded), a metronome click track with accented downbeats at a BPM and time signature, silence, a synthetic room impulse response from room size, absorption or wall material, source and listener positions (or imitating the room of a recording with 'like'), or audio rebuilt from a feature matrix exported by audio_features (fromFeatures). The default sample rate is 48000 Hz and the file is mono. Use it for test signals, a click to play along to, or an IR for convolution reverb. Do not use it to render MIDI or a project (use project_render) or to process existing audio (use audio_edit or audio_process). Example: {"kind": "click", "tempo_bpm": 100, "time_signature": {"numerator": 3, "denominator": 4}, "bar_count": 8}.
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": {
"kind": "<kind>"
},
"name": "audio_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Signal: tone (sine), chirp (sweep), noise (white or pink), click (metronome with accented downbeats), silence, roomIr (synthetic room impulse response) or fromFeatures (audio rebuilt from a feature matrix saved by audio_features with aggregate 'export'). | |
| like | No | roomIr: a recording made in the room to imitate; its size and absorption are estimated from the audio. Replaces length_m, width_m, height_m, absorption and material_preset; 'source' and 'listener' still place the positions. | |
| seed | No | noise, roomIr: random seed 0..4294967295 (default 0); the same seed gives the same audio. | |
| color | No | noise: 'white' (default) or 'pink' (1/f). | |
| gamma | No | fromFeatures vqt: bandwidth offset of the transform (default: the library's). | |
| n_fft | No | fromFeatures stft / mel / mfcc: FFT size of the features (stft default: (rows - 1) * 2; mel and mfcc default 2048). | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| format | No | Output format: wav, flac, ogg (Vorbis), opus, mp3, aiff, or m4a (AAC, needs ffmpeg). Default: the explicit output's extension, else the input's format, else wav. | |
| linear | No | chirp: linear sweep when true, logarithmic when false (default). | |
| n_iter | No | fromFeatures: phase-reconstruction iterations; more is smoother and slower (default 32). | |
| n_mels | No | fromFeatures mfcc: number of mel bins the coefficients came from (default 128). | |
| output | No | Output file path. Default: an auto-named new file '<input stem>.<tool>.<ext>' in the output directory. | |
| source | No | roomIr: [x, y, z] of the sound source in meters, inside the room (default: the same relative spot as in the default room). | |
| dry_run | No | Report the resolved output plan and paths without processing or writing. | |
| fmax_hz | No | chirp: end frequency in Hz (default 20000), below Nyquist. | |
| fmin_hz | No | chirp: start frequency in Hz (default 20). fromFeatures mel / mfcc / cqt / vqt: lowest frequency of the features (default 0 for mel and mfcc, 32.7 for cqt and vqt). | |
| quality | No | Lossy encoder setting for ogg/opus/mp3, 0..1 (soundfile compression_level, variable bit rate): 0 = best quality, 1 = smallest file. On 48 kHz stereo music, mp3 0 / 0.3 / 1 is about 192 / 120 / 55 kbit/s (no 320 kbit/s setting), ogg about 330 / 150 / 45 and opus about 510 / 360 / 13. Default 0.3. Excludes bit_depth. | |
| width_m | No | roomIr: room width in meters (default 5). | |
| height_m | No | roomIr: room height in meters (default 3). | |
| length_m | No | roomIr: room length in meters (default 7). | |
| listener | No | roomIr: [x, y, z] of the listener in meters, inside the room (default: the same relative spot as in the default room). | |
| accent_db | No | click: extra level in dB on the first beat of each bar (default 6). | |
| amplitude | No | tone, chirp, noise: peak level 0..1 (default 0.5). | |
| bar_count | No | click: number of bars (default: fill duration_sec). | |
| bit_depth | No | PCM bit depth for wav/flac/aiff: 16, 24 or 'float32' (32-bit float; not flac). Default: the input's depth, else 24. Excludes quality. | |
| overwrite | No | Replace an existing output file. Without it an existing file is an error. | |
| tempo_bpm | No | click: tempo in quarter notes per minute (default 120). | |
| absorption | No | roomIr: average wall absorption coefficient (default 0.2); lower is more reverberant. | |
| hop_length | No | fromFeatures: hop of the features in samples (default: n_fft / 4 for stft, mel and mfcc; 512 for cqt and vqt). | |
| sample_rate | No | Sample rate in Hz of the generated audio and the file (default 48000). For fromFeatures: the rate the features were computed at. | |
| duration_sec | No | Length in seconds, at least 0.001. Required for every kind except click (default: 'bar_count' bars), roomIr (default: the response's natural length; a given value trims or zero-pads it) and fromFeatures (the matrix sets the length). | |
| feature_kind | No | fromFeatures: what the matrix is: 'stft' (magnitude spectrogram), 'mel' (mel power spectrogram), 'mfcc', 'cqt' or 'vqt' (magnitude). | |
| frequency_hz | No | tone: frequency in Hz (default 440), below Nyquist. | |
| features_path | No | fromFeatures: a .npy file with a 2-D float matrix (rows x frames), as audio_features writes with aggregate 'export'. | |
| time_signature | No | click: the meter; one click per beat unit, accented on each downbeat, so 6/8 clicks eighth notes in bars of six (default 4/4). | |
| bins_per_octave | No | fromFeatures cqt / vqt: bins per octave of the features (default 12). | |
| material_preset | No | roomIr: wall material whose frequency-dependent absorption replaces 'absorption': none (default), concrete, wood, curtain, carpet or glass. |