There isn't single one working example on whole internet of how to perform FFT analysis of a sound file/buffer/audiobuffer in browser without need for playback. Web audio API has been changed too much to be able to use this library https://github.com/corbanbrook/dsp.js any more for example. All other clues currently don't lead to solution.
EDIT: I don't need to manipulate any of the data, just to read frequency spectrum in different moments in time of the audio. Input of solution can be any form of data(wav file, arraybuffer, audiobuffer, anything) but not stream. Expected output ideally would be array (moments in time) of arrays(freqency bin amplitudes).
OfflineAudioContext
one of moreSourceBuffer
s can be created, merged, analyzed. If you have the models, you can compare the resultingAudioBuffer
, or orTypedArray
data to the model data. Unless not gathering what the requirement is? – Complimentarywindow
How to programmatically send a unix socket command to a system server autospawned by browser or convert JavaScript to C++ souce code for Chromium?; Chrome Native messaging with PHP. You can implement the shell script in any language that suits meeting the requirement. – ComplimentarywebkitSpeechRecognition
implementation at Chromium records user audio, sends to remote service, returns transcript. See also ts-ebml ebml. – Complimentaryespeak-ng
. – Complimentary