Forums

16 bit stereo Audio to 8 Bit Mono

Started by kingdavid3 March 19, 2007
How do I convert a 16 BIT, stereo wave audio.... into an 8 BIT mono audio
in MATLAB. Please help

[s, fs]=wavread('test.wav');

snew=(:,1); %This converts it to mono
kingdavid3 wrote:
> How do I convert a 16 BIT, stereo wave audio.... into an 8 BIT mono audio > in MATLAB. Please help > > [s, fs]=wavread('test.wav'); > > snew=(:,1); %This converts it to mono
What is your question? Is it how to convert a 16-bit integer to 8 bits? Is it how to do it with the best adherence to the original? Do you know about binary numbers and bits? Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"Jerry Avins"  schrieb
> > How do I convert a 16 BIT, stereo wave audio.... into an 8 BIT
mono audio
> > in MATLAB. Please help > > > > [s, fs]=wavread('test.wav'); > > > > snew=(:,1); %This converts it to mono > > What is your question? Is it how to convert a 16-bit integer to 8
bits?
> Is it how to do it with the best adherence to the original? > > Do you know about binary numbers and bits? >
It's a shame that MATLAB is delivered without documentation these days. The version we bought in our company came with a lot of booklets and you could even do help(function) or so in the program. Regards Martin
Martin Blume wrote:
> "Jerry Avins" schrieb >>> How do I convert a 16 BIT, stereo wave audio.... into an 8 BIT > mono audio >>> in MATLAB. Please help >>> >>> [s, fs]=wavread('test.wav'); >>> >>> snew=(:,1); %This converts it to mono >> What is your question? Is it how to convert a 16-bit integer to 8 > bits? >> Is it how to do it with the best adherence to the original? >> >> Do you know about binary numbers and bits? >> > It's a shame that MATLAB is delivered without documentation these > days. > The version we bought in our company came with a lot of booklets > and you could even do help(function) or so in the program.
It's all there. For some reason or other, some people don't look. Maybe reading English is hard. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"Martin Blume" <mblume@socha.net> writes:

> "Jerry Avins" schrieb >> > How do I convert a 16 BIT, stereo wave audio.... into an 8 BIT > mono audio >> > in MATLAB. Please help >> > >> > [s, fs]=wavread('test.wav'); >> > >> > snew=(:,1); %This converts it to mono >> >> What is your question? Is it how to convert a 16-bit integer to 8 > bits? >> Is it how to do it with the best adherence to the original? >> >> Do you know about binary numbers and bits? >> > It's a shame that MATLAB is delivered without documentation these > days. > The version we bought in our company came with a lot of booklets > and you could even do help(function) or so in the program. > > Regards > Martin
Indeed. In the old days, they even had a web sight that provided complete documentation as well as a broad base of user-contributed m-file scripts for many common tasks. -- % Randy Yates % "Remember the good old 1980's, when %% Fuquay-Varina, NC % things were so uncomplicated?" %%% 919-577-9882 % 'Ticket To The Moon' %%%% <yates@ieee.org> % *Time*, Electric Light Orchestra http://home.earthlink.net/~yatescr