#Mic real time audio transfer

8 messages · Page 1 of 1 (latest)

knotty rivet
#

Does anyone know how to send (in real time) microphone audio towards a localport and have a reciever script to play the sound? (Any language)

obsidian rootBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

steep rock
#

send audio towards a "localport"? which os?

kindred peak
# knotty rivet Does anyone know how to send (in real time) microphone audio towards a localport...

Hard to know exactly what you are trying to do, but I assume you want to open some audio input device (microphone perhaps) and transmit the audio over IP to a receiver that will then pipe it to an audio output device (speaker).

This can certainly be done. Since you are posting in a C++ forum, I will assume you want it in C++.

I suggest using portaudio to read/write audio devices and sockets UDP to transport the audio over the network. I have been able to do quick prototypes both in C++ and python and it works well enough for demonstration purposes.

You will run into challenges sorting out audio devices, getting sample rates properly configured, dealing with supported channel counts and the like but it is all doable.

knotty rivet
#

I also have virtual cable audio

#

I was trying to see if I can make a discord bot transmit sound coming from my microphone or other devices

steep rock
#

on windows, you'll probably want to use WASAPI