Extracting audio data every t seconds
问题 I am trying to extract amplitude information from a sound loaded from a URL using the Web Audio API instantaneously (not in real time), which will likely require the OfflineAudioContext . I am expecting to obtain something along the lines of an array containing the amplitude of the sound every t seconds for the duration of the sound (with size depending on the duration of the sound, divided by t ). Unfortunately, documentation is sparse at this point, and I'm unsure of how to proceed. How can