Pages: [1]   Go Down
Author Topic: HELP TO STORE 8BIT,8KHz Mono PCM AUDIO SAMPLES in ARDUINO  (Read 1108 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

HI,
My project is guidance system for visually impaired, through voice sound that would be heared to them with earphones...

I have been working with Atmega168 for synthesizing audio from arduino with the great help from the code below http://www.arduino.cc/playground/Code/PCMAudio.
I also got good audio output for this code.

The problem here is i want about 36 samples of sound (mostly 1sec audio for speaking 10 numerals and 26 english alphabets as separate samples, so total approx 36-40 sec audio ) to be stored in arduino but will there be memory room to accomodate it...

And what would be the best solution to solve it...i have atmega328 now will that have enough memory...i would much prefer to go with any procedures using atmega168 or 328 with eeprom r any effective means....
PLEASE HELP....
THANK U ...
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8060
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

36 seconds at 8000 bytes per second is 288,000 bytes.  The ATmega328P has only 32,000 bytes of FLASH memory.  You will have to find some other way to store the sounds.  Several companies make 2 megabit (256K x smiley-cool and larger serial EEPROM chips for under $1 each.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank u for ur suggestion but can eeprom be compatible for this pcm audio code due to access speed issue, i dont have any prior knowldge.

If it can be used please suggest me the procedures for interfacing n communication methods....

thank u
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 505
Posts: 31332
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No access to the EEPROM is too slow to use directly as an output. You need to have some extra RAM called SRAM attached to the SPI bus. You then copy the sound sample out of EEPROM into SRAM and from there you feed it into an external A/D converter.
If you are not up to building this then get a wave shield from Lady Ada. That used an SD card which you can access fast enough to play a sound.
Logged

Pages: [1]   Go Up
Jump to: