Thread: N900 like micr
View Single Post
Posts: 3 | Thanked: 3 times | Joined on Aug 2011
#4
Here are commands and setup instructions for using N900 mic as Skype mic input over USB networking.

After USB network setup:

host's IP address is 192.168.2.14
n900's IP address is 192.168.2.15

Following commands should work over wireless too.

I get good quality and barely acceptable latency with this:

Code:
host$ sudo modprobe snd-aloop # load loopback kernel module

host$ gst-launch-0.10 -v tcpserversrc host=192.168.2.14 port=9999 ! audio/mpeg, channels=1, rate=48000, mpegversion=1, layer=2 ! ffdec_mp3 ! alsasink device=hw:1,0,0 sync=false

n900$ gst-launch -v pulsesrc ! audio/x-raw-int, rate=48000, channels=1, signed=true, width=16, depth=16, endianness=1234 ! ffenc_mp2 bitrate=320000 ! tcpclientsink host=192.168.2.14 port=9999
Test the setup by routing N900 mic input to Linux sound card:

Code:
host$ gst-launch-0.10 -v alsasrc device=hw:1,1 ! audio/x-raw-int, rate=48000, channels=1, signed=true, width=16, depth=16, endianness=1234 ! queue ! audioconvert ! alsasink device=hw:0,0
Talk into N900 mic and if you can hear yourself setup should work with Skype and other apps probably.

Start Skype and select Loopback hw:1,1 for microphone input.

hw:0... is internal sound card and hw:1... is loopback sound card on my Linux system.

I tested with wired Nokia headset that came with N900.

I have ArchLinux on host.
 

The Following 2 Users Say Thank You to crackleware For This Useful Post: