这个问题在这里已经有了答案:
HTML5 audio what audio formats are supported
(1 个回答)
video and audio formats supported by all browsers
(2 个回答)
What is the current file support for <audio>?
(2 个回答)
How to play GSM files in HTML5
(1 个回答)
GSM encoded WAV files in browser
(1 个回答)
5年前关闭。
我正在尝试播放带有 (.gsm) 扩展名的音频文件,我尝试使用 <audio>
和 object
标签,以及使用js。
<script>
var myAudio = new Audio(); // create the audio object
myAudio.src = "test.gsm"; // assign the audio file to its src
myAudio.play(); // play the music
</script>
但没有结果是好的。那我怎么玩
.gsm
在网页上随时随地扩展?
最佳答案
如果没有 GSM 编解码器,它将永远无法工作。您需要获取一个包含 GSM 6.10 http://www.free-codecs.com/ace_mega_codecs_pack_download.htm 的巨型编解码器包
Html 5 音频将仅支持:
MP3 音频/mpeg
ogg 音频/ogg
Wav 音频/wav
关于javascript - GSM 扩展无法在 Web 浏览器上播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43890385/