The purpose of this guide is to show you how to record your Skype conversations for legitimate purposes. Remember to respect your local laws regarding the recording of telephone calls, and to respect your local copyright laws in any recording endeavor. UPDATE: If you are using Skype 1.3 beta, see below for additional instructions.
The basics of how to do the recording can be found here. However, since the linked article is targeted to Ubuntu users I will provide a more generic guide.
You will need vsound, sox and lame (for mp3 encoding goodness) to satisfy the dependencies of this process. If your distro does not have a binary build of these, you can download the source from the above links and compile them manually. Don’t fear the command line.
Then, simply stop by Twisted Little Gnome and download the skype-rec script. Currently down, see below!
Extract the package to your magical home of choice and open a terminal. Change directories to the directory skype-rec-kraken and run make. The program is now ready to go, but you may want to set options specific to your system to ensure correct execution.
To configure the program, open the file skype-rec in your favorite text editor. There are several variables you can set for your personal options. In most cases you won’t have to change anything so long as you can run Skype by just typing skype on the command line. If this is not the case, enter your terminal command for executing Skype for the $SKYPE option. You may also want to change the default encoding rate to 96 kbps from 128 unless you want to start generating massive files. Save your file and wash your hands.
Now, on the command line (in the program’s directory of course) type: ./skype-rec. If you’ve configured your file correctly, Skype will start. Upon exiting Skype, all your conversations from that session will be converted to mp3 format at the bitrate you chose. It will appear in the program folder and have some wacky name like v00000000.mp3.
Rename the file to something more meaningful and move it to your folder of preference. There will also be two *.au files in that directory. Go ahead and delete them so the program doesn’t try to encode the conversation again. Or you could set the configuration of the program to automatically wipe those files upon completion by setting the $CLEANUP_ORIG option in skype-rec to 1.
Whoo-hoo! Now you can record your Skype conversations without additional hardware, so long as you are running some flavor of Linux. It works beautifully on my SuSE distro.
UPDATE: Twisted Little Gnome appears to be down. So I shall host the script here as well, as that is permitted under its license.
Download the script here! Please use the script below.
UPDATE: The above instructions will not work on the Skype 1.3 beta. In order to record off of that Skype version, you will need the new version of the skype-rec script which is available here.
Download the new script and extract it to its own folder. Change directories to the new folder, run make and make install. Then open the file skype-rec.rc in your favorite text editor and edit the options to meet your needs. There are a few more choices in this version, including a stereo remixing of the conversation which I’m still trying to get to work for me (doesn’t work for the Skype beta at least), and ogg encoding, which is a welcome sight. As an added plus, it also converts your conversations as you complete them, rather than rolling an entire session into one huge sound file.
After you’ve set all your options, copy the file to your home directory and rename it to .skype-rec.
$ cp skype-rec.rc $HOME/.skype-rec
Please note that you will have to have Skype in OSS mode in order for the script to work, so you’ll lose your shiny new ALSA goodness for your recording session. You can always set it back when you are done.
I’ll continue hosting the old script here, although I highly recommend you upgrade using the new script available over at Sourceforge.
UPDATE: For whatever reason, I still can’t seem to get this script to work since I upgraded to a 64-bit environment, so if you are an early adopter of 64-bit *nix and it works for you, drop me a line so we can figure it out for everyone.



(Comment Feed For This Entry)
This entry currently has 41 comments. You can leave one too, if you like.
Posted on Saturday, February 18, 2006 @ 08:54 CST
[…] Daniel Andrlik on his Ministry of Intrigue blog has a great post about how to record your skype calls. HOWTO: Record Skype Conversations In Linux features a great bash script to use Lame and Sox to record Skype conversations. […]
Posted on Friday, March 17, 2006 @ 05:23 CST
[…] Ah, here’s a tutorial from the Minister of Intrigue, using a script written by the Twisted Little Gnome called skype-rec (.TAR). […]
Posted on Thursday, March 30, 2006 @ 22:24 CST
Thanks a bunch! This is awsome!
Posted on Thursday, March 30, 2006 @ 23:21 CST
Glad to help!
Posted on Saturday, April 22, 2006 @ 09:38 CDT
twisted little gnome gives me a forbidden error
Posted on Sunday, April 23, 2006 @ 14:11 CDT
Weird. The site for twisted little gnome appears to be down. In the meantime, I’ll host it here. Download the script via this link.
Posted on Friday, June 23, 2006 @ 18:35 CDT
[…] Recording something like Skype doesn't require any mics beyond the one necessary for the phone call. Here are a couple of how to's: Recording Skype in Linux, Recording Skype in Windows. […]
Posted on Saturday, July 15, 2006 @ 08:56 CDT
Hi,
I’m trying to make skype-rec work but I have some troubles (Ubuntu 6.06, skype 1.3 beta):
I can install skype-rec perfectly. When not changing skype-rec.rc and just putting into terminal ‘skype-rec’ I get: ERROR: Couldn’t locate oggenc binary at ‘oggenc’matjaz@PCPlus:~$
Looks like skype-rec can not find oggenc binaries.
How do I change this?
In README file says: “Skype-rec must be able to find binaries for: ……oggenc (only if Ogg Vorbis encoding is selected)”
How do I change this? Basically I’m a bit confused. Help really appreciated.
Thanks.
Matjaz
Posted on Saturday, July 15, 2006 @ 09:23 CDT
Do you want to record as ogg or mp3? If you don’t want ogg you can chage the encoding type on line 15 of skype-rec.rc.
$ENC_TYPE = 1;gives you ogg, switching the value to 2 will switch to the LAME mp3 encoder.In either case, if the ogg or lame binary is not in your $PATH you will need to edit the locaction values for the binary files. Both binaries will probably be found in /usr/bin (although I can’t be sure as I’m on a different distribution than you). If they are not there make sure you have the lame or vorbis-tools package installed for your system.
Hope that helps!
Posted on Saturday, July 15, 2006 @ 10:14 CDT
Hi Daniel,
Thanks for help. Appreciate it.
I changed $ENC_TYPE to 2 (mp3) and also to 0 (wav), saved and run ‘skype-rec’ in terminal. Both times I got the same message for missing oggenc binaries. Strange!
I couldn’t find ogg and mp3 binaries’ location yet… (I used Suound Recoreder and recorded a sample of my voice in ogg file, seemed to work…)
Perhaps I need to really search for those binaries. How do I install lame or vorbis-tools package in case I haven’t got them? From repositories? (hope I don’t ask too much, we use different distros)
Surprises me that switching to 0 (wav) gives me oggenc binaries missing…
Thank you.
M
Posted on Saturday, July 15, 2006 @ 10:29 CDT
They should be available via your package manager as Ubuntu uses the fabulous apt-get for package management (which in my opinion is the best manager for binary packages). Try opening a terminal and type
sudo apt-get install lame vorbis-tools.Also, when you edit the
skype-rec.rcfile, are you then copying it to your home directory under the new filename.skype-rec? If you aren’t that would explain why it is still trying to default to ogg despite changing settings.Try those options and let me know how it works out for you.
Posted on Saturday, July 15, 2006 @ 19:14 CDT
Hi Daniel,
Thanks. I have downloaded Vorbis tools as you suggested. They were in synaptic package manager. I needed to install them.
So they are installed. Skype-rec started correctly now. I switched skype to OSS and recorded some samples.
Skype-recordings folder is also in place. Unfortunatelly inside I got 2 .au files I couldn’t play. Nothing happened when starting XMMS or real player etc.
When I finished skype recording I got in the terminal: “Please wait while conversion process finishes… 2006-07-16 01:10:17: Converting conversation 2006-07-16 01:10:17: Error converting /home/matjaz/skype-recordings/remote-20060716011017.au to stereo”
That kept repeating itself until I closed skype. Then it said ‘Done’ - but with two .au files (which don’t work).
Another thing is that I didn’t change anything in skype-rec.rc file. I have it under /home/[myusername]/skype-rec-1.0 directory. When I change something (for ex. $ENC_TYPE to 0), save it and try to copy it into home foldr I can’t. When going to ‘home’ directory there is no paste option. How do I copy&paste that file? Is there command line for that?
I’m glad things are moving
Hope we get to actual successful record too.
Matjaz
Posted on Saturday, July 15, 2006 @ 19:17 CDT
I tried to type in termial $ cp skype-rec.rc $HOME/.skype-rec as suggested in instruction text above. I got:
cp: cannot stat `skype-rec.rc’: No such file or directory
Hm…
M
Posted on Sunday, July 16, 2006 @ 12:27 CDT
Oh, yeah sorry. On the new Skype you also need to change the skype-rec option $STEREO_MIX equal to zero. The stereo mix currently doesn’t work on the Skype beta, and I’ve never tested it on the old Skype.
As to the copy issue, make sure your terminal is currently cd’ed to the directory the file is in, or explicity state where the original file is to issue the command. Here’s an abstract example:
That should get you up and running!
Posted on Sunday, July 16, 2006 @ 13:28 CDT
Hey, thanx Daniel.
Now it’s working.
Though, when listening to recording (either wav or ogg file) I get internal data stream error at approximatelly 90 percent of the recording - independent of the length of the recording. I tried Totem player, XMMS, same.
Also sometimes recording is fast and then slows down…etc. Not perfect though, but it at least works
Would you know what would above stream error message be about? (something with my players?)
After this one I believe I won’t bother you any more
Matjaz
Posted on Sunday, July 16, 2006 @ 13:50 CDT
sHi David,
I think I got it now. I recored conversation in .wav format so only players which can handle .wav files properly play it well, for ex. Real Play and MMovie Player perform properly. Totem and XMMS give stream error towards the end.
I suppose later two will play well the ogg files. Have to check that.
Thanks. :))
M
Posted on Wednesday, July 19, 2006 @ 13:35 CDT
Sorry for the delay Matjaz. I’ve had a busy couple days.
I haven’t been able to reproduce the problem you are having yet. Do you have the same problem with mp3s encoded with lame? Or is it just ogg and wav?
Posted on Thursday, July 20, 2006 @ 16:38 CDT
Hi Daniel,
No worries, have been busy myself too.
I solved the problem with not replaying recorded sound file to the end. It was just a matter of using .wav type of players for .wav and .ogg type of players for .ogg files. Then it works fine.
Speeded up and sometimes scratchy voice still seem to be there. Degree of that noise varies whether I speak loud and fast or slow and not too loud. Would you if volume and audio controls change that?
I changed the configuration (in skype-rec.rc) to mp3 but recorded sound files came out in .wav??? And the quality was not as good I think. It is possible that I don’t have mp3/ lame files installed, will check that.
Well, I’m okay with reasonably .wav and .ogg sound.
Another thing is that I managed to record also with ALSA on, not OSS. Sound quality was little worse but it recorded. Same experience?
Thanks. See ya.
M
Posted on Thursday, July 20, 2006 @ 18:21 CDT
Glad to hear that it does work on ALSA. I still haven’t managed to get it to do that yet. As to sound quality connected to the speed of your voice I haven’t encountered that. I occasionally get distortion, but it was distortion that naturally occured during the Skype call, so there may be something screwy there with the beta’s performance. I know I just built a new computer and while the beta ran awesome before, it’s giving me some flack now.
As to recording in mp3, after you do the initial copy to your home directory, any changes to the configuration need to be made to
~/.skype-recfor the script to detect them. You’ll need LAME for that, which you probably already have. Try typing lame in a terminal. If it asks you for extra options, then you’ve got it. Otherwise:$ sudo apt-get install lame.Good luck and happy skyping!
Posted on Saturday, July 22, 2006 @ 08:48 CDT
Hi Daniel,
Yeah. After EVERY change of sound format (.wav, .ogg etc.) you need to copy file to ~/.skype-rec.
(I didn’t do that, I thought copying at the beginning and the only changing $ENC_TYPE in skype-rec.rc is enough. Wrong!)
Sound is pretty okay I think. Schratchyness and speeded up voice come occasionally. I’ll let you know if noise become too disturbing and then we can have a look then. But for now generally it works pretty good
Thanks and see you around.
PS: Cool blog you have.
Matjaz
Posted on Wednesday, August 9, 2006 @ 22:02 CDT
Boy I’d like to get this to work, but Skype beta only works with ALSA. The new record script only produces zero length .au files (which it doesn’t clean up I might add). No errors are shown. Suggestions? The forums at the source forge site look dead…
Posted on Wednesday, August 9, 2006 @ 22:30 CDT
Hmm, as yet I haven’t been successful in recording Skype via ALSA, although Matjaz above has. It could be that I haven’t tinkered enough.
Skype beta does have an OSS mode, though. You might want to check that you’ve got alsa properly configured for OSS emulation.
Failing that, what distribution and sound servers are you running?
Posted on Saturday, August 12, 2006 @ 13:18 CDT
I’m having a problem where the library compiles and installs successfully, and I edit ~/.skype-rec and change $SKYPE_REC to the path of the library and it does this:
$ ./skype-rec Starting file conversion process… Running skype… ERROR: ld.so: object ‘libskype-rec.so’ from LD_PRELOAD cannot be preloaded: ignored. Please wait while conversion process finishes..
Skype still starts, but skype-rec doesn’t record anything.
It does
Posted on Saturday, August 12, 2006 @ 13:23 CDT
BTW, here are my system’s specs:
Linux bling 2.6.15-gentoo-r1 #7 SMP Sat May 6 19:00:04 MDT 2006 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux
sox-12.17.9 vsound-0.6 lame-3.97_beta2
Posted on Saturday, August 12, 2006 @ 13:24 CDT
Oh yeah, and skype-1.3.0.30-r1
Posted on Sunday, August 13, 2006 @ 11:20 CDT
Sometimes you have to explicitly tell the script that the
libskype-rec.sois in/usr/lib/libskype-rec.so. Otherwise it will ignore it. Also, try it with Skype in OSS mode.I should note that this script worked great on my other Gentoo system, but on my new machine I’m also having some problems. I’m working on a fix, which might turn out to be an alternative script. However, the skype-rec script should work on the majority of systems.
EDIT: The issue with ALSA recording is that the skype-rec script uses a library based off of vsound, which intercepts and records sound traffic connecting to
/dev/dsp, which is the OSS device. So, depending on how Skype 1.3 is accessing the sound system, it may not be using/dev/dspat all. You could try setting up an alternative virtual sound device under OSS emulation according to instructions in the Gentoo Wiki, and then try using Skype dsp hijacker to force Skype to use that device. I haven’t had a chance to try that yet, but you could give it a shot.Unfortunately, I’ve also heard that some of these Skype recording libraries haven’t had great success rates under AMD64 distributions, so you might be stuck for now. I’m hoping that either I or someone else can come up with a purely ALSA solution soon.
Posted on Friday, August 18, 2006 @ 19:10 CDT
Hi,
Once skype recording worked with ALSA (Ubuntu 6.06). But I believe it was when I was still configuring recording scripts. I don’t get that any more. It works smoothly with OSS.
Why not trying with OSS, initially it was said that recording only works in OSS.
I’m using Ubuntu, wouldn’t be sure 100% for Gentoo.
PS: Yep I heard too about problems when having AMD processor… PS2: My friend still uses older skype…version below 1.2 I think and his reordings are superb also in sound quality…(interesting eh?)
Good luck!
Posted on Thursday, September 14, 2006 @ 03:02 CDT
Hi all!! I managed to get the script working when it has to mix the local and remote audio files… It was a problem with sox which stops with an error because can’t recognize the extension of the target file… anyway… I had never seen perl before but with the aid of google I managed to make it work… Of course the perl modifications comes from a very beginner programmer (me!)
You can download (for a few weeks) the skype-rec file at
http://www.science.unitn.it/~flego/skype/
Cheers,
Ico.
Posted on Thursday, September 14, 2006 @ 08:08 CDT
Thanks for the contribution, Federico!
Posted on Sunday, October 1, 2006 @ 21:57 CDT
Is there a way to make this record in stereo? I know normally that makes the file size huge, but I am wondering for the purpose of being able to adjust levels on the two tracks separately if one is way off.
I just found this today and am very excited about using it. I am still using the Skype 1.2.something stable version. Would you highly recommend I move up to beta? I don’t use Skype hardly at all. My interest is for a new podcast I am considering. So I want a good tool that is stable.
Posted on Monday, October 2, 2006 @ 11:50 CDT
Honestly, I don’t know if there is much to the Skype beta that you need unless you are hankering for ALSA support. Supposedly the current Skype-rec at Sourceforge will
Posted on Monday, October 2, 2006 @ 11:53 CDT
To be honest, I’ve been so busy lately I haven’t messed with Skype or even chatted on Gaim in the last month or two. I’m hoping I’ll have more time to play with this stuff in the near future.
Posted on Monday, October 2, 2006 @ 20:59 CDT
Great! Thanks for the tutorial and the pointer to the sourceforge version. That does exactly what I am looking for. I will hold off on moving up to the Beta version as this seems to give me everything I need.
Thanks again.
Posted on Thursday, November 2, 2006 @ 14:10 CST
Hi
When I installed your script and run I got error:
Directory /my_home_dir/.skype-rec not allowed in require at /usr/bin/skype-rec line 32.
I changed 32. line in skype-rec file:
require $ENV{‘HOME’}.”/.skype-rec/skype-rec.rc”;
and it works!! P.S. I write (in polish language) article about your script. It will be in www.linux-muzyka.ixion.pl. I use your script to lern foreign language. Thanks a lot.
Posted on Monday, November 6, 2006 @ 19:56 CST
Glad it worked for you fieloryb! However, I should point out that I didn’t write the script, I’m just publicizing it.
Posted on Wednesday, November 29, 2006 @ 08:20 CST
I’m running Ubuntu Edgy 64-bit and Skype 1.3.0.53 and this isn’t working for me. I’m getting the following error:
$:~/skype-rec-kraken$ ./skype-rec Running skype… ERROR: ld.so: object ‘/home/fs/skype-rec-kraken/libskype-rec.so’ from LD_PRELOAD cannot be preloaded: ignored. No conversations to convert
(Basically the same as the one described above by deadsouls.)
I did find a workaround for recording here: http://porpoisehead.net/hi/?q=node/23
It’s using the ALSA mixer and Gnome’s sound recorder so it’s not as streamlined as just launching this script would be but it’s getting the job done for now.
Posted on Wednesday, March 28, 2007 @ 11:59 CDT
Any idea how to make it work under 1.3.0.53, don’t think its a beta. I have tried both versions of the script, in all combinations of alsa mode, and stereo settings etc, I dont get any errors, but I dont get any output files either. All programs like oggenc are installed.
Any ideas?
Posted on Wednesday, March 28, 2007 @ 12:21 CDT
Have you tried using the workaround that fs linked to? I haven’t had any time lately to play with this script, but it seems a straightforward alsa recording would make just as much sense. This script was primarily needed to record on Skype when it still used oss.
I’m sure it can be scripted as well, but I haven’t had a chance to work on it. Try the workaround for the time being and maybe some enterprising soul will slap a script together. I might even figure it out myself, if I can find the time.
Posted on Friday, March 30, 2007 @ 06:28 CDT
[…] I hvertfall er dette spilt inn ved at Gunnar, som sitter i Oslo, og Jacob i Steinkjer har tatt opp en Skypesamtale ved hjelp av noe som heter skype-rec. Dette er videre støyrenset (tro det eller ei), mikset og re-enkodet i Audacity. Og sånn ble det nå altså. […]
Posted on Monday, March 3, 2008 @ 14:55 CST
I downloaded the OSS version (1.4.0.118-oss) and tried to use the skype-rec script, but it didn’t work.
I tried several combinations of changes, in both /usr/bin/skype-rec and $HOME/.skype-rec/skype-rec.rc, like…
…and so on.
But nothing seems to be recording. And the .au files that are generated are all 1048 or 0 bytes. I get many of these errors:
Anyways, the script is not working for me.
Posted on Thursday, March 6, 2008 @ 10:26 CST
@De Jonge I’m sorry to hear that.
I haven’t had any luck since I switched to x86_64 Linux, so I can’t really provide much help on this front anymore. I didn’t write the script, I just used it for a long time. I think we’re at the point where we need a brand new solution. I haven’t had time to work on one as yet, I’m too busy with other projects, but I’m keeping an eye out for new solutions.