虚拟麦克风,网络和vb.net

时间:2021-09-26 13:58:11

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?

我想添加一个虚拟麦克风(类似于你可以在virual CD上安装ISO文件),这样它就可以在MSN和skype这样的程序中进行选择。但是音频的来源是否可以通过网络传输(我知道如何在VB.net中通过网络传输音频),但是如何获得作为虚拟麦克风输入的音频呢?

Jonathan

乔纳森

3 个解决方案

#1


3  

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.

您可以调整以AVStream filter为中心的模拟捕获驱动程序WDK示例,从MSDN中删除视频支持(图像)。cpp,视频。并改变音频捕获针实现,从网络中提供音频而不是样本波文件。

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.)

或者,您也可以查看MSDN中的Microsoft Virtual Audio Device (MSVAD)示例驱动程序,它实现为一个端口类驱动程序(与上面的AVStream驱动程序相反)。

It is also possible to write a DirectShow source filter and register it as if it corresponded to an audio capture device.

还可以编写一个DirectShow源过滤器,并将其注册,就像它与音频捕获设备通信一样。

#2


1  

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.

有一个应用,可以回答你的问题。它最适合你的所有要求,最好的一点是它大约35美元买。

#3


-1  

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.

注意,在Vista+中,他们隐藏了立体声混频器(默认情况下是禁用的)。诀窍是“显示禁用的设备”,启用它,并将其设置为默认值。

recording device options http://i.imagehost.org/0388/mixer.png

记录装置选择http://i.imagehost.org/0388/mixer.png

#1


3  

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.

您可以调整以AVStream filter为中心的模拟捕获驱动程序WDK示例,从MSDN中删除视频支持(图像)。cpp,视频。并改变音频捕获针实现,从网络中提供音频而不是样本波文件。

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.)

或者,您也可以查看MSDN中的Microsoft Virtual Audio Device (MSVAD)示例驱动程序,它实现为一个端口类驱动程序(与上面的AVStream驱动程序相反)。

It is also possible to write a DirectShow source filter and register it as if it corresponded to an audio capture device.

还可以编写一个DirectShow源过滤器,并将其注册,就像它与音频捕获设备通信一样。

#2


1  

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.

有一个应用,可以回答你的问题。它最适合你的所有要求,最好的一点是它大约35美元买。

#3


-1  

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.

注意,在Vista+中,他们隐藏了立体声混频器(默认情况下是禁用的)。诀窍是“显示禁用的设备”,启用它,并将其设置为默认值。

recording device options http://i.imagehost.org/0388/mixer.png

记录装置选择http://i.imagehost.org/0388/mixer.png