本文介绍了从多个设备同时在多个轨道上录制音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用javascript中的Web Audio API开发音频Web应用程序,但我发现了一个问题:我需要同时从不同的设备录制到不同的轨道(想象一下,如果声卡有8个输入录制在8个缓冲区中独立地录制鼓手),但我还没有找到任何方法告诉AudioContext您必须录制哪个设备:(

I'm currenly developing an audio web application using Web Audio API in javascript, but I found a problem: I need to record simultaneously from different devices to different tracks (imagine for example a sound card with 8 inputs recording in 8 buffers independently in orderto record a drummer), but I have not found any way to tell the AudioContext from which device you must record :(

任何人都可以帮助我吗?非常感谢:)

Can anybody help me? Thanks a lot :)

推荐答案

那么你可以拥有多个麦克风 - 但前提是它们已插入多通道接口。通过使用约束多次调用getUserMedia来选择不同的输入来解决单独的设备 - 查看。不过,我不确定我们是否已接通支持。

Well you can have multiple microphones - but only if they're plugged into a multi-channel interface. Separate devices would be addressed by calling getUserMedia multiple times with a constraint to select different inputs - look at https://simpl.info/getusermedia/sources/index.html. I'm not sure if we're wired up to support that yet, though.

这篇关于从多个设备同时在多个轨道上录制音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 23:12