Outputting audio stream into microphone

2019-03-29 06:36发布

Hey everyone. Is there a way of outputting audio from my program and redirecting that stream to the system's microphone input 'layer'? I understand this might require some low-level calls being 'Pinvoked', but are there any articles that might help me. For example, if I was to run the output audio stream of my application into Window's Sound Recorder program, it would think that the audio is coming from a microphone and thus record that. I don't want to record a stream, just output it to the device's micrphone input. Thanks for any ideas.

5条回答
倾城 Initia
2楼-- · 2019-03-29 06:52

if you're ok recording with VLC and are on vista+ then this https://github.com/rdp/virtual-audio-capture-grabber-device could help

查看更多
疯言疯语
3楼-- · 2019-03-29 06:53

I used Virtual Audio Cable just for such purpose!

查看更多
何必那么认真
4楼-- · 2019-03-29 06:53

If your application can access VST's, then you can use wormhole2, which is open source and works for Mac and PC. It can send and receive Audio in a VST compatible host. http://code.google.com/p/wormhole2/

If not, at least on mac, there is Soundflower from cycling74 which installs a framework for audio ins and outs which are available in the whole system. cycling74.com/soundflower-landing-page/

As an equivalent on PC, there is: http://jackaudio.org/ which basically does the same as Soundflower.

查看更多
我想做一个坏孩纸
5楼-- · 2019-03-29 07:03

Consider looking into Pure Data (PC) or Max MSP (Mac) for this type of issue.

查看更多
虎瘦雄心在
6楼-- · 2019-03-29 07:03

It sounds like you are looking for a virtual audio driver. You can purchase software from Softonic that already does this. If you need to build it yourself, then you can manage this using DirectSound (part of the DirectX library) from Microsoft.

查看更多
登录 后发表回答