在浏览器中的音频播放变速控制? [英] variable speed control for audio playback in the browser?

查看:287
本文介绍了在浏览器中的音频播放变速控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来改变音频播放速度的浏览器?什么是最好的去完成这个任务,HTML5音频或Flash或其他什么东西?有没有这将有助于解决这个问题的任何特定库?

Is there a way to change the playback speed of audio in the browser? What is best to accomplish this task, html5 audio, or flash, or something else? Are there any specific libraries that would help with this?

推荐答案

使用网络音频API。

在以下code我回答您的其他问题。

In the following code I answered your other question.

最好在浏览器中循环音频的方式?

修改code在回答上面播放速度的例子如下:

Modify the code in my answer above as follows for a playback speed example.

source.loop = loopOnOff;

添加

source.playbackRate.value = 1; // change number to between 0.10 to 10 (or larger/smaller) to test.

您还可以通过运行在网络音频API的HTML标签的音频和添加效果处理。

You can also run the html audio tag through the web audio api and add effects processing.

这篇关于在浏览器中的音频播放变速控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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