I have .wav base64 file but its not working in IE since IE supports only mp3 files. So how can I convert .wav base64 to .mp3 base64 use pure JavaScript only, so that I can use it in IE
Asked
Active
Viewed 553 times
2
-
Or suggest me how can I use .wav base64 audio file in IE? – Rohit Dec 01 '15 at 13:50
-
This really isn't a programming related question... – NMunro Dec 01 '15 at 13:51
-
I want to use audio tag of HTML5 in IE but my source file is in base64 wav format. How can I use this file because IE supports only mp3 file – Rohit Dec 01 '15 at 13:53
-
I think it's possible to read .wav in IE (if recent versions I guess, like 10/11), see here http://stackoverflow.com/questions/17762763/play-wav-sound-file-encoded-in-base64-with-javascript and here https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement – Stranded Kid Dec 01 '15 at 13:54
-
No IE is not supporting wav format file.. – Rohit Dec 01 '15 at 13:56
-
Possible duplicate of [How to convert base64 wav to base64 mp3 in JavaScript](http://stackoverflow.com/questions/31532265/how-to-convert-base64-wav-to-base64-mp3-in-javascript) – Mosh Feu Dec 01 '15 at 14:46
-
@MoshFeu this question is about Cordova, which uses some device native methods, won't work on desktop – Kaiido Dec 02 '15 at 06:10
-
@Rohit, you will need an external library to do so, found [this one](https://github.com/ffdead/wav.js/blob/master/README.md) but never tried it. Also, a better approach would be to convert it first to mp3 or some supported format, not in front-end – Kaiido Dec 02 '15 at 06:13
-
@Kaiido you are right. My mistake.. – Mosh Feu Dec 02 '15 at 07:31