# Record and analyze sound from mic

**URL:** <https://www.ruby-forum.com/t/record-and-analyze-sound-from-mic/151239>\
**Category:** Ruby\
**Created:** [October 18, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/record-and-analyze-sound-from-mic/151239 "2008-10-18T18:33:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandro\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@sandro\_p](https://www.ruby-forum.com/u/sandro_p)\
**Post date:** [October 18, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/record-and-analyze-sound-from-mic/151239/1 "2008-10-18T18:33:20Z")

</div>

Hello

I’m looking for someone who had already tried (or, at least, has some  
ideas  
about how to do it) to record sounds from the mic port using Ruby.

Plus I’m also looking for a gem that can help me read and operate on a  
sound  
stream (the sound stream that comes from the mic 🙂

Thanks  
Sandro

---

<div class="post-metadata">

**Author:** ![sandro\_p](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@sandro\_p](https://www.ruby-forum.com/u/sandro_p)\
**Post date:** [October 18, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/record-and-analyze-sound-from-mic/151239/2 "2008-10-18T21:27:10Z")

</div>

Sandro P. wrote:

> Hello
> 
> I’m looking for someone who had already tried (or, at least, has some  
> ideas  
> about how to do it) to record sounds from the mic port using Ruby.
> 
> Plus I’m also looking for a gem that can help me read and operate on a  
> sound  
> stream (the sound stream that comes from the mic 🙂
> 
> Thanks  
> Sandro

Are you on Linux? On Linux there are several ways, unfortunately I have  
never verified one that works for me hehe…

but if it is a command, you can call this command in your ruby script

`command_to_perform`

PS: I think alsa has something to record Mixer
