[Gambas-user] Reading the microphone? Playing audio from a socket? VOIP.
Titan Rain
07.rain at ...626...
Fri Jun 17 02:02:34 CEST 2011
Anyone know of any examples or cases of accessing the soundcard/microphone in gambas? I'm looking to capture output from microphone (and level if possible) and write it to a socket, and read the socket that will have audio data and play it. Push-to-talk style VOIP.
For writing to the socket I've already been looking into shelling something like arecord or pacat. I find arecord uses way too much CPU, but it does seem to be returning the mic data with levels in realtime. Still the CPU is at like 80% when it runs. I can't shoot the cpu that high each time the user pushes the talk button.
Pacat does not seem to return realtime data from the device. It records from a device into a file only, as far as I can tell.
Neither are a preferred solution as end user would need these additional packages and their deps.
Any info on any of the different parts
1) reading microphone data/levels
2) writing microphone/audio data to a socket
3) reading a socket with audio data and playing it
is great, even if it's maybe just kind of semi related it may help achieve the end goal. Thanks for your time!
More information about the User
mailing list