audiocalls.wav could not be decoded - html

I am trying to play a wav file using html 5 audio player but it shows file could not be decoded.
Anyone please let me know what is wrong with this wav file so it is unable to play in html5 audio player.
I am working on a call recording system that records these kind of wav files and now I am integrating html 5 audio player to play in system.
If file does not support in html 5 audio player then please let me know any alternative option to play file in system.
Below is url to download wav file
http://sipprintdemo.com/callrecording3/download.php?file=../../../sipprintcalls/2016/05/17/15/20160517_152047_XRT.wav

It is difficult to say why it is not decoding without seeing your code. What browser are you using in order to test? .wav files do work with HTML audio but not all browsers support that file type. I know that IE for example does not support it.
Another option would be to convert the files to .mp3 format that is support by all browsers. A quick google search should yield a converter service for you.

Related

Cannot get HTML5 audio to work with my MP3

I am recording MP3 using phonegap in an app. Storing the MP3 in a database Base64 Encoded. I can retrieve those records, save them to an MP3 file on phone or computer and play them. Media in phonegap works as well as the local players. What does not work is either
1) playing them directly as base64 on a windows computer in a browser or
2) saving to an MP3 file on the server and playing through the browser.
I gave up and switched to a download button, which works, by storing the MP3 file locally and playing it using the local audio player.
the HTML format I used is
for the file the source was the file path relative to the web root
For the base64 it was "data:audio/mpeg;base64,..."
In all cases it did not work, and the controls were either grayed out or had an error on them.
The solution that works for browser, android, and ios is to use m4a format. In cordova phonegap I used cordova-media-with-compression

is there a way to record audio in mp4 using ruby on rails / web / html5

I would like to find a way to record audio (not video) in mp4 format on the web.
Reason for this is ios/android are both generating in this format, and I want to be able to be consistent with the audio format. (android mediarecorder for example does not do mp3, thats the reason why this is the preferred format)
Is there a recorder that records mp4 audio for web/html5/rails?
UPDATE:
I found out recorderjs
https://github.com/mattdiamond/Recorderjs
Im guessing if I could change encodeWAV to encodeMPEG4 in here:
https://webaudiodemos.appspot.com/AudioRecorder/js/recorderjs/recorderWorker.js
This is the target audio outcome Im trying to achieve:
Type: Audio
Codec: MPEG AAC Audio (mp4a)
There is an example which uses Web Audio API. I think your front-end(HTML and Javascript) should handle audio recording which will generate mp4 file then you can save it in your rails app via Carrierwave or something else.
Try to use ffmpeg,
www.ffmpeg.org
streamio-ffmpeg

How to play .ts files (video/MP2T media type) in Browser?

I have one .m3u file that points to several .ts files (all in akamai).
Because we give to akamai a live stream, they convert it to these .ts files each of 10s. I see that the m3u files are easy to understand, but I can't find a browser based (flash, html5 or native plugin) player for these files.
If I give to vlc the link of the m3u file, vlc plays all the .ts files one after another as if it where only one big file. I want to use flash or something similar to be able to play in browser, the same way vlc can play those .m3u files.
Is this possible ?
You are basically talking about Apple's HLS format.
You can use an html5 object in your web page. You can use http://osmfhls.kutu.ru/ flash plugin. You can use jwplayer. There are more choices (e.g. flowplayer).

Play Flac files on website

Is there a way to play Flac files on a website, preferably using HTML5 and/or jQuery?
I don't know any in-browser Flac player. But, if you are after a loseless file format, you can consider mp3HD, which is also loseless, like Flac, but is backwards compatible with mp3, which means that any mp3 player can play it.

Google Chrome - HTML5 audio and WAV files

I am using HTML5 audio tag to link to a WAV file, but it suddenly seems to be failing. Chrome does not 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's audio tag support WAV? For e.g., try playing this: http://www.nch.com.au/acm/11kulaw.wav
I am on Chrome version 15.0.874
I don't get the error in Chrome, but the file does not play. The control is visible, but is not working.
There is a bug report in Chromium project that seems to talk about the behavior:
http://code.google.com/p/chromium/issues/detail?id=83323
The gist of it is that .wav can mean a bunch of things and have various encodings. The comments recommend using a plugin to handle this or downloading the file.
For the purposes of serving it on the web, I'd recommend compressing it to an MP3 and an OGG format (if you want to be nice to FOSS people) and including multiple source tags.
I had this problem with an mp3 audio file that did not play just in Google Chrome (this problem could be happening with other audio format files too, like 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 audio file does not play, the problem is in the settings that generated the audio. Use another program, with other settings.