如何在HTML5画布上渲染音频波形? [英] How to render audio waveform on HTML5 canvas?

查看:451
本文介绍了如何在HTML5画布上渲染音频波形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将音频文件(ogg和/或mp3)的波形渲染到canvas元素。

I want to render a waveform for an audio file (ogg and/or mp3) to a canvas element.

我想知道是否有任何库可以这个简单吗?我正在寻找这些方面的结果: http://plucked.de/

I was wondering if there were any libraries that would make this simple? I am looking for a result along these lines: http://plucked.de/

推荐答案

https://github.com/katspaugh/wavesurfer.js 可能就是你要找的东西。

https://github.com/katspaugh/wavesurfer.js may be what you're looking for.

这篇关于如何在HTML5画布上渲染音频波形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆