Need to change loudness of a mp3 file using ruby script

I need to change the loudness of a mp3 file using mp3gain.I am toatally
helpless how to do that. How to fetch a file in ruby program and then
set the loudness.

Subject: Need to change loudness of a mp3 file using ruby script
Date: gio 21 mar 13 04:47:35 +0900

Quoting chandan mallik ([email protected]):

I need to change the loudness of a mp3 file using mp3gain.I am toatally
helpless how to do that. How to fetch a file in ruby program and then
set the loudness.

This means that you have to learn how to use Ruby. You should dedicate
some time to a good tutorial. You will certainly learn how to execute
external programs from a Ruby script.

If you post your attempts, and the eventual error messages, chances
are you will receive useful suggestions/corrections.

Carlo

Carlo E. Prelz wrote in post #1102552:

Subject: Need to change loudness of a mp3 file using ruby script
Date: gio 21 mar 13 04:47:35 +0900

Quoting chandan mallik ([email protected]):

I need to change the loudness of a mp3 file using mp3gain.I am toatally
helpless how to do that. How to fetch a file in ruby program and then
set the loudness.

This means that you have to learn how to use Ruby. You should dedicate
some time to a good tutorial. You will certainly learn how to execute
external programs from a Ruby script.

If you post your attempts, and the eventual error messages, chances
are you will receive useful suggestions/corrections.

Carlo
Thanks Carlo

But I know how to execute a mp3 file using ruby script and I am able to
set the loudness too using this script
path = “/home/cis/Desktop/ *mp3”
system("mp3gain -c -p -r -d 4.0 "+path)

but what I want is the loudness should be same for all .mp3 files and
that is not coming. I want the loudness to be 93dB.If Anyone can do that
please help me with this.

Subject: Re: Need to change loudness of a mp3 file using ruby script
Date: gio 21 mar 13 10:35:05 +0900

Quoting chandan mallik ([email protected]):

But I know how to execute a mp3 file using ruby script and I am able to
set the loudness too using this script
path = “/home/cis/Desktop/ *mp3”
system("mp3gain -c -p -r -d 4.0 "+path)

but what I want is the loudness should be same for all .mp3 files and
that is not coming. I want the loudness to be 93dB.If Anyone can do that

This has practically nothing to do with Ruby. You should knock at some
audio specialist forum. I used Sox to obtain something of that sort
(roughly having all my Ogg files with a similar loudness), but 93db?
No idea.

Carlo

Thanks Carlo. BTW I found the solution and have successfully
implemented it.

Would you mind sharing the main gist of your solution for future hopeful
searchers?

On Fri, Mar 22, 2013 at 5:03 AM, chandan mallik
[email protected]wrote:

Thanks Carlo. BTW I found the solution and have successfully
implemented it.

Hi Josh,

On 22/03/13 23:38, Josh C. wrote:

On Fri, Mar 22, 2013 at 5:03 AM, chandan mallik <[email protected]
mailto:[email protected]> wrote:

Thanks Carlo. BTW I found the solution and have successfully
implemented it.

xkcd: Wisdom of the Ancients

Thanks- that gave me a good laugh.

Cheers,
Garth