• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Sound monitoring server  (Read 924 times)
popon
Newbie
*

Karma: 3
Posts: 24


View Profile
« on: July 26, 2010, 10:28:41 PM »

I installed lenny into my sheevaplug.
I want to set up a sound monitoring server by using a USB microphone.
In my case:
# lsmod
snd_usb_audio          82992  0
snd_pcm                73829  1 snd_usb_audio
snd_timer              21444  1 snd_pcm
snd_page_alloc          9312  1 snd_pcm
snd_usb_lib            17244  1 snd_usb_audio
snd_rawmidi            22584  1 snd_usb_lib
snd_seq_device          7860  1 snd_rawmidi
snd_hwdep               7544  1 snd_usb_audio
snd                    56888  6 snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
soundcore               7508  1 snd
usbcore               139504  6 rt3070sta,uvcvideo,snd_usb_audio,snd_usb_lib,ehci_hcd

I plan to monitor the sound surrounding the sheevaplug though a web-interface.
Hope someone  to give me advice.
Logged

tylernt
Jr. Member
**

Karma: 2
Posts: 56


View Profile
« Reply #1 on: July 27, 2010, 09:53:16 AM »

Check out ALSA:

http://www.linux.org/docs/ldp/howto/Alsa-sound-6.html

There is probably a /dev/snd/ device you can access to get the microphone input.
Logged

popon
Newbie
*

Karma: 3
Posts: 24


View Profile
« Reply #2 on: August 19, 2010, 06:07:07 PM »

I found out that after installing alsa-utils
#arecord -t wav -d 10 test.wav
The sound will be recorded from the USB microphone.
That is, the alsa sound driver is in working.
 So, the next step is to set up a streaming server .
I installed icesast2 and ices2,  and modified:
in /etc/default/icecast2          ENABLE=false ----> ENABLE=true
in ices-alsa.xml:
<param name="rate">44100</param> -> <param name="rate">16000</param>
<param name="channels">2</param> -> <param name="channels">1</param>i
<in-rate>44100</in-rate>  -> <in-rate>16000</in-rate>

start icecast2 and ices2.
I can access the streaming server and see the mount point from the LAN, but no sound output.
Any advice will be helpful.

Logged

MarkF
Full Member
***

Karma: 7
Posts: 144


View Profile
« Reply #3 on: August 26, 2010, 05:16:34 AM »

abilash2012 - This is a Plug computer.  It has no piezo or speaker and no "beep" codes.

popon - I had problems finding my FM receiver input before.  This is one of the things the ices2 .xml file requires.   I had to look through the /proc filesystem to find the number of the input device.

Another possibility is to use sox and the stdin part of ices2 like this -
Code:
sox -2 --endian little -t alsa hw:1   -t wav - vol 0.8 rate 16k | ices2 ices-stdin.xml

You still need to know the number of the input device, though.
Logged

Mark

Pages: [1]
Print
Jump to: