Skype on RPi?


67 posts   Page 1 of 3   1, 2, 3
by AcerExtensa » Thu May 10, 2012 9:21 am
Is it possible? Skype exist for ARM devices(Androids) and the all low-level functions are in .so libraries... So, if we can connect Camera from Nokia N95 and port skype to Pi this will be really cool feature...
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by prehensile » Sun May 13, 2012 11:14 am
I've been looking into this, since I have a Skype-based project in mind.

Skype have a Developer Program, which makes available a runtime called Skypekit for ARM devices. This means that if there's a runtime available which will run on the Pi's particular ARM11 chip, then it would be possible to build an app around that runtime. To be clear, the runtime isn't a full-featured desktop app, but provides calling services and whatnot to an app that someone else builds. You make the UI, Skypekit makes the calls. I don't know for sure if there's a runtime that'll run on the Pi since a) I don't have a Pi yet and b) Skype charge $5 to join the Program.

And, of course, we'd need an audio-in device of some sort.

So the short answer is: yes, it looks possible, but I won't be able to tell for sure until my Pi arrives and I pay out my $5 to join the Developer Program ;)
Posts: 16
Joined: Thu Oct 06, 2011 7:33 pm
by AcerExtensa » Tue May 15, 2012 11:45 am
Thank you for your reply! Can you provide a link to Skype Developer program or that ever it calls... I would like to try this out too.. when my Pi arrives :evil: :(
And audio-in is not really a problem with GPIO. With simple microphone and AD converter should be no problem.
Mics: http://www.sparkfun.com/categories/186
PCB with ADC: http://www.sparkfun.com/products/10653
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by prehensile » Sun May 20, 2012 9:30 pm
Ah, thanks for the mic info. The words 'Developer Program' up there ^^ link to Skype's developer site, but it's not so obvious, so here's the link again:
http://developer.skype.com/public/skypekit

We're interested in 'Skypekit for Embedded' with the ARM runtime. You'll need to sign up for the Developer Program before they'll give you any useful docs.
Posts: 16
Joined: Thu Oct 06, 2011 7:33 pm
by AcerExtensa » Thu May 24, 2012 8:11 am
Thanks for info!
Have registered me for Skype Dev... but still waiting for my RPi... :( :( :(
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by Vortex » Mon Jun 04, 2012 11:31 pm
I am in the Skype Developer program, haven't been successfully yet
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm
by AcerExtensa » Tue Jun 05, 2012 11:48 am
Vortex wrote:I am in the Skype Developer program, haven't been successfully yet

Why? What have you tried already? And which version of skype runtime do you use? Have payed fees for Embedded & Desktop runtimes today and got linux-armv6-skypekit-voicepcm-videortp & linux-x86-skypekit-voicepcm-videortp(for playing around because I STILL DIDN'T GET MY RPi :evil: )

Does RPi has pcm device? Can you start runtime on device and test runtimeclient with it?
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by mahjongg » Tue Jun 05, 2012 12:06 pm
AcerExtensa wrote:Thank you for your reply! Can you provide a link to Skype Developer program or that ever it calls... I would like to try this out too.. when my Pi arrives :evil: :(
And audio-in is not really a problem with GPIO. With simple microphone and AD converter should be no problem.
Mics: http://www.sparkfun.com/categories/186
PCB with ADC: http://www.sparkfun.com/products/10653

This device (ISD1932) is completely unsuitable for its intended purpose, of acting as a real time speech codec and sending the digital audio data to the RPI! Its a simple single chip audio recording playback device, such as there are many for the Chinese market. It doesn't have an option to read out the digital data from its internal flash chip.
What you need is a real codec, using an digital audio interface. In these days that means a codec with either a AC97 or a I2S interface (plus an I2C interface for control), all other options from previous era's have disappeared from the market due to standardization, adn simple ADC converters are generally unsuitable for this purpose.
AC97 isn't supported by the RPI, and officially I2S isn't either, but unofficially you can find the needed signals on some resistors on the board.
But you also need a driver for the I2S interface! And I think even the I2C driver is still in beta, as is the ALSA sound driver, so even a generic I2S driver simply doesn't exist for the PI (let alone one for a specific codec).
Another (currently easier to implement) solution is to use an USB soundcard (behind a hub, as USB soundcards normally are not single current (100 mA) devices).
User avatar
Forum Moderator
Forum Moderator
Posts: 5573
Joined: Sun Mar 11, 2012 12:19 am
by AcerExtensa » Tue Jun 05, 2012 12:50 pm
ISD1932 was just an example of PCB with microphone. Since RPi has GPIOs we can made simple PCB with mic and connect it over UART I2C or whatever... We can also do this over some cheap microcontrollers like Teensy(wich adds also features to us like HID interface(some buttons and we have simple keyboard to control RPi)). Sure we need to implement kernel module for our audio input, but it is possible. Over they we can use cheap Chinese usb sound cards, I will test them too... But we need RPi in first place, to get started! :evil:
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by Vortex » Tue Jun 05, 2012 10:09 pm
AcerExtensa wrote:
Vortex wrote:I am in the Skype Developer program, haven't been successfully yet

Why? What have you tried already? And which version of skype runtime do you use? Have payed fees for Embedded & Desktop runtimes today and got linux-armv6-skypekit-voicepcm-videortp & linux-x86-skypekit-voicepcm-videortp(for playing around because I STILL DIDN'T GET MY RPi :evil: )

Does RPi has pcm device? Can you start runtime on device and test runtimeclient with it?


I have been trying to get audio working but then again I am a total Linux noob it is where I am stuck on now
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm
by AcerExtensa » Wed Jun 06, 2012 7:04 am
I hope I will get my RPi at the end of this month, so I can test it then.
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by groosha5 » Tue Jun 12, 2012 12:38 am
I'm a complete noob so don't eat me, but could you use a usb web cam with a built in mic?
Posts: 2
Joined: Tue Jun 12, 2012 12:32 am
by Vortex » Tue Jun 12, 2012 9:41 pm
So I was able to get a bit further.

I am now at the stage that I can start Skypekit and send and receive chat messages (my primary target)
The next step is to see what happens if I make a call to the RasPi
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm
by AcerExtensa » Mon Jun 18, 2012 7:26 am
groosha5 wrote:I'm a complete noob so don't eat me, but could you use a usb web cam with a built in mic?

yes, if your webcam supported and have some kind of "sound card" builtin.
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by AcerExtensa » Mon Jun 18, 2012 7:27 am
Vortex wrote:So I was able to get a bit further.

I am now at the stage that I can start Skypekit and send and receive chat messages (my primary target)
The next step is to see what happens if I make a call to the RasPi


Are you using loopback PCM Host device?
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by Vortex » Mon Jun 18, 2012 1:28 pm
AcerExtensa wrote:
Vortex wrote:So I was able to get a bit further.

I am now at the stage that I can start Skypekit and send and receive chat messages (my primary target)
The next step is to see what happens if I make a call to the RasPi


Are you using loopback PCM Host device?


Yes I do, I compiled it on the RasPi, since I have no clue on how to cross-compile, and works like a charm
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm
by groosha5 » Mon Jun 18, 2012 4:28 pm
AcerExtensa wrote:
groosha5 wrote:I'm a complete noob so don't eat me, but could you use a usb web cam with a built in mic?

yes, if your webcam supported and have some kind of "sound card" builtin.

I wouldn't know. It's a cheap, generic, made in China cam with no markings. Is there any way to find out?
Posts: 2
Joined: Tue Jun 12, 2012 12:32 am
by redhawk » Tue Jun 19, 2012 8:24 am
There is the always the Bluetooth option I use my Bluetooth headset all the time while on Skype so in theory it should work on the PI with the right driver / software combination.

Richard S.
User avatar
Posts: 3519
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1
by AcerExtensa » Tue Jun 19, 2012 2:43 pm
groosha5 wrote:
AcerExtensa wrote:
groosha5 wrote:I'm a complete noob so don't eat me, but could you use a usb web cam with a built in mic?

yes, if your webcam supported and have some kind of "sound card" builtin.

I wouldn't know. It's a cheap, generic, made in China cam with no markings. Is there any way to find out?


I don't think cheap webcam from China would have sound card in it, perhaps just simple usb audio line-in. I know what logitech has kind of sound card builtin in theys webcams. Just connect your cam to linux PC and look if you have some new audio devices(simple run dmesg in console and look last 10-20 lines)
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by AcerExtensa » Tue Jun 19, 2012 2:46 pm
Vortex wrote:
AcerExtensa wrote:
Vortex wrote:So I was able to get a bit further.

I am now at the stage that I can start Skypekit and send and receive chat messages (my primary target)
The next step is to see what happens if I make a call to the RasPi


Are you using loopback PCM Host device?


Yes I do, I compiled it on the RasPi, since I have no clue on how to cross-compile, and works like a charm


Nice! and I'm still waiting for my RPi.... I hope Farnell keep their promise and I get it very soon...
Posts: 33
Joined: Tue Apr 17, 2012 10:56 am
by Vortex » Wed Jun 20, 2012 12:12 am
Now I only need to solve the Kernel panics.

I am not yet sure what causes it, the SkypeKit program or the voiceloopback host

I have no idea on how to read these :(
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm
by prehensile » Wed Jun 20, 2012 11:42 am
My Pi arrived today, woo! I'm going to start fiddling with SkypeKit straight away.

Maybe we should start putting some info together on the Wiki?
Posts: 16
Joined: Thu Oct 06, 2011 7:33 pm
by prehensile » Fri Jun 22, 2012 6:17 pm
Vortex wrote:
AcerExtensa wrote:
Vortex wrote:So I was able to get a bit further.

I am now at the stage that I can start Skypekit and send and receive chat messages (my primary target)
The next step is to see what happens if I make a call to the RasPi


Are you using loopback PCM Host device?


Yes I do, I compiled it on the RasPi, since I have no clue on how to cross-compile, and works like a charm


Can you give any tips on getting the loopback Audio PCM host to compile? I've got as far as installing cmake & premake on the Pi, but I can't get the loopback to compile. What commands did you use to compile on your Pi?

[edit]Strike that, worked it out. That was not immediately obvious though, I'm going to write up the process somewhere so others don't have to suffer.

Next question then: I'm assuming that if we're to use the Skypekit runtime to make audio calls, we'll need to write an Audio PCM Host which connects to ALSA or something [I'm not a Linux programmer, so a lot of this is new stuff to me]?
Posts: 16
Joined: Thu Oct 06, 2011 7:33 pm
by prehensile » Fri Jun 22, 2012 8:23 pm
I've started documenting at http://elinux.org/RPi_Using_Skypekit . I'll go back and write the missing two sections over the weekend.

Currently trying to get voicepcmhost-rtaudio to compile, to try making voice calls. I've downloaded & built RtAudio from http://www.music.mcgill.ca/~gary/rtaudio/, but still not having any luck.
Posts: 16
Joined: Thu Oct 06, 2011 7:33 pm
by Vortex » Sun Jun 24, 2012 9:41 pm
Great to hear you got it working :)
Posts: 12
Joined: Wed Mar 07, 2012 11:18 pm