Re: [asterisk-users] sox convert gsm file

2015-09-23 Thread Steve Edwards

On Wed, 23 Sep 2015, Jerry Geis wrote:

If I use the rasterisk convert file method - that works and has PCM not 
GSM but I need to use sox.


Never been a fan of using a sledge hammer when a tack hammer will do.


How does one correctly convert gsm to wav for play in the browser?


I use:

sox\
input.xxx\
--bits=16\
--channels=1\
--encoding=signed-integer\
--rate=8000\
output.wav

Followed by a trip through:

normalize\
--amplitude=-22dB\
output.wav

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] sox convert gsm file

2015-09-23 Thread Jerry Geis
I am using centos 6.7 64 bit and sox to convert gsm files to wav.

When I do that I used to get a header like:
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz

Now I get a header like:
RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz

And the file does not play in the browser (chrome).

I use sox file.gsm file.wav
I have tried: sox file.gsm -r 8000 -c 1 file.wav

If I use the rasterisk convert file method - that works and has PCM not GSM
but I need to use sox. Reference:
http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asterisk

How does one correctly convert gsm to wav for play in the browser?

Thanks,

Jerry
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Steve Edwards

On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

Please let me know the correct procedure to get .alaw file format since 
I belong to India region.


Well, let's see...

You used '-t ul' and got a 'ulaw.'

I wonder what '-t al' will give you?

Failing that, I suspect 'sox --help' or Google would be a more responsive 
resource.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Kaushal Shriyan
On Thu, Sep 15, 2011 at 11:45 AM, Steve Edwards
asterisk@sedwards.com wrote:
 On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

 Please let me know the correct procedure to get .alaw file format since I
 belong to India region.

 Well, let's see...

 You used '-t ul' and got a 'ulaw.'

 I wonder what '-t al' will give you?

 Failing that, I suspect 'sox --help' or Google would be a more responsive
 resource.


Thanks Steve. it worked this time. Also is there a way to verify .alaw
file without playing the file. Although i did play obd-demo.alaw it
worked fine.

I did ran the below command

[root@host0040 test]# file obd-demo.alaw
obd-demo.alaw: data
[root@host0040 test]#
[root@host0040 test]# sox obd-demo.alaw -e stat
sox: Failed reading obd-demo.alaw: Do not understand format type: alaw

[root@host0040 test]#

Basically trying to understand the properties of the .alaw file about
encoding and details. Please guide.


[root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t al -c 1 obd-demo.alaw
sox: Detected file format type: wav

sox: WAV Chunk fmt
sox: WAV Chunk data
sox: Reading Wave file: Microsoft PCM format, 1 channel, 44100 samp/sec
sox: 88200 byte/sec, 2 block align, 16 bits/samp, 2041438 data bytes
sox: 1020719 Samps/chans
sox: Input file obd-demo.wav: using sample rate 44100
size shorts, encoding signed (2's complement), 1 channel
sox: Output file obd-demo.alaw: using sample rate 8000
size bytes, encoding a-law, 1 channel
sox: Output file: comment Processed by SoX

sox: resample opts: Kaiser window, cutoff 0.80, beta 16.00

[root@host0040 test]# ls -ltrh
total 2.9M
-rwxr-xr-x 1 root root 725K Sep 14 06:32 obd-demo.mp3
-rw-r--r-- 1 root root 2.0M Sep 14 06:32 obd-demo.wav
-rw-r--r-- 1 root root 181K Sep 15 16:57 obd-demo.alaw

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Steve Edwards

On Thu, 15 Sep 2011, Kaushal Shriyan wrote:


I did ran the below command

[root@host0040 test]# file obd-demo.alaw
obd-demo.alaw: data

[root@host0040 test]# sox obd-demo.alaw -e stat
sox: Failed reading obd-demo.alaw:
Do not understand format type: alaw


[au]law are 'headerless' file formats so the 'file' command can't help. 
Sox needs a clue as well. (See what sox says if you change the file name 
from example.alaw to example.al.)



Basically trying to understand the properties of the .alaw file about
encoding and details. Please guide.


Personally, I prefer to use WAV (not the funky 'gsm in wav' kind) files 
throughout.


I don't think 'transcoding' between [au]law and wav is a big deal CPU wise 
and I like easy to use file formats.


Call me lazy, but being able to just type 'play example.wav' or 'audacity 
example.wav' has value to me. So does being able to email an audio file to 
a 'non-techie' and not having to explain anything.


If you're looking to squeeze every last CPU cycle, there are probably 
better places to look. If you are really that tight on resources, maybe 
you should reconsider your hardware choices.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-15 Thread Danny Nicholas
+1 (at least) Steve

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards
Sent: Thursday, September 15, 2011 3:07 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not
understand format type: mp3

On Thu, 15 Sep 2011, Kaushal Shriyan wrote:

 I did ran the below command

 [root@host0040 test]# file obd-demo.alaw
 obd-demo.alaw: data

 [root@host0040 test]# sox obd-demo.alaw -e stat
 sox: Failed reading obd-demo.alaw:
 Do not understand format type: alaw

[au]law are 'headerless' file formats so the 'file' command can't help. 
Sox needs a clue as well. (See what sox says if you change the file name
from example.alaw to example.al.)

 Basically trying to understand the properties of the .alaw file about 
 encoding and details. Please guide.

Personally, I prefer to use WAV (not the funky 'gsm in wav' kind) files
throughout.

I don't think 'transcoding' between [au]law and wav is a big deal CPU wise
and I like easy to use file formats.

Call me lazy, but being able to just type 'play example.wav' or 'audacity
example.wav' has value to me. So does being able to email an audio file to a
'non-techie' and not having to explain anything.

If you're looking to squeeze every last CPU cycle, there are probably better
places to look. If you are really that tight on resources, maybe you should
reconsider your hardware choices.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-14 Thread Kaushal Shriyan
On Wed, Sep 14, 2011 at 7:04 AM, Steve Edwards
asterisk@sedwards.com wrote:
 On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

 I have carried out the below steps

 [root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1
 obd-demo.alaw

 sox: Output file obd-demo.alaw: using sample rate 8000
        size bytes, encoding u-law, 1 channel

 Sox v14.x complains about the '-b.'

 You are encoding as u-law, but naming the file alaw. Since [a|u]law are
 'headerless' file formats, this will probably confuse Asterisk.

 -rwxr-xr-x 1 root root  741459 Sep 14 06:32 obd-demo.mp3
 -rw-r--r-- 1 root root 2041482 Sep 14 06:32 obd-demo.wav
 -rw-r--r-- 1 root root  185165 Sep 14 06:32 obd-demo.alaw

 Am i doing it correctly ? Please comment

 I've never used alaw (I'm in the US).

 I don't think an MP3 needs 'execute' permissions :)

 --
 Thanks in advance,
 -
 Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
 Newline                                              Fax: +1-760-731-3000

Hi Steve,

Please let me know the correct procedure to get .alaw file format
since I belong to India region.

Regards

Kaushal

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Eric Wieling
sox -h will list the formats supported by your install of sox.  If mp3 is not 
listed, then your sox does not support mp3.  This is not uncommon.  Many Linux 
distros do not ship support for patent encumbered formats.   Either stop using 
mp3 (this is what I suggest) or compile and install sox with mp3 support.  

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Kaushal Shriyan
Sent: Monday, September 12, 2011 8:12 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand 
format type: mp3

Hi,

Can someone please comment about the below issue

[root@host0040 kaushal]# file obd-demo.mp3
obd-demo.mp3: MPEG ADTS, layer III, v1, 256 kBits, 44.1 kHz, Monaural
[root@host0040 kaushal]# sox obd-demo.mp3 -e stat
sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

[root@host0040 kaushal]# sox -V obd-demo.mp3 -r 8000 -c 1 -t ul -w vm-intro.ulaw
sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

[root@host0040 kaushal]# sox -v 0.125 -V obd-demo.mp3 -t au -r 8000 -U -b -c 
1 obd-demo.ulaw resample -ql
-bash: obd-demo.ulaw: No such file or directory
[root@host0040 kaushal]# sox -V obd-demo.mp3 -t au -r 8000 -U -b -c 1 
obd-demo.ulaw resample -ql
sox: Failed reading obd-demo.mp3: Do not understand foReply rmat type: mp3

[root@host0040 kaushal]#

When i invoke the same obd-demo.mp3 it works perfectly fine

host0040*CLI channel originate DAHDI/g0/xx Application MP3Player 
/home/kaushal/obd-demo.mp3 [Sep  9 16:44:56] DEBUG[12691]: sig_pri.c:985 
sig_pri_request: sig_pri_request 1 [Sep  9 16:44:56] DEBUG[12691]: 
sig_pri.c:6427 sig_pri_call: CALLER NAME:  NUM:
  -- Requested transfer capability: 0x00 - SPEECH
  -- Launching MP3Player(/home/kaushal/obd-demo.mp3) on DAHDI/i1/9833754756-1

[root@host0040 ~]# rpm -qa | grep sox
sox-12.18.1-1.el5_5.1
[root@host0040 ~]# rpm -qa | grep lame
lame-3.98.4-1.el5.rf
lame-devel-3.98.4-1.el5.rf
[root@host0040 ~]#


MP3 support in  SoX  is  optional
and requires access to either or both the external libmad and 
libmp3lame libraries.  To see if there is support for Mp3 run sox -h and
look for it under the list of supported file formats as mp3.

[root@host0040 ~]# sox -h
sox: Version 12.18.1

Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ]

gopts: -e -h -p -q -S -V

fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l/-d -v volume -x

effect: avg band bandpass bandreject chorus compand copy dcshift deemph earwax 
echo echos fade filter flanger highp highpass lowp lowpass mask mcompand 
noiseprof noisered pan phaser pick pitch polyphase rate repeat resample reverb 
reverse silence speed stat stretch swap synth trim vibro vol

effopts: depends on effect

Supported file formats: aiff al alsa au auto avr cdr cvs dat vms gsm hcom la lu 
maud nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw ub ul uw voc vorbis 
vox wav wve

Which package contains libmad and libmp3lame libraries available on CentOS 5.6

Regards,

Kaushal

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to 
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Matthew J. Roth
Kaushal,

Your version of SoX does not have MP3 support.  Since you have LAME
installed, use it as a first step to produce an intermediate file
that SoX supports.  Then use SoX to convert the intermediate file
to the desired format.

Step 1
--

# lame --decode obd-demo.mp3 obd-demo.wav
input:  obd-demo.mp3  (8 kHz, 1 channel, MPEG-2.5 Layer III)
output: obd-demo.wav  (16 bit, Microsoft WAVE)
skipping initial 1105 samples (encoder+decoder delay)
Frame# 16818/16818   16 kbps
# file obd-demo.wav
obd-demo.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, 
mono 8000 Hz


Step 2
--

# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.ulaw
sox: Detected file format type: wav

sox: WAV Chunk fmt
sox: WAV Chunk data
sox: Reading Wave file: Microsoft PCM format, 1 channel, 8000 samp/sec
sox: 16000 byte/sec, 2 block align, 16 bits/samp, 19372126 data bytes
sox: 9686063 Samps/chans
sox: Input file obd-demo.wav: using sample rate 8000
size shorts, encoding signed (2's complement), 1 channel
sox: Output file obd-demo.ulaw: using sample rate 8000
size bytes, encoding u-law, 1 channel
sox: Output file: comment Processed by SoX


Regards,

Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Kaushal Shriyan
On Tue, Sep 13, 2011 at 6:47 PM, Matthew J. Roth mr...@imminc.com wrote:
 Kaushal,

 Your version of SoX does not have MP3 support.  Since you have LAME
 installed, use it as a first step to produce an intermediate file
 that SoX supports.  Then use SoX to convert the intermediate file
 to the desired format.

 Step 1
 --

 # lame --decode obd-demo.mp3 obd-demo.wav
 input:  obd-demo.mp3  (8 kHz, 1 channel, MPEG-2.5 Layer III)
 output: obd-demo.wav  (16 bit, Microsoft WAVE)
 skipping initial 1105 samples (encoder+decoder delay)
 Frame# 16818/16818   16 kbps
 # file obd-demo.wav
 obd-demo.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, 
 mono 8000 Hz


 Step 2
 --

 # sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.ulaw
 sox: Detected file format type: wav

 sox: WAV Chunk fmt
 sox: WAV Chunk data
 sox: Reading Wave file: Microsoft PCM format, 1 channel, 8000 samp/sec
 sox:         16000 byte/sec, 2 block align, 16 bits/samp, 19372126 data bytes
 sox:         9686063 Samps/chans
 sox: Input file obd-demo.wav: using sample rate 8000
        size shorts, encoding signed (2's complement), 1 channel
 sox: Output file obd-demo.ulaw: using sample rate 8000
        size bytes, encoding u-law, 1 channel
 sox: Output file: comment Processed by SoX


 Regards,

 Matthew Roth

Thanks Matthew Roth. It worked. Also please let me know the difference
between .ulaw and .alaw format and is there a way i can play this file
formats.

Regards

Kaushal

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Steve Edwards

On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

Also please let me know the difference between .ulaw and .alaw format 
and is there a way i can play this file formats.


alaw = Europe, ulaw = US  Japan

Wikipedia has articles on both algorithms if you are interested in the 
specifics.


If you format your file correctly, Asterisk can play it.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Kaushal Shriyan
On Wed, Sep 14, 2011 at 6:42 AM, Steve Edwards
asterisk@sedwards.com wrote:
 On Wed, 14 Sep 2011, Kaushal Shriyan wrote:

 Also please let me know the difference between .ulaw and .alaw format and
 is there a way i can play this file formats.

 alaw = Europe, ulaw = US  Japan

 Wikipedia has articles on both algorithms if you are interested in the
 specifics.

 If you format your file correctly, Asterisk can play it.

 --
 Thanks in advance,
 -
 Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
 Newline                                              Fax: +1-760-731-3000

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Hi Steve,

I have carried out the below steps

[root@host0040 test]# lame --decode obd-demo.mp3 obd-demo.wav
input:  obd-demo.mp3  (44.1 kHz, 1 channel, MPEG-1 Layer III)
output: obd-demo.wav  (16 bit, Microsoft WAVE)
skipping initial 1105 samples (encoder+decoder delay)
Frame#   887/886256 kbps
[root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.alaw
sox: Detected file format type: wav

sox: WAV Chunk fmt
sox: WAV Chunk data
sox: Reading Wave file: Microsoft PCM format, 1 channel, 44100 samp/sec
sox: 88200 byte/sec, 2 block align, 16 bits/samp, 2041438 data bytes
sox: 1020719 Samps/chans
sox: Input file obd-demo.wav: using sample rate 44100
size shorts, encoding signed (2's complement), 1 channel
sox: Output file obd-demo.alaw: using sample rate 8000
size bytes, encoding u-law, 1 channel
sox: Output file: comment Processed by SoX

sox: resample opts: Kaiser window, cutoff 0.80, beta 16.00

[root@host0040 test]# ls -ltr
total 2932
-rwxr-xr-x 1 root root  741459 Sep 14 06:32 obd-demo.mp3
-rw-r--r-- 1 root root 2041482 Sep 14 06:32 obd-demo.wav
-rw-r--r-- 1 root root  185165 Sep 14 06:32 obd-demo.alaw

Am i doing it correctly ? Please comment

Regards,

Kaushal

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-13 Thread Steve Edwards

On Wed, 14 Sep 2011, Kaushal Shriyan wrote:


I have carried out the below steps

[root@host0040 test]# sox -V obd-demo.wav -r 8000 -b -t ul -c 1 obd-demo.alaw



sox: Output file obd-demo.alaw: using sample rate 8000
size bytes, encoding u-law, 1 channel


Sox v14.x complains about the '-b.'

You are encoding as u-law, but naming the file alaw. Since [a|u]law are 
'headerless' file formats, this will probably confuse Asterisk.



-rwxr-xr-x 1 root root  741459 Sep 14 06:32 obd-demo.mp3
-rw-r--r-- 1 root root 2041482 Sep 14 06:32 obd-demo.wav
-rw-r--r-- 1 root root  185165 Sep 14 06:32 obd-demo.alaw

Am i doing it correctly ? Please comment


I've never used alaw (I'm in the US).

I don't think an MP3 needs 'execute' permissions :)

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-12 Thread Kaushal Shriyan
Hi,

Can someone please comment about the below issue

[root@host0040 kaushal]# file obd-demo.mp3
obd-demo.mp3: MPEG ADTS, layer III, v1, 256 kBits, 44.1 kHz, Monaural
[root@host0040 kaushal]# sox obd-demo.mp3 -e stat
sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

[root@host0040 kaushal]# sox -V obd-demo.mp3 -r 8000 -c 1 -t ul -w vm-intro.ulaw
sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

[root@host0040 kaushal]# sox -v 0.125 -V obd-demo.mp3 -t au -r 8000
-U -b -c 1 obd-demo.ulaw resample -ql
-bash: obd-demo.ulaw: No such file or directory
[root@host0040 kaushal]# sox -V obd-demo.mp3 -t au -r 8000 -U -b -c 1
obd-demo.ulaw resample -ql
sox: Failed reading obd-demo.mp3: Do not understand foReply
rmat type: mp3

[root@host0040 kaushal]#

When i invoke the same obd-demo.mp3 it works perfectly fine

host0040*CLI channel originate DAHDI/g0/xx Application
MP3Player /home/kaushal/obd-demo.mp3
[Sep  9 16:44:56] DEBUG[12691]: sig_pri.c:985 sig_pri_request: sig_pri_request 1
[Sep  9 16:44:56] DEBUG[12691]: sig_pri.c:6427 sig_pri_call: CALLER NAME:  NUM:
  -- Requested transfer capability: 0x00 - SPEECH
  -- Launching MP3Player(/home/kaushal/obd-demo.mp3) on DAHDI/i1/9833754756-1

[root@host0040 ~]# rpm -qa | grep sox
sox-12.18.1-1.el5_5.1
[root@host0040 ~]# rpm -qa | grep lame
lame-3.98.4-1.el5.rf
lame-devel-3.98.4-1.el5.rf
[root@host0040 ~]#


MP3 support in  SoX  is  optional
and requires access to either or both the external
libmad and libmp3lame libraries.  To see if there is support for Mp3
run sox -h and
look for it under the list of supported file formats as mp3.

[root@host0040 ~]# sox -h
sox: Version 12.18.1

Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ]

gopts: -e -h -p -q -S -V

fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l/-d -v volume -x

effect: avg band bandpass bandreject chorus compand copy dcshift
deemph earwax echo echos fade filter flanger highp highpass lowp
lowpass mask mcompand noiseprof noisered pan phaser pick pitch
polyphase rate repeat resample reverb reverse silence speed stat
stretch swap synth trim vibro vol

effopts: depends on effect

Supported file formats: aiff al alsa au auto avr cdr cvs dat vms gsm
hcom la lu maud nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw
ub ul uw voc vorbis vox wav wve

Which package contains libmad and libmp3lame libraries available on CentOS 5.6

Regards,

Kaushal

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

2011-09-12 Thread Sam Govind
1- *-bash: obd-demo.ulaw: No such file or directory* // try use absolute
file path i.e /usr/src/mymp3.mp3 . I guess that's why its saying no such
file or directory.
2-  http://lists.digium.com/pipermail/asterisk-users/2006-March/144689.html Go
through this thread.
3-  When everything fails from sox - libraries dependencies issues  I use
http://www.nch.com.au/switch/index.html this converter. This can help you
for some time for free.

On Tue, Sep 13, 2011 at 5:12 AM, Kaushal Shriyan
kaushalshri...@gmail.comwrote:

 Hi,

 Can someone please comment about the below issue

 [root@host0040 kaushal]# file obd-demo.mp3
 obd-demo.mp3: MPEG ADTS, layer III, v1, 256 kBits, 44.1 kHz, Monaural
 [root@host0040 kaushal]# sox obd-demo.mp3 -e stat
 sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

 [root@host0040 kaushal]# sox -V obd-demo.mp3 -r 8000 -c 1 -t ul -w
 vm-intro.ulaw
 sox: Failed reading obd-demo.mp3: Do not understand format type: mp3

 [root@host0040 kaushal]# sox -v 0.125 -V obd-demo.mp3 -t au -r 8000
 -U -b -c 1 obd-demo.ulaw resample -ql
 -bash: obd-demo.ulaw: No such file or directory
 [root@host0040 kaushal]# sox -V obd-demo.mp3 -t au -r 8000 -U -b -c 1
 obd-demo.ulaw resample -ql
 sox: Failed reading obd-demo.mp3: Do not understand foReply
 rmat type: mp3

 [root@host0040 kaushal]#

 When i invoke the same obd-demo.mp3 it works perfectly fine

 host0040*CLI channel originate DAHDI/g0/xx Application
 MP3Player /home/kaushal/obd-demo.mp3
 [Sep  9 16:44:56] DEBUG[12691]: sig_pri.c:985 sig_pri_request:
 sig_pri_request 1
 [Sep  9 16:44:56] DEBUG[12691]: sig_pri.c:6427 sig_pri_call: CALLER NAME:
  NUM:
  -- Requested transfer capability: 0x00 - SPEECH
  -- Launching MP3Player(/home/kaushal/obd-demo.mp3) on
 DAHDI/i1/9833754756-1

 [root@host0040 ~]# rpm -qa | grep sox
 sox-12.18.1-1.el5_5.1
 [root@host0040 ~]# rpm -qa | grep lame
 lame-3.98.4-1.el5.rf
 lame-devel-3.98.4-1.el5.rf
 [root@host0040 ~]#


 MP3 support in  SoX  is  optional
and requires access to either or both the external
 libmad and libmp3lame libraries.  To see if there is support for Mp3
 run sox -h and
look for it under the list of supported file formats as
 mp3.

 [root@host0040 ~]# sox -h
 sox: Version 12.18.1

 Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ]

 gopts: -e -h -p -q -S -V

 fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l/-d -v volume -x

 effect: avg band bandpass bandreject chorus compand copy dcshift
 deemph earwax echo echos fade filter flanger highp highpass lowp
 lowpass mask mcompand noiseprof noisered pan phaser pick pitch
 polyphase rate repeat resample reverb reverse silence speed stat
 stretch swap synth trim vibro vol

 effopts: depends on effect

 Supported file formats: aiff al alsa au auto avr cdr cvs dat vms gsm
 hcom la lu maud nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw
 ub ul uw voc vorbis vox wav wve

 Which package contains libmad and libmp3lame libraries available on CentOS
 5.6

 Regards,

 Kaushal

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-28 Thread Mark Deneen
On Thu, Mar 24, 2011 at 4:58 PM, Thomas Winter thowin...@googlemail.com wrote:
 Hi list,
 I have an 44100 Hz file with human voice, stereo with 16Bit.
 When convertig this to 8 kHz, mono I loose a lot of quality and have
 some ground noise. I tried several sox options but without success.
 Can somebody help


I have had good results with this:

sox in.wav -r 8000 -c 1 out.wav highpass 500 lowpass 4000 resample -ql

Play around with the high and low pass numbers because they might need
to be changed depending on the properties of your recordings.

-M

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-25 Thread Ishfaq Malik
On Thu, 2011-03-24 at 21:58 +0100, Thomas Winter wrote:
 Hi list,
 I have an 44100 Hz file with human voice, stereo with 16Bit.
 When convertig this to 8 kHz, mono I loose a lot of quality and have 
 some ground noise. I tried several sox options but without success.
 Can somebody help
 
 best regards Thomas
 
 
The best results I have had have been by using the following

mpg123 -q -w ${TEMP} ${INPUT}
sox ${TEMP} -c 1 -s -r 8000 ${OUTPUT}

Regards

Ish

-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-25 Thread Steve Underwood

On 03/25/2011 04:58 AM, Thomas Winter wrote:

Hi list,
I have an 44100 Hz file with human voice, stereo with 16Bit.
When convertig this to 8 kHz, mono I loose a lot of quality and have
some ground noise. I tried several sox options but without success.
Can somebody help

best regards Thomas
You really need to remove the bass end of the spectrum before 
downsampling to 8k/s. uLaw/ALaw sound pretty muddy and horrible if you 
don't do that, and the other common 8k/s codecs don't sound any better. 
Jean-Marc Valin wrote a little filtering utility for this purpose.


Steve


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-25 Thread Steve Edwards

On Fri, 25 Mar 2011, Steve Underwood wrote:

You really need to remove the bass end of the spectrum before downsampling to 
8k/s. uLaw/ALaw sound pretty muddy and horrible if you don't do that, and the 
other common 8k/s codecs don't sound any better. Jean-Marc Valin wrote a 
little filtering utility for this purpose.


A link?

Casual googling didn't yield anything promising.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-24 Thread Thomas Winter
Hi list,
I have an 44100 Hz file with human voice, stereo with 16Bit.
When convertig this to 8 kHz, mono I loose a lot of quality and have 
some ground noise. I tried several sox options but without success.
Can somebody help

best regards Thomas


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-24 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Thomas Winter
Sent: Thursday, March 24, 2011 3:59 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Sox and bad quality when converting to 8 kHz

Hi list,
I have an 44100 Hz file with human voice, stereo with 16Bit.
When convertig this to 8 kHz, mono I loose a lot of quality and have 
some ground noise. I tried several sox options but without success.
Can somebody help

best regards Thomas


Make sure your voice talent is recording in mono or a single stereo
channel.  This command works for me under these conditions:
Sox file44.wav -r 8000 -c 1 -s file8.wav



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sox and bad quality when converting to 8 kHz

2011-03-24 Thread Steve Edwards

On Thu, 24 Mar 2011, Thomas Winter wrote:


I have an 44100 Hz file with human voice, stereo with 16Bit.
When convertig this to 8 kHz, mono I loose a lot of quality and have
some ground noise. I tried several sox options but without success.
Can somebody help


What does your command line look like?

I use this with good results:

sox ${INPUT} -c 1 -s -w -r 8000 ${OUTPUT}

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] sox gsm

2006-08-21 Thread Ronald Wiplinger

sox needs for gsm an optional library.

I was not able to locate this one. Can anybody point me to this place?

bye

Ronald
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] sox gsm

2006-08-21 Thread Tzafrir Cohen
On Mon, Aug 21, 2006 at 02:02:31PM +0800, Ronald Wiplinger wrote:
 sox needs for gsm an optional library.
 
 I was not able to locate this one. Can anybody point me to this place?

As there is a Debian package you can grab the orig tarball from:

http://packages.debian.org/unstable/libs/libgsm1

And the original location is listed in the copyright file:

http://packages.debian.org/changelogs/pool/main/libg/libgsm/libgsm_1.0.10-13/libgsm1.copyright

-- 
Tzafrir Cohen sip:[EMAIL PROTECTED]
icq#16849755  iax:[EMAIL PROTECTED]
+972-50-7952406  jabber:[EMAIL PROTECTED]
[EMAIL PROTECTED] http://www.xorcom.com
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sox conversion has introduces background hiss for both 8k and 41K recordings to gsm

2005-09-14 Thread Jerry Geis
I took a recording that was in 41k sampled mono wav. Did the sox 
file.wav -r 8000 file.gsm resample ql

took an 8K record in wave did sox file2.wav file2.gsm

Both of them have introduced a hissing noise.
If I play the wave files they sound fine.

How do I remove or reduce the hiss.

Jerry
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sox

2005-05-31 Thread altus
Good day all
I remember some time ago I tried recording on asterisk
But it did not work because the sox app was broken and by downloading a
older one it worked
Now things have come and go and version change
What sox version will work with asterisk 1.0.7
Thanks
Altus

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sox

2005-03-28 Thread Altus Snyman
Good day all
I previously tried the Monitor app with sox but it did not work and
according to the list it was because of a broken version
What are a good and working version for the latest asterisk
Thanks
altus

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sox-12.17.6

2004-12-16 Thread TELUX
does this version work? after the asterisk MIXING of files i have a file 
of dead air.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] sox-12.17.6

2004-12-16 Thread Brian West
I noticed this too.  Thought I was just crazy.

bkw

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:asterisk-users-
 [EMAIL PROTECTED] On Behalf Of TELUX
 Sent: Thursday, December 16, 2004 12:20 PM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [Asterisk-Users] sox-12.17.6
 
 does this version work? after the asterisk MIXING of files i have a file
 of dead air.
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] sox-12.17.6

2004-12-16 Thread Wayne Sheppard
TELUX wrote:
does this version work? after the asterisk MIXING of files i have a 
file of dead air.
Hmmm, in a twisted sort of way I'm glad to hear you're seeing this. I am 
too and have been losing hair with it.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sox and wav to gsm conversion quality issue

2003-08-22 Thread Dan
Hi,

I have some voice prompts in WAV format (PCM, 44KHz, 16bit, mono, bitrate
705kbps) and I want to convert them in gsm format.
Using :
sox file.wav file.gsm
The result is a gsm sound file which when is played the speed is very very
low (something like 5-6 times slower).
Converting first to a 8KHz, 8bit mono wave file, the final gsm file is
correct, but the quality is far than acceptable.
The original file is at a very high quality.

Which is the procedure to obtain the highest quality possible from my
original wav file?

Thanks,
Dan

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] sox and wav to gsm conversion quality issue

2003-08-22 Thread Jamie Neil
Dan wrote:
Hi,

I have some voice prompts in WAV format (PCM, 44KHz, 16bit, mono, bitrate
705kbps) and I want to convert them in gsm format.
Using :
sox file.wav file.gsm
The result is a gsm sound file which when is played the speed is very very
low (something like 5-6 times slower).
Converting first to a 8KHz, 8bit mono wave file, the final gsm file is
correct, but the quality is far than acceptable.
The original file is at a very high quality.
Which is the procedure to obtain the highest quality possible from my
original wav file?
Thanks,
Dan
Sox can convert the bitrate and the format at the same time, which in my 
experience produces pretty good results.

I posted the process that I use to the list a few weeks ago:

http://lists.digium.com/pipermail/asterisk-users/2003-July/016399.html

Regards,

--
Jamie Neil [EMAIL PROTECTED]
Versado I.T. Services Ltd.
http://versado.net/
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] sox and wav to gsm conversion quality issue

2003-08-22 Thread Dan
 Sox can convert the bitrate and the format at the same time, which in my
 experience produces pretty good results.

 I posted the process that I use to the list a few weeks ago:

 http://lists.digium.com/pipermail/asterisk-users/2003-July/016399.html


Hi Jamie,

If I try like in your example and first resample the original at 8KHz, the
quality of the final sound is unacceptable.

BR,
Dan

 Regards,

 -- 
 Jamie Neil [EMAIL PROTECTED]
 Versado I.T. Services Ltd.
 http://versado.net/

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] sox and wav to gsm conversion quality issue

2003-08-22 Thread Dan
Ok...some more tests and  the best results I get are with:

sox file.wav -r 8000 file.gsm resample -ql

Now the quality is identical with the original Asterisk prompts.

Thanks for he hint.

Dan

- Original Message - 
From: Dan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 22, 2003 3:02 PM
Subject: Re: [Asterisk-Users] sox and wav to gsm conversion quality issue


  Sox can convert the bitrate and the format at the same time, which in my
  experience produces pretty good results.
 
  I posted the process that I use to the list a few weeks ago:
 
  http://lists.digium.com/pipermail/asterisk-users/2003-July/016399.html
 

 Hi Jamie,

 If I try like in your example and first resample the original at 8KHz, the
 quality of the final sound is unacceptable.

 BR,
 Dan

  Regards,
 
  -- 
  Jamie Neil [EMAIL PROTECTED]
  Versado I.T. Services Ltd.
  http://versado.net/
 
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
  http://lists.digium.com/mailman/listinfo/asterisk-users
 
 

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] sox and wav to gsm conversion quality issue

2003-08-22 Thread Brian West
sox infile.wav -r 8000 -c 1 outfile.gsm


On Fri, 22 Aug 2003, Dan wrote:

 Hi,

 I have some voice prompts in WAV format (PCM, 44KHz, 16bit, mono, bitrate
 705kbps) and I want to convert them in gsm format.
 Using :
 sox file.wav file.gsm
 The result is a gsm sound file which when is played the speed is very very
 low (something like 5-6 times slower).
 Converting first to a 8KHz, 8bit mono wave file, the final gsm file is
 correct, but the quality is far than acceptable.
 The original file is at a very high quality.

 Which is the procedure to obtain the highest quality possible from my
 original wav file?

 Thanks,
 Dan

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users