mayanksinha123
Newbie level 4

Hello folks,
my objective is to generate a playable audio which should sound "thank you" and "sorry" using ATmega32 micro-controller and a 2Watts 8 Ohms speaker with an RC filter in between controller and speaker.
i referred the following link and followed the procedure.
http://avrpcm.blogspot.in/2010/11/playing-8-bit-pcm-using-any-avr.html
As directed by the link above, i converted 'text' into 'speech' .wav file using ATnT, then converted it to 8000 samples mono 8-bit .wav file using 'switch', then converted it to c code and obtained the values...
i successfully dumped the code but i am getting hissing sound instead of desired audio at the output. I then built an Op-Amp Amplifier using LM358 which i connected between the micro-controller and the speaker but still not getting the desired audio. For Op-Amp Amplifier refer 5th circuit on following link.
http://www.techlib.com/electronics/audioamps.html#op-amp
kindly look into the matter and suggest the needful step for playing those files on ATmega 32.
Thanks and regards
Mayank Sinha
my objective is to generate a playable audio which should sound "thank you" and "sorry" using ATmega32 micro-controller and a 2Watts 8 Ohms speaker with an RC filter in between controller and speaker.
i referred the following link and followed the procedure.
http://avrpcm.blogspot.in/2010/11/playing-8-bit-pcm-using-any-avr.html
As directed by the link above, i converted 'text' into 'speech' .wav file using ATnT, then converted it to 8000 samples mono 8-bit .wav file using 'switch', then converted it to c code and obtained the values...
i successfully dumped the code but i am getting hissing sound instead of desired audio at the output. I then built an Op-Amp Amplifier using LM358 which i connected between the micro-controller and the speaker but still not getting the desired audio. For Op-Amp Amplifier refer 5th circuit on following link.
http://www.techlib.com/electronics/audioamps.html#op-amp
kindly look into the matter and suggest the needful step for playing those files on ATmega 32.
Thanks and regards
Mayank Sinha