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