Correct or change a voice
audio_vocalEdits the pitch of a vocal or single melodic line by correcting pitch, tuning to a MIDI reference, changing voice character, or editing individual notes, and writes a new file.
Instructions
Edits the pitch of a vocal or other single melodic line and writes a new file. Mode 'autoTune' corrects pitch, snapping notes to a scale (detected or named key); 'tuneToMidi' moves each sung note onto the matching note of a reference .mid; 'voiceChange' shifts pitch and formants or applies a voice preset; 'editNotes' detects the notes and moves, transposes, re-gains or mutes chosen ones in one call (a dry run lists the notes and their indices). The result reports the measured pitch change in cents. To put an edited take back into a project, pass the output to project_edit 'setClipSource'. Do not use it to measure intonation (audio_pitch), for EQ or effects (audio_process) or to transpose a whole mix (audio_edit). Stereo input is processed as its mono downmix. Example: {"path": "take.wav", "mode": "editNotes", "edit_notes": {"edits": [{"note_index": 3, "target_midi": 64}]}}.
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": {
"path": "<path>",
"mode": "<mode>"
},
"name": "audio_vocal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'autoTune' corrects pitch to a scale, 'tuneToMidi' follows a reference melody, 'voiceChange' shifts pitch and formants or applies a voice preset, 'editNotes' moves, shifts or mutes individual detected notes. | |
| path | Yes | Input audio file path: a vocal or other single line (editNotes with polyphonic also takes chords). | |
| range | No | Only process this window ({start_sec, end_sec}, in seconds); the output contains just the window. Omit for the whole file. | |
| 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. | |
| output | No | Output file path. Default: an auto-named new file '<input stem>.<tool>.<ext>' in the output directory. | |
| dry_run | No | Report the resolved output plan and paths without processing or writing. | |
| 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. | |
| auto_tune | No | Options for mode 'autoTune' (all optional). | |
| 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. | |
| edit_notes | No | Options for mode 'editNotes'; edits are required unless dry_run. | |
| sample_rate | No | Output sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000. | |
| tune_to_midi | No | Options for mode 'tuneToMidi'; 'reference' is required. | |
| voice_change | No | Options for mode 'voiceChange'; a preset or a shift is required. |