How to Play a sound file on line-in (Microphone)?

13,589

Solution 1

You need to use a virtual audio device driver (like this for example), which will allow you to play audio to that output device and it to appear as an input device to another application. Alternatively, just use a physical cable to connect an output to an input (taking care not to cause a feedback loop).

Solution 2

You can use VB-Audio Virtual Cable, It is free of Cost and you will be able to play speaker as the input to microphone, I did it myself to test speech recognition, played video on the PC, and the Software Voicemeeter By Same Company Helped me. It basically connected the virtual output to virtual input, Something like that ,It is really simple. I Hope it works for you like it did for me.

Also See This Answer Which Originally Suggested this and was life saver for me, Play audio as microphone input.

Share:
13,589
Rev
Author by

Rev

Not so sure,but try to be a good developer. ❤ JS and .Net

Updated on June 05, 2022

Comments

  • Rev
    Rev about 2 years

    That title may be seem Ridiculous but I Have problem. I have Service capture line-in and, save file on system as sound file (that service didn't develop by me, and I must use that).

    So I want to write program to select sound file (*.wav, *.mp3 or etc), and then that sound file, will be play on Line-in (Microphone) to record as user speech.

    Q: So How Do this In C#? Any Advise?
    Thanks