maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 like micr (https://talk.maemo.org/showthread.php?t=76104)

eL.ectron1k 2011-08-27 08:05

N900 like micr
 
Hello guys!
I
want to use my N900 connected trough usb to PC like microphone.

Is it possible?

I want use it in TeamSpeak/Skype/ and other voice software.



Thanks!

crackleware 2011-08-30 20:27

Re: N900 like micr
 
Maybe we can use gstreamer on N900 to capture and send data to Linux PC where gstreamer receives audio and routes it to alsa aloop driver (http://www.alsa-project.org/main/ind...x:Module-aloop) for use in Skype or any other application.

These threads could be relevant:

http://talk.maemo.org/showthread.php...t=v4l2loopback

http://talk.maemo.org/showthread.php...652#post909652

SHARP66 2011-08-30 21:19

Re: N900 like micr
 
Quote:

Originally Posted by eL.ectron1k (Post 1077332)
Hello guys!
I
want to use my N900 connected trough usb to PC like microphone.

Is it possible?

I want use it in TeamSpeak/Skype/ and other voice software.



Thanks!

THAT sounds great :)
If Anyone can tell me if the mic. in phone is better in quality like normal pc microphones.
If would help in speak recognition softwares.

crackleware 2011-08-31 20:15

Re: N900 like micr
 
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.

SHARP66 2011-08-31 21:24

Re: N900 like micr
 
Quote:

Originally Posted by crackleware (Post 1079717)
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.

For windows? any chance?

crackleware 2011-09-01 22:05

Re: N900 like micr
 
Quote:

Originally Posted by SHARP66 (Post 1079733)
For windows? any chance?

It could be possible with GStreamer for Windows (http://code.google.com/p/ossbuild/) and Virtual Audio Cable (http://software.muzychenko.net/eng/vac.htm).


All times are GMT. The time now is 15:10.

vBulletin® Version 3.8.8