声音转base64https://zhuanlan.zhihu.com/p/139023181
使用Base-64实现纯文本网页音频传输|网页前端|音频开发|
并不是什么高新技术,仅作学习整理。
前言——windows与macos系统GM Synth的不同点
起因源于本人太闲,开发了一个网页端练耳app,还能借此重新复习下以前学过的JavaScript。
在HTML5,w3c就提供了非常厉害的Web Audio API,可以独立实现32浮点音频计算、Summing、内置iir滤波器、混响器、音频动态处理算法、OSC等,与此同时它还有个兄弟——Web MIDI API, 用来实现web中与电脑本地midi设备的互通。(bandlab开发的网页DAW就是用HTML5的Web Audio API和Web MIDI API写的,此外也有很多用其开发的网页DAW)
在实现上面app时,就有了这种需求——通过Web MIDI API连接系统自带的GM Synth,点击音高便可以发出相应MIDI信息,来发出音高。
这个在Windows系统上可以实现,因为windows自带的GM Synth是作为一个MIDI port,使用Web MIDI API连接到这个port,发送相应音符信息就可以发出音高,还可以发出音色库信息来改变音色,使用gm中128个音色。
但是MacOS系统不同,MacOS系统自带的GM Synth是作为一个AU插件存在,插件名字是DLSMusicDevice,任何软件想要使用自带的GM Synth时都可以调用它,好处是可以在DAW中直接加载。但这也意味着,与Web无缘了,因为Web Audio API并不能加载AU/VST插件。
如果要实现我的需求,是不是就只能生成好每个音色的音频文件,上传到服务器呢?
这样做无非是效率极低的,首先,音频文件要占用大量带宽,对于服务器来说,一丁点带宽都是宝贵的,除非进行良好的压缩;也要占用文件系统的空间,除非进行良好的压缩;对于终端,每点击一次,浏览器就要向服务器申请一次音频下载,效率极低。于是我就在寻找mac下能实现类似windows gm synth的方法,最后没找到,还是得从服务器端上传音频文件解决问题。
HTML5中,Audio标签有个非常牛逼的功能,Audio标签的src属性在指定播放音频的来源时,不仅可以指向服务器任何一个音频文件,也可以直接放入一串Base64代码,Audio标签会实时解析Base64代码,生成一个文件,并且按照设置的格式播放。
我们可以只使用js+HTML,在一个文件中实现纯文本储存、传输多个音频文件。
我只要给每个音色建立一个js文件,里面放入每个音色中部分音高音频的Base64文本,放入的音高不用把全音域放进去,只需要每隔2~4度放入一个音高,每两个音高之间的音使用Web Audio API来实现升降调,产生之间的其它音,节省空间。
<audio controls="controls" autobuffer="autobuffer" autoplay="autoplay">
<source src="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjQwLjEwMQAAAAAAAAAAAAAA//sowAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAlAABPUAANDRERERgYGCAgJycnLi4uNjY9PT1ERERKSkpSUllZWWBgYGdnbm5udXV1e3uDg4OKioqQkJCYmJ6enqWlpayss7Ozubm5wMDHx8fNzc3T09Pa2uHh4efn5+7u9PT0/f39//8AAAAATGF2YzU2LjYwAAAAAAAAAAAAAAAAJAAAAAAAAAAAT1ChodvbAAAA//u4xAAABtgDY/QQAATfQu7/NbDYvZh3yolU0DN9hqOA+8H04OHIPg/qlHRAcBDiN8Tjg//+UdnPLv/l3//hj///l/D//5TU4Mf4fwGsnsAw4pdUATwAgWj0GAbGW3Z+TEQCNPCgiSk0I0fzIhjMl2ZpXmAeAs8VHRR/UEZamoxIQhA8XSNpykBkDXCAQAGmRhI4Wict6YamUEMvEBsFQCrmDTGVTs/LKSVzBlacPA4VGgKGFl0szDiUWDZHEBQZBwpWs2+xict1JQCQJTMKApDBGDO5gAG4t3nuKYSMEe8SA0PTcOy6KWKeplvS5nagFZTAnulv/rHnd/j3/xuXdVqvbV63bpM8SwANOh4ZCXEWBdmSKGrxcx3o+p04sgJAOn5/9/X465zv9w3zXKK3Sar4Q6wKJU8ZlNJLl9Izp0FAjBcAPtJ4Z5////+bfJ+S/v//01m33mfeU9epdpbUssU9S1j361Dawz+mmZTelWVLGo9Ox3HV3/7Hf/////7sWtQvBWVFIgA6YMgNcBEu6/EvpolSUd2m+1qeHFFA6C0YoGczQc2L6ZmpbGdV1HSKgIEBc8M0fOppmSajVO/WjHNo3sr6kkh8h8oHO2AY8MGMhWouEcJ36ers6jyd9ev+o4TxTRYkWZaA2CJP//9dBS1ufJAxNGeitr6qBu77LY1JlY+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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq" />
</audio>
上面这串代码,src属性中就是一个铃声.mp3转成base64后的结果,上面这串代码直接打开就可以播放,不需要联网,因为已经相当于把mp3“嵌入”到代码里了。
这种开发方式,实际上肯定没有直接放音频来的方便快捷,但可以实现“纯代码”音频。
从音频制作到生成Base64
- 生成一个wav音频
我从logic中导出了一个斯坦威大钢琴C4音的16bit wav
2. 进行压缩
由于是web端,带宽及其珍贵,我们得尽量减少带宽使用
我使用Adobe Audition进行处理:
导入音频,变换采样率,16kHz以上都是不必要的,所以直接把采样率改成32kHz,位深度不需要改变,16bit就可以,8bit的量化噪音太大。
并且导出为压缩率比较高的mp3
这时的文件就非常小了,只有20多KB。
3. 转换成base64
我使用的是js,所以我用js代码来实现转换
<input type="file" id="fileInput">
<script>
var fileInput = document.querySelector('#fileInput');
fileInpt.onchange = function () {
var file = this.files[0];
var reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = function () {
console.log(reader.result);
};
};
</script>
//此代码可以实现input按钮加载本地文件,并在console直接输出base64编码
//来源于http://www.imooc.com/wenda/detail/458679
记住,千万不要在vs code这类软件里打开mp3,用其中的base64扩展转换成base64。 因为mp3文件本身并不是文本信息,vs code这类字编辑软件会用unicode等字体编码来打开mp3文件,最后进行的转换是unicode乱码转成base64的结果,并不是mp3转成base64的结果。所以请一定要注意。
输出结果是这样的:
红框告知数据类型,这样audio解码base64后就知道音频格式,就可以正确播放;绿框告知这是base64编码,audio读到这里也会知道使用的是base64而不是其他;绿框后面逗号之后的部分就是完整的base64编码了。如果你的编码没有红框绿框的部分,请自己加上。mp3使用 audio/mpeg,wav使用audio/wav,还可以支持非常非常多格式,其他格式可以上网查找(这里有 https://www.jianshu.com/p/6896ade6299b )。红框绿框之间用英文分号分割,绿框与base64数据之间用逗号分隔。
这样就可以直接复制到audio标签的src属性中了。
我们可以根据不同乐器构建多个js文件,其中存放该乐器一部分音高的base64等信息。设计一个播放器.js,根据当前加载的乐器.js实现音高播放,播放器.js中使用web audio api来实现音高变调,这样填充相邻音高之间的音符,节省乐器.js的空间(实际的乐器.js只需要几百KB);然后在网页中设计、插入可以更换乐器的.js,更换乐器.js实现实时将所更换的乐器.js名称传入播放器.js中,来达到切换音色。这是最终的目的,如果需求没有这样复杂,直接在服务器用多个mp3分好文件夹和名字就可以了,mp3本身够小了,base64会大个10kb左右。
已经有大佬这么做了,这是一个github上叫WebAudioFont的项目,作者就是使用这种方法逻辑,来实现网页乐器。网页所占的空间出乎意料的小(大多不超过1m,取决于乐器音域大不大),可以演奏不同乐器的音。
这个项目把所有gm音色128个乐器都弄出来了,纯js+HTML,没有任何音频文件,都是base64加乐器.js的模式,有需要的可以直接套用。
这样的逻辑让js显得更像一个“乐器”,而不是简单的音频调用。
网页示例,点击不同琴键可以发出不同的音高上图是播放器.js部分内容,作者还实现了ADSR调整功能、混响和滤波器等功能,并且在html界面中可以实现根据用户的调整实时传入乐器.js参数,更改乐器:
上图是乐器.js,file 属性储存的是各个音频的base64,还有相应的音高信息、采样率信息等等。储存了钢片琴8个音高,实现播放25个音(2个八度),只有小小的147KB。
(作者使用开源的sf2音色库提取出的音频,和web audio api写的合成器来制作所有乐器,见项目readme)
不错的开发方式
对于网页音乐应用开发来说,这种方式貌似很实用,可以自己搭建一个乐器.js库,供自己随时调用。一部分可以节约一些带宽(貌似伪命题,追求音质的话大压缩肯定不能进行,那样文件照样大,base64也会更大些;唯一可以节省的是浏览器的文件询问次数),一部分也可以让用户无法直接获取到音频,相当于上了一层加密,用户就不能直接拦截xxx.wav yyy.mp3的地址进行下载了。但是对于前端经验丰富的程序员什么的来说还是没用的(((
这种方式恰好的解决了我的需求,在此做学习整理,不是什么高深也不是罕见的东西,希望能学习到更多网页音频开发方式。
posted on 2021-11-14 20:07 DreamOnTheGo 阅读(19583) 评论(0) 编辑 收藏 举报