Closed Thread
Thread Tools
Posts: 81 | Thanked: 115 times | Joined on Jan 2008
#41
Happy Holidays, everyone!

Here is my Holiday gift: A method for recording calls from the device!

note: it will require command line tinkering.

I got the idea and most of the information thanks to the blog link which dalonso posted here.

First you will need to get the pulseaudio-utils package either from here , or you can enable the tools repository and run
Code:
apt-get install pulseaudio-utils
there is a link to a single-click install file to add the tools repo here .

The pulseaudio-utils package provides two apps which I use in the scripts: 'parec' to record raw audio streams, and 'pacat' to play back raw audio streams.

The streams involved are: 'sink.hw0.monitor' for incoming sounds and 'source.hw0' for outgoing sounds when using the phone handset, and 'sink.hw1.monitor' for incoming and 'source.hw0' for outgoing when using a bluetooth headset.

In my home directory I created a few simple scripts for recording

for recording while using the handset, I have a script 'simpleRec.sh':
Code:
NOW=`date +%F-%H-%M-%S` 
echo $NOW > simpleDateTime
parec -d "sink.hw0.monitor" > MyDocs/tmp/$NOW.pulse.in.raw &
parec -d "source.hw0" > MyDocs/tmp/$NOW.pulse.out.raw
for recording while using bluetooth, I have a script 'simpleBtRec.sh':
Code:
NOW=`date +%F-%H-%M-%S` 
echo $NOW > simpleDateTime
parec -d "sink.hw1.monitor" > MyDocs/tmp/$NOW.pulse.in.raw &
parec -d "source.hw1" > MyDocs/tmp/$NOW.pulse.out.raw
To play back the most recent recorded call 'simpleLastPlay.sh' :
Code:
LAST=`cat simpleDateTime`
pacat MyDocs/tmp/$LAST.pulse.in.raw &
pacat -v MyDocs/tmp/$LAST.pulse.out.raw
To play back an older call using a unique date or time 'simplePlay.sh' :
Code:
pacat MyDocs/tmp/*$1*pulse.in.raw &
pacat -v MyDocs/tmp/*$1*pulse.out.raw
for example if you know you recorded a call on Dec 1 at 12:00 am, you could run ' ./simplePlay.sh 12-01-00-00 ' or any part of the date or time that you can remember, as long as it is unique.

To stop recording or playback just press ctrl+c.

Another script I made to stop any recording or playback if you can't get back to its original terminal window 'simpleStop.sh' :
Code:
killall parec
killall pacat

Final note: Please use it only where it is legal to do so, and please do not use it for any nefarious purpose. Enjoy!
 

The Following 28 Users Say Thank You to iKneaDough For This Useful Post:
Posts: 21 | Thanked: 15 times | Joined on Dec 2009 @ Finland
#42
Excellent work iKneaDough!
 

The Following 3 Users Say Thank You to JuhS For This Useful Post:
Texrat's Avatar
Posts: 11,700 | Thanked: 10,045 times | Joined on Jun 2006 @ North Texas, USA
#43
Originally Posted by pelago View Post
I've taken pity on xyberx and created a Brainstorm idea for him (first Brainstorm idea I've created, so I hope I've done it right), see http://maemo.org/community/brainstor...all_recording/. I'm not trying to steal karma from xyberx, so feel free to transfer ownership of this to him. I'll let other people add their potential solutions, as Brainstorm was too slow for me to be bothered.
The process is still new and under constant refinement. Acceleration suggestions welcome.

EDIT: ah, you were probably referring to the server response issues. Progress being made there, too.
__________________
Nokia Developer Champion
Different <> Wrong | Listen - Judgment = Progress | People + Trust = Success
My personal site: http://texrat.net
 

The Following User Says Thank You to Texrat For This Useful Post:
maya's Avatar
Posts: 141 | Thanked: 5 times | Joined on Dec 2009 @ Brasil
#44
some progress?
 
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#45
iKneaDough, Thank you very much for the scripts!

Someone knows how this raw sound file can be converted to a known type, like wav or ogg?
 

The Following User Says Thank You to omeriko9 For This Useful Post:
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,019 times | Joined on Sep 2009 @ Germany
#46
xyberx, would you mind adding the brainstorm-link to the starting post (please)...
 
Posts: 39 | Thanked: 3 times | Joined on Jan 2010
#47
Ive used this on my N82 as it is the best app on my old phone. So good for recalling back what someone has said.

Email the developer (support@fingertip-access.com) and ask for it, I know I have.

http://www.fingertip-access.com/product_ver_1.html
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2010
#48
The main reason why I'm not changing my N95 is precisely the fact that I have a very good call recording app on it (Total Recall from Killer mobile). Until the n900 gets one, I won't change my phone.

I would like to buy either a n900 or a nexus one. Depending on which one gets a call recorder first.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#49
Well.. now that the underlying hard work is done.. shouldn't be too hard to wrap those scripts into a deb file and create shortcuts/menu.desktop items for them.

All that's really left is for a UI designer to create a good looking UI for people and a deb build to put it all together. Being that you can see the actual commands being used in the scripts (obviously) - then it can be directly coded into a QT app with system calls.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Posts: 168 | Thanked: 265 times | Joined on Oct 2009 @ London, UK
#50
Originally Posted by iKneaDough View Post
Happy Holidays, everyone!

Here is my Holiday gift: A method for recording calls from the device!

note: it will require command line tinkering.

I got the idea and most of the information thanks to the blog link which dalonso posted here.

First you will need to get the pulseaudio-utils package either from here , or you can enable the tools repository and run
Code:
apt-get install pulseaudio-utils
there is a link to a single-click install file to add the tools repo here .

The pulseaudio-utils package provides two apps which I use in the scripts: 'parec' to record raw audio streams, and 'pacat' to play back raw audio streams.

The streams involved are: 'sink.hw0.monitor' for incoming sounds and 'source.hw0' for outgoing sounds when using the phone handset, and 'sink.hw1.monitor' for incoming and 'source.hw0' for outgoing when using a bluetooth headset.

In my home directory I created a few simple scripts for recording

for recording while using the handset, I have a script 'simpleRec.sh':
Code:
NOW=`date +%F-%H-%M-%S` 
echo $NOW > simpleDateTime
parec -d "sink.hw0.monitor" > MyDocs/tmp/$NOW.pulse.in.raw &
parec -d "source.hw0" > MyDocs/tmp/$NOW.pulse.out.raw
for recording while using bluetooth, I have a script 'simpleBtRec.sh':
Code:
NOW=`date +%F-%H-%M-%S` 
echo $NOW > simpleDateTime
parec -d "sink.hw1.monitor" > MyDocs/tmp/$NOW.pulse.in.raw &
parec -d "source.hw1" > MyDocs/tmp/$NOW.pulse.out.raw
To play back the most recent recorded call 'simpleLastPlay.sh' :
Code:
LAST=`cat simpleDateTime`
pacat MyDocs/tmp/$LAST.pulse.in.raw &
pacat -v MyDocs/tmp/$LAST.pulse.out.raw
To play back an older call using a unique date or time 'simplePlay.sh' :
Code:
pacat MyDocs/tmp/*$1*pulse.in.raw &
pacat -v MyDocs/tmp/*$1*pulse.out.raw
for example if you know you recorded a call on Dec 1 at 12:00 am, you could run ' ./simplePlay.sh 12-01-00-00 ' or any part of the date or time that you can remember, as long as it is unique.

To stop recording or playback just press ctrl+c.

Another script I made to stop any recording or playback if you can't get back to its original terminal window 'simpleStop.sh' :
Code:
killall parec
killall pacat

Final note: Please use it only where it is legal to do so, and please do not use it for any nefarious purpose. Enjoy!
For recording, you can do:

gst-launch adder name=a ! wavenc ! filesink location=blah.wav pulsesrc device=sink.hw0.monitor ! queue ! a. pulsesrc device=source.hw0 ! queue ! a
 

The Following 5 Users Say Thank You to zaheerm For This Useful Post:
Closed Thread


 
Forum Jump


All times are GMT. The time now is 08:47.