SPIKE | 4 Oct 2006 16:16
Favicon

Conversion issue

Hi All.
 
    I did some conversions of 8 Bit 8K uLaw wave files to .GSM  to use with my Asterisk PBX and although they converted ok (without errors) there is now a click at the beginning and end of each file.
Any ideas? I used the SoX utility on my newly installed Fedora Core 5 box.

Thanks in advance!

Pikk

PS. I am a novice Linux /Atserisk user.
 

--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.1.406 / Virus Database: 268.12.5/450 - Release Date: 9/18/2006

-------------------------------------------------------------------------
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
Matthew Robinson | 4 Oct 2006 16:33

Conversion From 8khz, 16 bit, Mono WAV to 8khz/8bit/mono WAV

Hi,

I'm trying to convert from 8khz, 16 bit, Mono WAV to 8khz/8bit/mono WAV. 
Ive read the manpage, and google, but can't work it out. Any suggestions?

Thanks,
Matt

-------------------------------------------------------------------------
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
Daniel Smyth | 2 Oct 2006 03:37
Picon

convert to MIDI

I'm looking for advice about converting mp3( or ACC) to MIDI.

I'm on MacOSX and I'm looking for a utility (preferably free) to
convert mp3 or ACC to MIDI to upload to a Roland FP digital piano.
Your assistance is appreciated. Thank you.

-- dpsmyth <at> gmail.com

-------------------------------------------------------------------------
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
Gudjon I. Gudjonsson | 4 Oct 2006 23:40
Picon
Picon

-fPIC option + amd64

Hi
   I was trying to build mlt on amd64 but it failed because sox is not built 
with the -fPIC option. After adding -fPIC to the CFLAGS option in the 
configure file everything works perfectly. 
   Could you please add this option to the original configure file? Or is 
there something wrong with that (something I don't understand)? I searched 
through the archives before posting this but did not find anything.

Regards
Gudjon

-------------------------------------------------------------------------
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
Matthew Robinson | 6 Oct 2006 10:15

Re: Conversion From 8khz, 16 bit, Mono WAV to 8khz/8bit/mono WAV

thegraymasquerade wrote:
telephony, right? so I'm assuming you need u-law?

if so: sox foo1.wav -r 8000 -U foo2.wav

It will be a u-law file, but it will be 8 bit.

-db-

On Oct 4, 2006, at 7:33 AM, Matthew Robinson wrote:

On the kit we are using, -b -u works fine. Is there any advantage to using u-law, if it is also supported?
-------------------------------------------------------------------------
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
Jan Paul Schmidt | 7 Oct 2006 21:35

Wrong CVS address on Homepage

Hi there,

while using a new box for checking out sox, I noticed that the CVS
instructions on the homepage are wrong.

Instead of 

    cvs -d :pserver:anonymous <at> cvs.sourceforge.net:/cvsroot/sox login
    cvs -z3 -d :pserver:anonymous <at> cvs.sourceforge.net:/cvsroot/sox co sox

it should be

    cvs -d :pserver:anonymous <at> sox.cvs.sourceforge.net:/cvsroot/sox login
    cvs -z3 -d :pserver:anonymous <at> sox.cvs.sourceforge.net:/cvsroot/sox co sox

To avoid further confusion I would recommend to fix it ;o)

jps

-------------------------------------------------------------------------
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
D. S. | 10 Oct 2006 21:40
Picon

compiling Cygwin sox-12.18.2

I was able to comple sox-12.18.2 under Cygwin with all the goodies.

Before compiling sox, I compiled and installed, libogg-1.1.3,
libvorbis-1.1.2, libmad-0.15.1b, lame-3.97b2 (for mp3), and
libao-0.8.5.tar.gz (oss).

For a Cygwin -compatible binary (needs cygwin1.dll) I did the following.

configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib
-L/usr/local/lib/ao/plugins-2" --enable-oss-dsp

Then, editing src/stconfig.h :

   #define HAVE_OSS 1

   #define *_SOUNDCARD_H to 1  (two of them)

(You may need to copy /usr/include/linux/soundcard.h from a linux box to
 /usr/include/machine/soundcard.h under Cygwin)

I took out instances of -mno-cygwin from src/Makefile  and
src/libgsm/Makefile. (Since I do want it to use cygwin1.dll for a
Cygwin sox binary)  Also in src/Makefile, I set NEED_OSS to 1

Voila!

Me <at> MY_XP ~/sox/sox-12.18.2
$ src/sox -V
src/sox: Version 12.18.2
. . .
Supported file formats: aiff al au auto avr cdr cvs dat vms gsm hcom
la lu maud mp3 nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw ub
ul uw voc vorbis vox wav wve
. . .

-------------------------------------------------------------------------
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
Jason Lynch | 13 Oct 2006 02:31

[RFC/PATCH] Initial FLAC Support

This is my initial attempt at FLAC support in SoX. Keep in mind that
this is the first time I've written anything for either SoX or using the
FLAC library. However, I needed FLAC support in SoX for another
application, and thus I worked on this patch.

Right now, I'm more or less requesting comments. While it seems to work
well for my limited use case, I'm sure there are nasty bugs waiting to
be discovered. In particular, it may not handle FLAC errors very well,
and for all I know, it may violate some SoX coding standard or
convention. In addition, there are a few remaining TODO or FIXME style
comments that indicate things that I believe may need completion or fixing.

With any luck, the patch wasn't mangled in the process. After applying
it, the configure script needs to be regenerated.

Jason

Attachment (sox-flac.patch): text/x-patch, 14 KiB
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
Silas S. Brown | 11 Oct 2006 14:30
Picon
Picon
Favicon

sox: Patch for Psion .prc format

Hi,

Apologies if I sent this to the wrong place.
The following patch fixes a small bug in sox's
writing of .prc files, and there's also a
workaround for the Psion 7 "click" problem.

The existing code writes the length field as a
2-byte word.  It is actually a 4-byte double
word.  If you treat it as a 2-byte word then any
sound longer than 8.2 seconds is truncated to an
arbitrary length less than that (because EPOC
ignores any bytes in the file after the length).
This patch gets sox to write the correct 4-byte
length field, so that longer sounds can work.

-----------cut here--------------------------
--- old-prc.c	2006-10-11 12:24:44.000000000 +0100
+++ sox-12.18.2/src/prc.c	2006-10-11 12:27:40.000000000 +0100
 <at>  <at>  -198,16 +198,15  <at>  <at> 

 static void prcwriteheader(ft_t ft)
 {
-  char nullbuf[15];
+  char nullbuf[12];
   prc_t p = (prc_t ) ft->priv;

   st_report("Final length=%d",p->length);
-  memset(nullbuf,0,14);
+  memset(nullbuf,0,12);
   st_writebuf(ft, header, 1, sizeof(header));
-  st_writew(ft, p->length);
-  st_writebuf(ft, nullbuf,1,14);
-  st_writew(ft, p->length);
-  st_writebuf(ft, nullbuf,1,2);
+  st_writedw(ft, p->length);
+  st_writebuf(ft, nullbuf,1,12);
+  st_writedw(ft, p->length);
 }

 /* Psion .prc */
-----------cut here--------------------------

(Note that it is not necessary to dimension
'nullbuf' to 1 more than the number of bytes you
want, as it is not a string with a terminator.)

On the subject of Psion .PRC files, the Psion
Series 7 is famous for making spurious "click"
noises at the end of sounds and between repeats.
(This bug is not present in the Psion Revo.)
I have found by experimenting that these "click"
noises can be eliminated by adding 8 samples of
absolute silence to the end of the file.  (Fewer
than 8 sometimes works too, but 8 always works.)

Below is a Python function to (a) fix incorrect
length fields in any PRC file and (b) optionally
add the 8 samples of silence if not already present.
(This is nothing to do with sox, but I might as
well mention it.  If you use it, you won't need
the above patch.)

-----------cut here--------------------------
def fix_prc_length(filename, also_fix_psion7_click = True):
    d=open(filename).read()
    if also_fix_psion7_click:
        while not d.endswith('\xd5'*8): d+='\xd5'
    l=len(d)-72; l=chr(l&0xFF)+chr(l>>8&0xFF)+chr(l>>16&0xFF)+chr(l>>24&0xFF)
    open(filename,'wb').write(d[:52]+l+d[56:68]+l+d[72:])
-----------cut here--------------------------

Best wishes.      Silas

--

-- 
Silas S Brown, Computer Lab Cambridge UK http://www.cus.cam.ac.uk/~ssb22

"He that is wise keeps it calm to the last." - Proverbs 29:11

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
alain mangeard | 17 Oct 2006 18:32

silence

Hi
 
I have tried to use the silence option of sox and it seems to work very well. :)) Thanks a lot to everybody who has worked on this software.
 
I would like just to know if it is possible to easly get the time codes (start time and end time) of every removed parts?
 
Thanks you in advance.
 
alm
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

Gmane