analyze-audio-waveform
Extract waveform amplitude data from WAV files and detect peaks or transients for audio-driven animations.
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.
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. |