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
    5
    0
    Hello,

    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

    AAC Fanatic!

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

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,387
    1,605
    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
    1,320
    304
    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
    http://www.futurlec.com/ICSFOthers.shtml

    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.
Loading...