First, you need to download the last FFmpeg software version.
You can find it here.
Next, you need to see the microphone hardware. You need to use this command to see all your devices:
1 | C:\ffmpeg\bin>ffmpeg.exe -list_devices true -f dshow -i dummy |
The result shows you like strings
1 2 3 4 5 | [dshow @ 0000000002d5cd40] DirectShow video devices [dshow @ 0000000002d5cd40] "Front Camera" [dshow @ 0000000002d5cd40] DirectShow audio devices [dshow @ 0000000002d5cd40] "Microphone (Realtek High Definition Audio)" dummy: Immediate exit requested |
After that use this command to record your microphone:
1 2 | C:\ffmpeg\bin>ffmpeg.exe -rtbufsize 1500M -f dshow -i audio="Microphone (Realtek High Definition Audio)" -acodec pcm_s16le -ac 1 test.flv |
Then will create an flv format file. I used VLC software because bsplayer got me some errors.