Reputation: 2708
I'd like to test whether some FFT analysis code I am writing in Python is exactly the same implementation as the Javascript MediaSource FFT node. (See example here Web Audio API Analyser Node Not Working With Microphone Input).
I have read the specs but I'd prefer to do a test. I want to push the same exact snippet of audio through both, and then get the output and do a diff.
Is there anyway to hook up Javascript to a local file instead of a microphone? likely WAV format 48kHz
Upvotes: 1
Views: 184
Reputation: 163262
Yes.
src
property to the blob URL for your MediaSource.Upvotes: 1