Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to save and output Audio signal ?

Status
Not open for further replies.

emax0198

Member level 2
Joined
Nov 21, 2004
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
500
How a microcontroller can be used to save an audio voice conversation and then output that to a speaker? It is easy to do this using additional components but how to do this only using a single microcontroller?
 

To do this you will need a microcontroller with a A/D and D/A converters and some memory. If you log data from analog port at a rate of, say 8000/s (twice the highest frequency as per Nyquist cratirion ≈ quality of a telephone) and store all logged data in a memory.
The playback through D/A converter has to be done at the same rate as recording.
Regards,
IanP
 

There are few models of microcontrollers that have a built in DAC but you may be able to use a PWM output instead. With a quick search I can't find any uC with a DAC and enough RAM to store more than a fraction of a second of audio.

Storage will be a big problem. Flash memory in microcontrollers is usually too slow for such use so you need RAM. 16Kbyte RAM is big for a microcontroller.
If you store raw audio 8bit/sample you need 8K for each second of audio.
1MB with a microcontroller usually requres an external RAM chip.

It might be possible to implement a speech compression such as GSM codec (9600bit/sec) or speex algorithm(down to 270bytes/sec) in a fast microcontroller.
Probably not cost effective.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top