Basic Microphone Integration

Hi all,

I’ve got my packet based radio working now, so I want to test it by
into a mic on the transmitter laptop and playing the stream on the
of the receiver laptop.

I realized I don’t know how to integrate the audio sink floating point
output of the mic to my byte based radio input. I assume there is an
encoder that handles this transition, but I’m not familiar with audio
streaming at all.

How should I integrate the mic at the transmitter side and the speakers
the receiver side?

I looked for an example online but didn’t find anything. I thought there
was a tutorial at one point on this but maybe I’m wrong.


The audio sinks do that; you might have to use your OS’s mixer settings
for selecting the mic.

The audio sink/source are like the UHD blocks in that you pipe in
floats, and 1 maps to FS. So keep your abs value below 1 and you’re

gr-audio has some examples for you to peruse.


Thanks Martin, got it.


On Tue, Mar 24, 2015 at 4:43 PM, Martin B. [email protected]

On Tue, Mar 24, 2015 at 5:24 PM, Richard B. [email protected]

Thanks Martin, got it.


And if you’re going farther with this line of thought, look into
and what we have in gr-vocoder.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs