Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting 16bit to 8bit

0 views
Skip to first unread message

Rory Vieira

unread,
Mar 15, 2002, 5:52:22 AM3/15/02
to
Dear anybody,

How would I go about to change a 16bit pcm stream into a 8bit pcm stream?
I get some wave data from tts engine, and need to convert it on the fly...

Thanks..

--
Rory Vieira
GIOS Voice Professionals
Network Manager / Developer

rory dot vieira at gios dot nl
http colon slash slash www dot gios dot nl

Koornstraat 10b
5341BR Oss
The Netherlands

T: +31 (0)412-465200
F: +31 (0)412-652000


Erwin Dokter

unread,
Mar 15, 2002, 10:45:59 AM3/15/02
to
Rory Vieira wrote:
>
> How would I go about to change a 16bit pcm stream into a 8bit pcm stream?
> I get some wave data from tts engine, and need to convert it on the fly...

You simply discard the 8 least significant bits per sample.

-- Erwin Dokter
mailto:edo...@home.nl
http://members.home.nl/edokter

Liran Shahar

unread,
Mar 17, 2002, 2:11:59 PM3/17/02
to
I think you should write a routine for range conversion 16bit (I.e. 65535
options for values) into 8bit (255 possible values) should be easy enough
(calc ratio and multiple user 16bit value and get your 8bit value)

--
Liran Shahar
Com-N-Sense (www.com-n-sense.com)

Wilson Woo

unread,
Mar 18, 2002, 8:20:16 PM3/18/02
to
should we use dithering?

Liran Shahar

unread,
Mar 20, 2002, 12:08:29 AM3/20/02
to
Depends how professional you want this conversion to be, if you require a
simple dirty conversion then you don't need it but otherwise it might be a
good idea, here is a link for the process
http://www.glowingcoast.co.uk/audio/theory/dither/

Wilson Woo

unread,
Mar 20, 2002, 9:07:53 PM3/20/02
to
o thx Liran
0 new messages