将按顺序播放的声音保存为一个音频文件 [英] Saving sounds played in sequence as one audio file

查看:50
本文介绍了将按顺序播放的声音保存为一个音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说我创建了一个程序,可以一个接一个地播放声音.是否可以在不使用第三方库的情况下以某种方式将声音导出为wav或mp3?

Lets say I created a program that plays one sound after another. Is it possible, without the use of 3rd party libraries, to somehow export the sound as wav or mp3?

我正在尝试构建一个小音序器,但是在我做之前,我需要知道这是否可能.

I am trying to build a little sequencer, but before I do, I need to know if this is possible.

我已经进行了研究,发现了许多第三方库,其中最著名的似乎是recorder.js.为了学习,我更喜欢使用纯API.

I already did my research and found many 3rd party libraries, the most famous seems to be recorder.js. For the sake of learning, I prefer to use the pure api.

推荐答案

使用HTML 5用户媒体api可以做到这些. 此处是Eric Bidelman的介绍.

Well these can be done with HTML 5 user media api's. Here is a intro from Eric Bidelman.

由于此问题与代码中的特定问题无关,因此回答范围太广.因此,我包含指向github上一些项目的链接,这些链接我认为很容易理解,并使用标准API而不是flash.应该为您指明正确的方向.

Since this question isn't about a specific problem in your code, its too broad to answer. So I am including links to some projects on github that I think are simple to understand and use standard API's instead of flash. Should point you in the right direction.

  1. julianburr/js-audiorecorder
  2. minervaproject/user-media-recorder
  1. julianburr/js-audiorecorder
  2. minervaproject/user-media-recorder

这篇关于将按顺序播放的声音保存为一个音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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