Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


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.

Reply
 
LinkBack Thread Tools Display Modes
Old 24th August 2006, 01:12 PM   (permalink)
Default Sound file

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!
abees81 is offline  
Old 24th August 2006, 02:41 PM   (permalink)
Default

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.
mramos1 is offline  
Old 24th August 2006, 05:32 PM   (permalink)
Default

If you don't use compression software, an old 2764 will hold about 1 second of very poor quality audio.
__________________
Uncle $crooge
audioguru is online now  
Old 24th August 2006, 05:54 PM   (permalink)
Default

How did you record the sound data ?

What method did you use to program the EEPROM ?
StopGo is offline  
Old 26th August 2006, 05:08 AM   (permalink)
Default

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?
abees81 is offline  
Old 26th August 2006, 05:33 AM   (permalink)
Default

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
audioguru is online now  
Old 26th August 2006, 05:54 AM   (permalink)
Default

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. ---
kchriste is offline  
Old 26th August 2006, 05:13 PM   (permalink)
Default

Maybe the sound is just, "POP" and he blinked and missed hearing it.
__________________
Uncle $crooge
audioguru is online now  
Old 26th August 2006, 08:52 PM   (permalink)
Default

Quote:
Maybe the sound is just, "POP" and he blinked and missed hearing it.
If he clocks it slow enough the cymbals can sound like Bass
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:
Attached Files
File Type: zip EGGTIMER.zip (21.0 KB, 14 views)
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 26th August 2006, 09:01 PM   (permalink)
Default

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
audioguru is online now  
Old 28th August 2006, 05:35 AM   (permalink)
Default

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...
abees81 is offline  
Old 28th August 2006, 03:06 PM   (permalink)
Default

I was right. "POP" is about one second long.
__________________
Uncle $crooge
audioguru is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:32 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker