PDA

View Full Version : How to extract audio from Voice Recording?


sendtojamesj
08-08-2007, 12:53 PM
Hi guys :)

Sorry for asking a noob question, but exactly what should I type in the terminal under SSH to extract a recorded audio file from Voice Recorder, if the file was told to be saved in: /var/root/Media/VoiceRecordings/FILENAME ??

Is there any better solution to import recorded voice files from the iPhone to my Mac/PC...?

And how can I view all the voice file contents present in the folder at a glance (under terminal)...?

mb2696
08-08-2007, 03:27 PM
you can use scp/sftp or getfile with iphuc to transfer it to your computer. quicktime can play the files.

if you have osx or other *nix (or some win scp), open up terminal and do:

scp root@iPHONE_IP_ADDRESS:/var/root/Media/VoiceRecordings/FILENAME /DESIRED/LOCAL/DIRECTORY

otherwise you can use getfile or open up an sftp client and drag/drop. those options assume you correctly setup scp/sftp on your phone. if not, the easiest option would be to use getfile with iPhoneInterface/iPHUC.

and yes, use terminal to view files. open terminal and do:

cd /var/root/Media/VoiceRecordings
ls

Joe.lipinski
08-08-2007, 04:02 PM
Mac:
You can probably make an applescript or use automator to automate it so that you just have to type in the file name and it gets the file for you and saves it to a directory that you specify

Windows:
Use a .bat file to copy all files in the directory to a specific folder on your computer.

I am not sure if either of these methods would work but I think they should.

sendtojamesj
08-09-2007, 02:12 PM
Hi again,

I just tried mb2696's suggestion using scp command (because sftp and getfile commands are not recognised on my mac), but all it shows is this:

<.2:/var/root/Media/VoiceRecordings/1186607362/desktop
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 [...] [[user@]host2:]file2

No file was transferred to my desktop. Even when I omitted "desktop" as local directory destination and end the command with the filename, still showed the same as above.

Did I make a mistake here? What should I then do to extract them...?

And how can I delete voice files off the iPhone's folder by terminal?

By the way, the all file-viewing command worked great.. Thanks mb2696:)

mb2696
08-09-2007, 03:27 PM
sendtojamesj -

when the shell replies to a command with usage information (like you are showing), it usually means there was an error in the command. if you used correct syntax, i'm not sure why you are getting that. could you show the full string you typed? also, are you sure scp is setup on your phone? if you open terminal on the phone and type scp do you get usage info or' command not found'

also, getfile is part of the iphoneinterface/iPHUC. terminal won't recognize it, you need to run iphoneinterface or iPHUC to use that command.

you can remove files from the terminal with the rm command. ex: if you wanted to remove Sound1186607362.amr from the voicerecordings:

cd /var/root/Media/VoiceRecordings/
rm Sound1186607362.amr


also, http://iphone.natetrue.com/playaudio.tar can be used to playback the .amr files from the terminal on the iPhone. just untar it, scp the "playaudio" binary to your phones /usr/bin/ and chmod 555 it. then from the terminal you can do

cd /var/root/Media/VoiceRecordings/
playaudio Sound1186607362.amr