Google Chrome - HTML5 Audio and WAV Files

I use HTML5 audio text to link to a WAV file, but it suddenly seems unsuccessful. Chrome doesn't seem to be able to play WAV files (MP3 works fine). I get an error message like:

Error loading: "blob:http%3A%2F%...." 

Does Chrome audio text support WAV? For example, try reproducing this: http://www.nch.com.au/acm/11kulaw.wav

I am in Chrome version 15.0.874

+4
source share
2 answers

I do not get an error in Chrome, but the file does not play. The control is visible but not working.

There is an error report in the Chromium project that seems to indicate a behavior: http://code.google.com/p/chromium/issues/detail?id=83323

The bottom line is that .wav can mean a bunch of things and have different encodings. In the comments, it is recommended to use a plugin to process this or upload a file.

In order to serve it on the Internet, I would recommend compressing it in MP3 and OGG format (if you want to be pleasant for FOSS users) and including several source tags.

+3
source

I had this problem with an mp3 file mp3, which could not be played only in Google Chrome (this problem can also happen with other audio format files such as wav or ogg). I opened my mp3 file in an audio editor (Audacity) and saved it again in the desired format (in this case, * .mp3). It works correctly in Google Chrome.

My conclusion: if the sound file does not play, the problem is the settings that generate the sound. Use a different program with different settings.

+1
source

Source: https://habr.com/ru/post/1385453/


All Articles