I'm interested in using the Web Audio API. Unfortunately my audio files are are all in an esoteric format that Chrome can't decode. (They're .wavs, but sampled at 96 kHz with 32-bit float encoding.)
Is there any way for me to query my browser (Chrome) to find out exactly which audio formats and encodings it supports?
UPDATE
I've found a list of file formats supported by Chrome here: https://sites.google.com/a/chromium.org/dev/audio-video
There are basically four options to choose from: WAV, MP3, Ogg and AAC. Not all browsers support all of them, but we'll come to that.
Google Chrome Chrome browser version 4 to 7 does not support Wav Audio Format. Chrome 8 to 67 supports Wav Audio Formatproperty.
WAV files have a . wav extension and are supported by Google Chrome, Firefox, Opera, and Safari browsers.
You could test this sort of thing by trying to load a variety of sample files using a try...catch
construct, and seeing which filetypes load and which don't. See this tutorial for loading files with the Web Audio API in Chrome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With