LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2006, 05:20 PM   #1
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
How to reduce voice-audio file size?


I have a CD with a 45 minute speech on it. Since it's all voice and no music, is there a way to rip it, and strip the non-audible range to shrink the file size???

My goal is to reduce the filesize as much as possible.

Thanks for any suggestion.
 
Old 01-30-2006, 06:12 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
i suppose you can do some trials with lame or oggenc
lowering the bitrate and resampling frequency...check
the mans for other options such as lowpass, highpass, etc

you could also try a codec designed specifically for voice(eg speex)
 
Old 01-30-2006, 06:44 PM   #3
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I agree with Kodon. I found this website informative: http://jthz.com/mp3/
 
Old 01-31-2006, 03:13 PM   #4
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
Okay, I followed the site's instructions, but the filesize is a whopping 60MB mp3. It's a 45min speech.

Since it's just voice, should I expect to be able to somehow reduce the filesize dramatically to like <10MB without losing a whole log of voice quality?

I'm not too handy with audio manipulation commands (one of my weaknesses), so any suggestions would be very appreciated.

Thanks

Last edited by WindowBreaker; 01-31-2006 at 03:15 PM.
 
Old 01-31-2006, 03:33 PM   #5
agreenwood
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
What did you use as the lowpass setting? By dropping that number, you're effectively filtering off the top end of the audio frequency spectrum. If it is a male voice (deeper) then you may be able to drop that number below 10. this could dramatically reduce the file size. Drop it too far, though, and it could get nasty pretty quick.

Last edited by agreenwood; 01-31-2006 at 03:39 PM.
 
Old 01-31-2006, 03:38 PM   #6
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
I have a speech with a length of 378 minutes, on 6 cd-roms in wav-format. I ripped the speech with ogg-vorbis in a good quality (a lower quality is possible, may be there is no difference to hear it) to 190 MB.

This should be a file with about 10 MB in your case (length of the speech is 45 minutes) ...

Fluxx.
 
Old 01-31-2006, 06:13 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I agree with what agreenwood. You say you followed that site, but there are several different recommnedations. If you used the high quality ones, you are gonna get big files. Try the settings recommneded for netcasts.
 
Old 02-01-2006, 10:43 AM   #8
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Have a look at the Speex codec, which is designed for speech
 
Old 02-03-2006, 09:21 PM   #9
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
I get an hour long radio talk show down to about 7.4 MB with this:
Code:
lame -r -x -mj -s44.1 -V9 --vbr-new -q2 -b8 --lowpass 15 --cwlimit 10 -a --resample 16
check the lame man page for the details of each option. This is an FM broadcast, BTW, so it's relatively noise free. Noise may confuse the encoder and cause the variable bit rate to encode at a higher bitrate. Playing with the --lowpass number may cut out some or all of the noise as long as the noise is of a different frequency than the speech.

It can be made smaller than 7.4 MB, but the quality is too low for me. YMMV, but play with the options.
 
Old 02-04-2006, 09:09 AM   #10
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Original Poster
Rep: Reputation: 40
Phathead:
Thanks for the cmd, worked like a charm. It reduced the file from 60Mb to 6.5Mb!
Although my lame didn't recognize the --cwlimit option. That option is mentioned in the help, but not in the output of 'lame --morehelp'.

Thanks again buddy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reduce the size of root / alexf SUSE / openSUSE 5 10-10-2005 04:53 PM
help me reduce my OS size =/ xushi Slackware 29 12-01-2004 11:45 AM
how to reduce /proc size provkitir Debian 1 10-14-2004 10:56 PM
reduce the kernel image size further abirami Linux - Networking 1 10-05-2004 10:06 AM
How to reduce the size of bzImage hemk76 Linux - Networking 2 10-05-2004 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration