Regarding the link -
http://programmablebrain.us/wiki/index.php?title=HOWTO:Record_a_Skype_Conversation/Linux
- That solution relies on having a sound device that provides a
capture stream which can include the sound being sent to the speakers,
which my USB headphones do not.
However, I have found a solution to my problem, using the pipes
suggestion earlier in the thread, it just took me a while to work out
how to keep the encoders going despite the fact that Skype causes the
pipes to be opened and closed several times during startup.
Thanks to everyone that contributed to the thread, my .asoundrc and
the script I use to start recording follow:
.asoundrc:
##########################################
# The headset speaker mix
pcm.headset_speakers {
ipc_key 1025
type dmix
slave {
pcm "hw:Headset,0"
rate 44100
channels 1
}
}
# The headset microphone capture
pcm.headset_microphone {
ipc_key 1027
type dsnoop
slave {
pcm "hw:Headset,0"
rate 44100
}
}
# File output for the headset speaker mix
pcm.headset_speaker_file {
type file
slave.pcm "headset_speakers"
file "/home/username/skype/speakers"
}
# File output for the headset microphone capture
pcm.headset_microphone_file {
type file
slave.pcm "headset_microphone"
file "/home/username/skype/microphone"
}
# Unified device combining microphone and speakers from headset
pcm.recorded_headset {
type asym
playback.pcm "headset_speaker_file"
capture.pcm "headset_microphone_file"
}
# Converter to allow unified headset device to accept a range of formats
# Use this as the audio device in ALSA
pcm.converted_recorded_headset {
type plug
slave.pcm "recorded_headset"
}
# A ctl device for the converter
ctl.converted_recorded_headset {
type hw
card Headset
}
##########################################
start script:
##########################################
#!/bin/bash
### Settings ###
podcasting_home=/home/username/skype
speaker_filename=speakers
microphone_filename=microphone
ogg_quality=8
raw_rate=44100
recordings_dir=recordings
### Script ###
date_stamp=`date +%Y%m%d%H%M%S`
cd $podcasting_home
rm -f $speaker_filename
rm -f $microphone_filename
mkfifo $speaker_filename
mkfifo $microphone_filename
sleep 999d > $speaker_filename &
speaker_pid=$!
sleep 999d > $microphone_filename &
microphone_pid=$!
oggenc -Q -r -B 16 -C 1 -R $raw_rate -q $ogg_quality -o
$recordings_dir/$date_stamp-s.ogg $speaker_filename &
oggenc -Q -r -B 16 -C 1 -R $raw_rate -q $ogg_quality -o
$recordings_dir/$date_stamp-m.ogg $microphone_filename &
echo Starting Skype, recording files with timestamp: $date_stamp
skype &> /dev/null
kill -hup $speaker_pid
kill -hup $microphone_pid
rm -f $speaker_filename
rm -f $microphone_filename
##########################################
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user