html5-audioweb-audio-apiaudio-processingaudio-analysis

Analysing audio x seconds into the future using the Web Audio API


I am using an AnalyserNode to analyse audio provided by a MediaElementAudioSourceNode. Is there a way to sample and analyse the audio that will play x seconds into the future?


Solution

  • No. Unless you want to just slap a delay on the audio output, so you will hear the audio at the right time synced with your "future analysis". But the media player controls, for example, will have that x-second lag.