For the longest time I have been converting my 8000 Hz audio to 24000 Hz because the HTML5 web audio API used to have a minimum sample rate of 22050 Hz. At some point over the years it seems that has changed to 8000 - 96000, which means I shouldn't have to convert my audio anymore. Unfortunately I can't find anything online stating when this changed or how to figure out what the browser supports. If this was a recent change I can't just assume the client supports 8K audio. Is there a way to figure out if the browser supports 8K before it attempts to load the audio? I would like to display some type of message to the user about their browser not supporting the audio in question if in fact 8K isn't supported. Also, does anyone know when this change was rolled out?
How to determine the minimum supported sample rate of the HTML5 web audio API
46 Views Asked by Brad Bruggemann At
1
There are 1 best solutions below
Related Questions in AUDIO
- how to play a sounds in c# forms?
- Winsound not working isn't working at all
- Ringing noise overpowering voice / Recording audio with Max 9814 microphone on Raspberry pi pico using ADC Pin / Circuitpython
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
- gluon attach audio doesn't play any sound on android
- Implementing trim and fade filters with ffmpeg - MP3
- Unable to set device connection state as INPUT device type is none
- Is there a way to differentiate music and talking from a video?
- How to concatenate audio tracks and make them start a certain moment using Python?
- Combine two audio in different languages to one natural sounding
- STM32 - Serial Audio Interface (SAI) - dual data line transmit possible?
- playing mp3 downloaded via curllib gets cut short
- How to stream PCM audio to a speakers both on mac and linux in Node.js?
- Scikit-Maad -From the function rois.find_rois_cwt, I want to get a csv of the outputs so I can do my own analysis on it
- Using MediaPlayer slows down SoundPool sound effect
Related Questions in HTML5-AUDIO
- How to Dynamically Simulate Microphone Input Using Puppeteer and Virtual Audio Devices
- Safari not playing audio files stored on google cloud
- HTML5 / WebSocket / WebRTC redirection over RDP
- Clicking the current audio button doesn't pause the previous audio that was already being played
- Is there a way to convert a blob with MIME type 'audio/wav' into a WAV file?
- iOS/Safari: Playing audio effects in web app are extremly delayed
- The HTML5 audio tag keeps pausing without being paused, and will only continue if muted. Some won't even play anymore
- Does howler have a way of notifying given an interval?
- Audio tag on Iphone (Safari)
- Is this a correct way of using the Web Audio API? (slight sound artifacts)
- Playing Blobs in html5 audio causing interruptions
- preserve phase when using WebAudio’s AnalyserNode
- set the currentTime in HTML5 audio not working properly
- How do I have audio file not display URL or Page Title on Android notification bar?
- Play and stop audio on :hover issue
Related Questions in WEB-AUDIO-API
- AudioContext not heard although it is running
- How to set wetness and dryness of a convolver filter in the Web Audio API?
- Why is this AudioWorklet to MP3 code producing different results on Chromium and Firefox?
- iOS Audio Ducking Issue in Daily.co SDK
- Is there a way to convert a blob with MIME type 'audio/wav' into a WAV file?
- Do browsers limit the number of decodeAudioData calls per session?
- Is it possible to correctly convert Float32Array to Int32Array without testing each float?
- How to receive user voice through microphone in the Chrome extension panel?
- web audio api, AudioContext dont play on channel 3. Channels 4 and above do not work correctly
- Why might the outputs passed to AudioWorkletProcessor's process() method contain an empty array?
- Is this a correct way of using the Web Audio API? (slight sound artifacts)
- Playing Blobs in html5 audio causing interruptions
- preserve phase when using WebAudio’s AnalyserNode
- .init is not a function using opus-recorder
- Streaming audio from a PyAudio stream to be played on a webpage in Javascript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can readily assess this, during testing in the lab or via field measurements of production users.
Just provide multiple
<source .../>tags for your<audio>. The browser will try them in sequence, until it finds a source it is able to play. The webserver log will tell you which were tried and which were ignored. Be sure to have nginx log the client'sUser-Agent:header, so you can verify that it predicts observed download behavior.<audio>attributes likepreload,muted, andautoplaycan be used to adjust how the browser responds.You can begin with a brief test clip that lasts less than one second, and follow that with the intended audio of longer duration. If you want to get fancy you can even listen for audio events.
That change to the W3C Web Audio spec certainly happened some years ago.
A 2012 draft says this about
sampleRate:The 2015 draft expanded the range:
A subsequent 2018 draft revised that to the number you're using:
This language is preserved in the final 2021 Recommendation.