![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi every one,,, I used to navigate this forum once in a while to explore the ideas of the members, but now I am facing a problem in an electronic circuit I designed. Well I want to store a sound file in an EPROM M5L2764 which can hold up to 8k bytes of data and then play the sound file using DAC0808 with a LPF and an opamp. I used 14 bit counter connected as the address of the EPROM and the data coming out of the EPROM is exactly the one shown in the HEX representation of the file using HEX Probe editor. Further more the DAC0808 workes perfectly except that all what I hear is noise even though I varied the frequency of the counter from 1 kHz to 1MHz. Does anybody know what is the problem? I personally suspect that the data from the file is not the actual representation of the sound! | |
| |
| | (permalink) |
| How are you recording the sound to the file? You will need to use the same coding method and speed when you take it out of the EPROM. Does the runtime of the noise run the same amount of time that the recording it supposed to be? That will tell you if speed is an issue. | |
| |
| | (permalink) |
| If you don't use compression software, an old 2764 will hold about 1 second of very poor quality audio.
__________________ Uncle $crooge | |
| |
| | (permalink) |
| How did you record the sound data ? What method did you use to program the EEPROM ? | |
| |
| | (permalink) |
| thank you guys for replying. well i just got the file from the net, its a normal 16 kbyte file (4 seconds). so should I use a compression software? and how to edit the file so I can have sampling rate of 8 bits/sample? | |
| |
| | (permalink) |
| 16kbytes in 4 seconds is a sampling rate of 4kbytes per second which is terrible. Have you ever heard an underwater throat microphone? Its sampling rate is selected for the recording. It must be compressed during the recording. It is too late to change them now.
__________________ Uncle $crooge | |
| |
| | (permalink) |
| You are probably trying to play back a 16bit Stereo sound sample. Convert it to 8bit mono first and make sure it is a WAV file. You may also have to reduce the bit-rate to make it fit in the 8K space of your EEprom. You also should strip off the first (I think it is a 46 byte header) few bytes of the WAV file because they just contain sample rate info etc.
__________________ --- The days of the digital watch are numbered. --- | |
| |
| | (permalink) |
| Maybe the sound is just, "POP" and he blinked and missed hearing it.
__________________ Uncle $crooge | |
| |
| | (permalink) | |
| Quote:
But it IS possible. About 15yrs ago I made a talking eggtimer out of a 32K Eprom, R-2R network and some 4000 series logic... Here is a sample which is coded at 6K per second. And yes, I made the chicken sound although it is speeded up a bit to increase the pitch:
__________________ --- The days of the digital watch are numbered. --- | ||
| |
| | (permalink) |
| The Egg Timer sounds pretty good for such a low rate. I heard long distance telephone at 8k per second and it sounded awful.
__________________ Uncle $crooge | |
| |
| | (permalink) |
| Oh guys I have done It! The trick was in the coding. I used a software called wavepad to create a sound file with sampling rate of 8 kbyte/s 8 bits-MONO using PCM coding and it works fine. It plays 1 second of medium quality sound. Thanks guys... | |
| |
| | (permalink) |
| I was right. "POP" is about one second long.
__________________ Uncle $crooge | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |