Having never worked with mic and speakers in the past, I am experimenting with these. I already made a simple circuit with a mic (electret condenser microphone) and speaker. I used the above mic with simple amplifier stage and then computer speaker. It works well.
Now, I am thinking of building a simple microphone, speaker and microcontroller circuit. The idea is basically to feed in the input from mic to microcontroller and then output the audio signal to the speaker.
For that I think I need to first convert the analog signal from the mic to digital values using AVR's ADC. After that I need to output the analog values to the speaker. Since this is my first time, I need advice on how to build a working circuit. What should be the sampling and playback rate? Do I have to worry about codecs, etc? (I don't know how large raw audio data can be.)
I am planning on using Arduino first since it's easy and quick for prototyping.
Any help is appreciated as always! :)