Record audio to multiple tracks simultaneously from multiple devices

I am currently developing an audio web application using the 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 to 8 buffers independently, to record the drummer), but I haven't found a way to tell the AudioContext which device you should be recording from :(

Can anyone help me? Many thanks:)

+3


source to share


1 answer


Well, you can have multiple microphones - but only if they are connected to the multi-channel interface. Individual devices will be eliminated by calling getUserMedia multiple times with the restriction to select different inputs - see https://simpl.info/getusermedia/sources/index.html . I'm not sure if we are still connected to support this.



+2


source







All Articles