将音频流输出到麦克风

发布于 2024-10-05 22:46:31 字数 187 浏览 8 评论 0原文

嘿大家。有没有办法从我的程序输出音频并将该流重定向到系统的麦克风输入“层”?我知道这可能需要“Pinvoked”一些低级调用,但是有没有任何文章可以帮助我。例如,如果我要将应用程序的输出音频流运行到 Window 的 Sound Recorder 程序中,它会认为音频来自麦克风,从而录制该音频。我不想录制流,只是将其输出到设备的麦克风输入。感谢您的任何想法。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

和影子一齐双人舞 2024-10-12 22:46:31

我使用 VB-CABLE(它作为音频设备驱动程序,而不是外部软件)来完成您想要的操作。

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

一台免费的输入/输出设备,可以通过捐赠添加 2 台额外的设备。

I used VB-CABLE (which works as an audio device driver, not external software) to do exactly what you want.

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.

烟沫凡尘 2024-10-12 22:46:31

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

I used Virtual Audio Cable just for such purpose!

后知后觉 2024-10-12 22:46:31

对于此类问题,请考虑研究 Pure Data (PC) 或 Max MSP (Mac)。

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

岁月静好 2024-10-12 22:46:31

听起来您正在寻找虚拟音频驱动程序。您可以从 Softonic 购买已经具备此功能的软件。如果您需要自己构建它,那么您可以使用 DirectSound(DirectX< /a> 库)来自 Microsoft。

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.

季末如歌 2024-10-12 22:46:31

如果您可以使用 VLC 进行录制并且使用的是 vista+,那么这个 https://github .com/rdp/virtual-audio-capture-grabber-device 可以提供帮助

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

如歌彻婉言 2024-10-12 22:46:31

如果您的应用程序可以访问 VST,那么您可以使用 wormhole2,它是开源的,适用于 Mac 和 PC。它可以在 VST 兼容主机中发送和接收音频。 http://code.google.com/p/wormhole2/

如果没有,至少Mac 上有来自cycling74 的Soundflower,它安装了整个系统中可用的音频输入和输出框架。
cycling74.com/soundflower-landing-page/

作为 PC 上的等效项,有:http://jackaudio.org/ 基本上与 Soundflower 相同。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文