虚拟麦克风、网络和 vb.net
我想添加一个虚拟麦克风(类似于您拥有一个虚拟 CD 驱动器,然后在其上安装 ISO 文件。),以便可以在 MSN 和 Skype 等程序中选择它。但是音频源可以通过网络进行流式传输(我知道如何在 VB.net 中通过网络流式传输音频),但是如何获取已作为虚拟麦克风的输入流式传输的音频?
乔纳森
I would like to add a virtual microphone (similar to how you can have a virual CD drive and then mount ISO files on it.) so that it can be selectable in programs like MSN and skype. But have the source of the audio be streamed from over a network(I know how to stream the audio over the network in VB.net) but how do I get that audio which has been streamed as the input to the virtual microphone?
Jonathan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以改编AVStream Filter-Centric Simulated Capture Driver WDK Sample MSDN,放弃视频支持(
image.cpp
、video.cpp
等)并更改音频捕获引脚实现以提供来自网络的音频而不是示例波形文件。或者,您可以查看 Microsoft 虚拟音频设备 (MSVAD) 示例驱动程序 来自 MSDN,作为端口类驱动程序实现(与上面的 AVStream 驱动程序相反)。
还可以编写 DirectShow 源过滤器并将其注册,就好像它对应于音频捕获设备一样。
You can adapt the AVStream Filter-Centric Simulated Capture Driver WDK Sample from MSDN, dropping video support (
image.cpp
,video.cpp
etc.) and altering the audio capture pin implementation to provide audio from the network instead of the sample wave file.Alternatively, you can take a look at the Microsoft Virtual Audio Device (MSVAD) Sample Drivers from MSDN, implemented as a port-class driver (as opposed to the AVStream driver above.)
It is also possible to write a DirectShow source filter and register it as if it corresponded to an audio capture device.
好吧,有这个应用,它可能会回答您的问题。它满足您的大部分要求,但不是所有要求,最好的一点是它的购买价格约为 35 美元。
Well, there is this app, which may answer your question. Its fits most of not all of the requirtements you have, and the best bit is that its around $35 to buy.
如果您需要为自己提供一次性解决方案,这可能会起作用。但如果您想专门对此进行编码,我对非编程答案表示歉意。
在录制设备选项中,将立体声混音器设置为默认设备将录制系统上播放的所有内容。
请注意,在 Vista+ 上,他们隐藏了立体声混音器(默认情况下禁用)。诀窍是“显示禁用的设备”,启用它,并将其设置为默认设备。
录制设备选项 http://i.imagehost.org/0388/mixer.png
If you need a once-off solution for yourself, this might work. But if you're looking to code this specifically, I apologize for a non-programming answer.
In recording device options, setting your Stereo Mixer as the default device will record whatever gets played on your system.
Note that on Vista+ they hid the stereo mixer (it's disabled by default). The trick is to 'show disabled devices', enable it, and setting it as your default.
recording device options http://i.imagehost.org/0388/mixer.png