Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you turn on the microphone?

How would I go about turning the microphone on and open some kind of a live stream to listen to whats happening on my PC in another location? It's going to be a baby-monitor project.

Any ideas on the way I should do this? I am only really after code to do the task. I can do the rest. I am learning Delphi so I should be okay.

I would also need to be able to stop the mic. At this stage I do not want to talk back, just listen in real time or as close as I can get.


1 Answers

Wow, everyone keeps on recommending external packages for this. It's built into Windows - the waveInOpen/waveInPrepareHeader/waveInBufferRead APIs should work on all versions of Windows.

You can also use DirectSoundCapture if you need finer control.

like image 148
ReinstateMonica Larry Osterman Avatar answered Dec 12 '25 07:12

ReinstateMonica Larry Osterman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!