Generate Voice Message using AT89C2051

Discussion in 'Embedded Systems and Microcontrollers' started by shubham11, Feb 28, 2013.

  1. shubham11

    Thread Starter New Member

    Feb 12, 2013

    I want to generate a short voice messege using AT89C2051 microcontroller. But I don't have any idea of doing this such as where and How to store the messege? How to generate it using speaker? Please sort me out..
  2. kubeek


    Sep 20, 2005
    So do you want to play a stored message, or really generate the voice inside the micro?
  3. t06afre

    AAC Fanatic!

    May 11, 2009
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    A simple voice message can be made using a PWM output to a low pass filter/amplifier and a speaker. Voice alone needs 8kHz sample rate, and 8 bits per sample is plenty.

    So you need a place to store 8,000 bytes for every second of your message(s), plus a way to read them at 8,000 bytes a second.

    I don't use Atmel products so I have no details there.
  5. panic mode

    Senior Member

    Oct 10, 2011
    well, there are different options:

    1. use one of the specialized voice record/playback solutions
    2. make own player using MP3 codec
    3. make text to speech player.

    option 1 is the simplest, just check

    option 2 requires more effort, you need to integrate an MP3 codec and choose storage (EEPROM or SD card for example) which adds to complexity of the project.

    option 3 is similar to the option 2 in terms of development but rather than playing back pre-recorded audio messages, it can synthesize voice from a text / string. just make sure to pick correct chip (unless you like non-English accent for example). one such example appeared few years ago as a contest entry for Zilog z8 Encore!

    While this is a different platform, it is still very interesting read and it will give you an idea of what can be done and what it takes to get there. Check out included audio file. I had to convert writeup report from Word document to PDF to get around AAC attachment size (.doc was over 8Mb).
    Last edited: Feb 28, 2013
    shubham11 likes this.