Simulate Microphone (Virtual Mic)

Simulate microphone Input

You can install some program like Virtual Audio Cable and from your music player redirect playing sound to virtual input. In your program you must listen that virtual input source and you can for test redirect to normal headphones or speaker received signal or saved it to file.

Play audio as microphone input

Just as there are printer drivers that do not connect to a printer at all but rather write to a PDF file, analogously there are virtual audio drivers available that do not connect to a physical microphone at all but can pipe input from other sources such as files or other programs.

I hope I'm not breaking any rules by recommending free/donation software, but VB-Audio Virtual Cable should let you create a pair of virtual input and output audio devices. Then you could play an MP3 into the virtual output device and then set the virtual input device as your "microphone". In theory I think that should work.

If all else fails, you could always roll your own virtual audio driver. Microsoft provides some sample code but unfortunately it is not applicable to the older Windows XP audio model. There is probably sample code available for XP too.

Windows virtual microphone in C

It is possible to use the Windows Stereo Mix for that. Then you can open the virtual device in loopback mode and record what the microphone hears with programming

Is there any way to attach virtual audio input and output devices

You can use Virtual Audio Cable. You can send the audio from the bot to the VAC speaker and it will relay the sound to a virtual microphone. Then you can select the microphone with getUserMedia.

edit:

You can also use jackaudio which is available crossplatform.



Related Topics



Leave a reply



Submit