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
16 bit stereo Audio to 8 Bit Mono
Started by ●March 19, 2007
Reply by ●March 19, 20072007-03-19
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 monoWhat 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. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply by ●March 19, 20072007-03-19
"Jerry Avins" schrieb> > How do I convert a 16 BIT, stereo wave audio.... into an 8 BITmono 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 8bits?> 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
Reply by ●March 19, 20072007-03-19
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. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply by ●March 19, 20072007-03-19
"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 > MartinIndeed. 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