[Icc-avr] Off topic question
Jim Patchell
patchell at cox.net
Sat Jul 12 11:52:35 PDT 2008
You can just truncate (or round for a bit better SN) the 16 bit samples.
I did something similar several years ago. I wrote my own program for
reading in the PCM file, and then it would spit out the data as a .C
file in the form of a char array...it is actually fairly simple. I
would send you the program, but, that was one job ago...and I didn't
keep a copy of it. :-(
I googled for the specification of the .wav file format, and wrote the
code from there. Sorry if this isn't much help....
-Jim
John Baraclough wrote:
> Sorry about being a little off topic, but the list has been very quiet
> recently and I thought this would be the most likely place to get a
> sensible answer to my problem.
>
> I am building a unique metronome to use when practising Taiko drumming.
> It has red & green LEDs which indicate the hands and the brightness of
> the LEDs will indicate the strength of the beats. Everything so far is
> easy, but I want to add a 'voice' to it, and I think that PCM sampled at
> 8kHz and 8-bits will be perfectly adequate for my purpose. I will be
> using a MAX522 SPI DAC as I already have these parts from another project.
>
> So here's the question. How do I record speech at 8-bit resolution using
> a PC? I have the Audacity audio editing package and it will record at
> 8kHz sampling but only at a minimum of 16-bit resolution. Can anyone
> give me a link some software which can reduce a 16-bit WAV file to only
> 8-bits so that I can extract the data and programme an external EEPROM.
>
> Thanks for reading.
>
> All the best for now,
> John
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
>
>
--
----------------------------------------------
Visit http://www.noniandjim.com
SDIY: http://www.noniandjim.com/Jim/index.html
----------------------------------------------
More information about the Icc-avr
mailing list