analyze-audio-waveform
Extract waveform amplitude data from WAV files and detect peaks/transients. Returns normalized 0-1 samples at even intervals plus peak times for After Effects audio sync.
Instructions
Analyze a WAV audio file to extract waveform amplitude data and detect peaks/transients. First call get-audio-info to retrieve the sourceFilePath, then pass it here. Returns normalized amplitude values (0-1) at evenly spaced time intervals plus an array of peak times where transients are detected.
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": {
"filePath": "<filePath>"
},
"name": "analyze-audio-waveform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the WAV audio file (obtained from get-audio-info sourceFilePath). | |
| numPoints | No | Number of amplitude samples to return (default: 200). Higher = more detail. |