ramkumar.subramanian | 1 Dec 07:27 2006

Re: Help required on conversion

Thanks a lot. It works.

Ram

-----Original Message-----
From: David Graff [mailto:graff <at> ldc.upenn.edu] 
Sent: Thursday, November 30, 2006 9:50 PM
To: Ramkumar Subramanian (WT01 - IP-Multimedia Carrier & Ent Networks)
Cc: sox-users <at> lists.sourceforge.net
Subject: Re: [SoX-users] Help required on conversion 

Did you try this:

  sox my_pcm.wav -t wav -U my_ulaw.wav

Note that the "-t wav" says what type of header goes into the file, and
the "-U" (for u-law) says what sort of sample coding is used.

	Dave Graff

ramkumar.subramanian <at> wipro.com said:
> I have a microsoft wav file in PCM format. I need to convert it to 
> microsoft ulaw format wav file. If I give type au it converts to sun 
> format which is not what i want. I want ccitt ulaw as given on 
> supported formats in sox page

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
(Continue reading)

Maity, Omprakash | 1 Dec 11:55 2006

sox is slow while converting mp3 to wav49

Hi,

To convert a ~3.5 MB mp3 file to wav 49, it is taking around 2 minutes.

Also while running

sox <mp3 file> -e stat for a ~4.5 MB mp3 file, it is taking more than a minute.

Can you please suggest how to improve the performance of sox for these operations.

Thanks,
OPM

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
friedrich nietzsche | 2 Dec 09:02 2006
Picon

soxmix vox

Hi there,

soxmix seems not to support vox files (soxmix blah-in.vox blah-out.vox 
blah.vox). Is this true? Is there an alternative?

Thanks,

Jaap

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
John van der Vuurst | 7 Dec 20:54 2006
Picon

sox silence does not work for me... help wanted

Hi, 

I have some wav files containing recording from a radio scanner. 
It contains between the communication some (long) parts of silence. 

I want to reduce each part of silence longer than 5 seconds to 5
seconds. 

I try to do this with SoX and the option silence, but somehow I cannot
get it to work. 
I always end up with an output file exactly equal to the input file. 

To make it simpler I tried to remove all the silence from the files,
using the following command: 

     sox -V -t wav scanner00.wav -t wav test00.wav silence
0,0,10%,-1,0,0% 

Can anyone tell me how to get it to work? 

Some details from the version of SoX, my system and the files: 

I am using sox: Version 12.17.9 

I am running Fedora Core 5 on a AMD 64bit system with 2 Gb internal
memory. 
The files are: 

-rw-r--r-- 1 root root 57548227 Dec  4 23:43 scanner00.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 00:43 scanner01.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 01:43 scanner02.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 02:43 scanner03.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 03:43 scanner04.wav 
-rw-r--r-- 1 root root 57547886 Dec  5 04:43 scanner05.wav 
-rw-r--r-- 1 root root 57547545 Dec  5 05:43 scanner06.wav 
-rw-r--r-- 1 root root 57547886 Dec  5 06:43 scanner07.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 07:43 scanner08.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 08:43 scanner09.wav 
-rw-r--r-- 1 root root 57547886 Dec  5 09:43 scanner10.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 10:43 scanner11.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 11:43 scanner12.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 12:43 scanner13.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 13:43 scanner14.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 14:43 scanner15.wav 
-rw-r--r-- 1 root root 57548568 Dec  5 15:43 scanner16.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 16:43 scanner17.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 17:43 scanner18.wav 
-rw-r--r-- 1 root root 57547886 Dec  5 18:43 scanner19.wav 
-rw-r--r-- 1 root root 57547545 Dec  5 19:43 scanner20.wav 
-rw-r--r-- 1 root root 57548227 Dec  5 20:43 scanner21.wav 
-rw-r--r-- 1 root root 46456832 Dec  5 21:31 scanner22.wav 

And all have the following characteristics 

sox: WAV Chunk fmt 
sox: WAV Chunk data 
sox: Reading Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec 
sox:         16000 byte/sec, 1 block align, 8 bits/samp, 57548183 data
bytes 
sox:         57548183 Samps/chans 
sox: Input file scanner00.wav: using sample rate 16000 
        size bytes, encoding unsigned, 1 channel 
sox: Writing Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec 
sox:         16000 byte/sec, 1 block align, 8 bits/samp 
sox: Output file test00.wav: using sample rate 16000 
        size bytes, encoding unsigned, 1 channel 
sox: Output file: comment "Processed by SoX" 

sox: Finished writing Wave file, 57548183 data bytes 57548183 samples 

Thanks in advance! 

John van der Vuurst, The Netherlands

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Chris Bagwell | 8 Dec 03:54 2006

Re: sox silence does not work for me... help wanted

The silence effect will not do what your trying to do; although its a 
commonly requested feature.

The main problem is that once it detects 5 seconds, from your example, 
it will remove all silence.  Including the first 5 seconds it detected.

Chris

John van der Vuurst wrote:
> Hi, 
>
> I have some wav files containing recording from a radio scanner. 
> It contains between the communication some (long) parts of silence. 
>
> I want to reduce each part of silence longer than 5 seconds to 5
> seconds. 
>
> I try to do this with SoX and the option silence, but somehow I cannot
> get it to work. 
> I always end up with an output file exactly equal to the input file. 
>
> To make it simpler I tried to remove all the silence from the files,
> using the following command: 
>
>      sox -V -t wav scanner00.wav -t wav test00.wav silence
> 0,0,10%,-1,0,0% 
>
> Can anyone tell me how to get it to work? 
>
> Some details from the version of SoX, my system and the files: 
>
> I am using sox: Version 12.17.9 
>
> I am running Fedora Core 5 on a AMD 64bit system with 2 Gb internal
> memory. 
> The files are: 
>
> -rw-r--r-- 1 root root 57548227 Dec  4 23:43 scanner00.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 00:43 scanner01.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 01:43 scanner02.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 02:43 scanner03.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 03:43 scanner04.wav 
> -rw-r--r-- 1 root root 57547886 Dec  5 04:43 scanner05.wav 
> -rw-r--r-- 1 root root 57547545 Dec  5 05:43 scanner06.wav 
> -rw-r--r-- 1 root root 57547886 Dec  5 06:43 scanner07.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 07:43 scanner08.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 08:43 scanner09.wav 
> -rw-r--r-- 1 root root 57547886 Dec  5 09:43 scanner10.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 10:43 scanner11.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 11:43 scanner12.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 12:43 scanner13.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 13:43 scanner14.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 14:43 scanner15.wav 
> -rw-r--r-- 1 root root 57548568 Dec  5 15:43 scanner16.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 16:43 scanner17.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 17:43 scanner18.wav 
> -rw-r--r-- 1 root root 57547886 Dec  5 18:43 scanner19.wav 
> -rw-r--r-- 1 root root 57547545 Dec  5 19:43 scanner20.wav 
> -rw-r--r-- 1 root root 57548227 Dec  5 20:43 scanner21.wav 
> -rw-r--r-- 1 root root 46456832 Dec  5 21:31 scanner22.wav 
>
> And all have the following characteristics 
>
> sox: WAV Chunk fmt 
> sox: WAV Chunk data 
> sox: Reading Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec 
> sox:         16000 byte/sec, 1 block align, 8 bits/samp, 57548183 data
> bytes 
> sox:         57548183 Samps/chans 
> sox: Input file scanner00.wav: using sample rate 16000 
>         size bytes, encoding unsigned, 1 channel 
> sox: Writing Wave file: Microsoft PCM format, 1 channel, 16000 samp/sec 
> sox:         16000 byte/sec, 1 block align, 8 bits/samp 
> sox: Output file test00.wav: using sample rate 16000 
>         size bytes, encoding unsigned, 1 channel 
> sox: Output file: comment "Processed by SoX" 
>
> sox: Finished writing Wave file, 57548183 data bytes 57548183 samples 
>
>
> Thanks in advance! 
>
> John van der Vuurst, The Netherlands
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sox-users mailing list
> Sox-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Abhi Jain | 11 Dec 05:52 2006
Picon

Gets Error sox: error while loading shared libraries: libmp3lame.so.0:

Hi,

I'm using Red Hat Linux (RHEL 3). When I try to play a file using play 
command, or try to record a .wav file using rec utility command, I get the 
following error message
"sox: error while loading shared libraries: libmp3lame.so.0: cannot open 
shared object file: No such file or directory"

I have installed sox-12.18.2 but had older version of sox installed earlier.
Also I want to use the sox utility to convert a .vox file to .wav or .m3 
file format.
If there is an alternate way to convert the .vox file to any audible format 
that can be played, please let me know. I need it urgently for one of my 
projects.

Thanks in Advance.

Abhishek

_________________________________________________________________
Catch all the cricketing action right here. Live score, match reports, 
photos et al. http://content.msn.co.in/Sports/Cricket/Default.aspx

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Chris Bagwell | 19 Dec 03:58 2006

New Developer List

Hi all,

I thought I should email out that there is a new sox developer list.  
You can subscribe at https://lists.sourceforge.net/lists/listinfo/sox-devel

There are a couple of new developers on the SoX project and they are 
submitting patches left and right.  If your interested in developing 
SoX, you might head on over there (as well as check out CVS) and see 
whats going on.

Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Ken Smith | 19 Dec 00:36 2006
Picon

repeat

I have a question about the repeat effect but first here is my environment.

Darwin 8.8.0 (Mac OS X 10.4.8)
sox-12.18.2
  support libs (probably not interesting):
  lame-3.97
  libmad-0.15.1b

I basically want to loop a 10 second sample three times resulting in a
30 second sample.  here is the command line I'm using.

% sox infile.wav outfile.wav repeat 3

After this command outfile is 44 bytes long; it is presumably just the
WAV header.  Here is the result if I add the -S and -V global flags.

% sox -S -V infile.wav outfile.wav repeat 3
sox: Detected file format type: wav

sox: WAV Chunk fmt
sox: WAV Chunk data
sox: Reading Wave file: Microsoft PCM format, 1 channel, 11025 samp/sec
sox:         22050 byte/sec, 2 block align, 16 bits/samp, 220500 data bytes
sox:         110250 Samps/chans
sox: Input file infile.wav: using sample rate 11025
        size shorts, encoding signed (2's complement), 1 channel
sox: Writing Wave file: Microsoft PCM format, 1 channel, 11025 samp/sec
sox:         22050 byte/sec, 2 block align, 16 bits/samp
sox: Output file outfile.wav: using sample rate 11025
        size shorts, encoding signed (2's complement), 1 channel
sox: Output file: comment "Processed by SoX"

Input Filename : infile.wav
Sample Size    : 16-bits
Sample Encoding: signed (2's complement)
Channels       : 1
Sample Rate    : 11025

Time: 00:10.00 [00:00.00] of 00:10.00 ( 100.0%) Output Buffer:   0.00
sox: Finished writing Wave file, 0 data bytes 0 samples

Done.

The repeat effect seems straightforward enough but I must be using it
wrong.  Can you please tell me how I can achive what I am trying to
achieve?

I am not a list subscriber, so please include me explicitly in any responses.

  Thank you,
  Ken Smith

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Chris Bagwell | 20 Dec 05:00 2006

Re: repeat

Ken Smith wrote:
> I have a question about the repeat effect but first here is my environment.
>
>
> Darwin 8.8.0 (Mac OS X 10.4.8)
> sox-12.18.2
>   support libs (probably not interesting):
>   lame-3.97
>   libmad-0.15.1b
>
>
> The repeat effect seems straightforward enough but I must be using it
> wrong.  Can you please tell me how I can achive what I am trying to
> achieve?
>
> I am not a list subscriber, so please include me explicitly in any responses.
>
>   Thank you,
>   Ken Smith
>   
There is a really bad bug in 12.18.2 that makes the repeat effect (and 
any other that relies on draining effects) not work.  Its fixed in 
CVS... Alternatively, I could suggest a 1 line fix if you compiled sox 
yourself.

Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Pascal Giard | 20 Dec 06:08 2006
Picon

Re: repeat

On 12/19/06, Chris Bagwell <chris <at> cnpbagwell.com> wrote:
[...]
> There is a really bad bug in 12.18.2 that makes the repeat effect (and
> any other that relies on draining effects) not work.  Its fixed in
> CVS... Alternatively, I could suggest a 1 line fix if you compiled sox
> yourself.
>
> Chris

Hi Chris,
 i'm very interested in that oneliner as i would add it as a patch to
the Debian package. I consider this to be quite important.

-Pascal
--

-- 
Homepage (http://organact.mine.nu)
Debian GNU/Linux (http://www.debian.org)
École de technologie supérieure (http://www.etsmtl.ca)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane