简体   繁体   English

将音频流输出到麦克风

[英]Outputting audio stream into microphone

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.我知道这可能需要一些低级调用被“Pinvoked”,但是有没有可能对我有帮助的文章。 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.例如,如果我将应用程序的输出音频流运行到 Window 的Sound Recorder程序中,它会认为音频来自麦克风并因此记录下来。 I don't want to record a stream, just output it to the device's micrphone input.我不想录制流,只是将其输出到设备的麦克风输入。 Thanks for any ideas.感谢您的任何想法。

我使用虚拟音频电缆就是为了这个目的!

I used VB-CABLE (which works as an audio device driver, not external software) to do exactly what you want.我使用 VB-CABLE(作为音频设备驱动程序工作,而不是外部软件)来做你想做的事。

https://www.vb-audio.com/Cable/index.htm https://www.vb-audio.com/Cable/index.htm

One single input/output device for free and 2 additional devices can be added with a donation.一台免费的输入/输出设备和 2 台额外的设备可以通过捐赠添加。

If your application can access VST's, then you can use wormhole2, which is open source and works for Mac and PC.如果您的应用程序可以访问 VST,那么您可以使用 wormhole2,它是开源的,适用于 Mac 和 PC。 It can send and receive Audio in a VST compatible host.它可以在 VST 兼容主机中发送和接收音频。 http://code.google.com/p/wormhole2/ 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.如果没有,至少在 mac 上,有来自 cycle74 的 Soundflower,它为整个系统中可用的音频输入和输出安装了一个框架。 cycling74.com/soundflower-landing-page/ cycling74.com/soundflower-landing-page/

As an equivalent on PC, there is: http://jackaudio.org/ which basically does the same as Soundflower.作为 PC 上的等效项,有: http : //jackaudio.org/ ,它的作用与 Soundflower 基本相同。

考虑针对此类问题查看 Pure Data (PC) 或 Max MSP (Mac)。

It sounds like you are looking for a virtual audio driver.听起来您正在寻找虚拟音频驱动程序。 You can purchase software from Softonic that already does this.您可以从Softonic购买已经执行此操作的软件。 If you need to build it yourself, then you can manage this using DirectSound (part of the DirectX library) from Microsoft.如果您需要自己构建它,那么您可以使用 Microsoft 的 DirectSound( DirectX库的一部分)来管理它。

如果您可以使用 VLC 进行录制并且在 vista+ 上,那么这个https://github.com/rdp/virtual-audio-capture-grabber-device可能会有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM