How do I automatically split an audio file where a tone occurs?
This is actually possible using Audacity's Beat Finder analysis plug-in when combined with a bandpass filter.
- Duplicate your mono audio track.
- Find the tone's exact frequency.
- Select the tone you want Audacity to detect and choose Analyze → Plot Spectrum.
- Set the size to 16384.
- Move the mouse pointer over the highest peak.
- Look for the "peak" frequency.
- Use a bandpass filter to remove everything but the tone.
- Select the entire tone detection track and choose Effects → Nyquist Prompt.
- Type
(reson s 1000 1 1)
into the box. - Replace
1000
with the frequency you got from Step 2. - Click OK.
- Optionally, apply the Amplify effect, setting New Peak Amplitude to zero.
- Use Analyze → Beat Finder. Start with Threshold Percentage equal to 100; reduce that percentage until Audacity successfully detects the tone.
- Use File → Export Multiple to actually save the marked segments as separate files.