Where to start: using audio files

I have a project that's basically going to be about four switches that will control a bunch of different short recordings. I've written a few Arduino programs before but don't have any experience with playing audio files. I'm not sure where to start. Does anyone have any recommended reading for what I have planned?

I assume that it'll have to be real low quality and short files in order to store them on the limited memory of the 32kb atmega chip. That is unless there are other chips I can use in conjunction to give me more memory? Such as flash memory. But I have no experience with that either. Lol so I'd need a few pointers in where to start there too.

You can't store audio files - can have maybe 1/4 of a second in 32K?
Better off with a shield that plays sounds from SD card.
Either an MP3 player shield, or a DAC that you send data to that is read from SD card.

You need at least a SD Card module, you can see bellow my video using just a sd card module
and arduino playing sound.

You will need the
#include <TMRpcm.h>
library were you can find it here

You will need as well to modify the arudio files in unicode wav 8bit between 15000Hz and 18000Hz
if i remember well and use external power/amplifier for the speaker do not use arduino board directly
with the speaker because it may draw more power and damage your arduino.

You can use any speaker as you can see from my video.

Thanks,
D.60

You can store about 3 1/2 seconds of audio in the 32K of Arduino Flash and trigger them with a separate button. The quality is surprisingly good, especially for speech.

Full code to do this is in my book:-

Due to my contract with the publishers I can't post this here, sorry.

If you want any more playing time then you could use external EEPROM on the I2C bus or an SD card. Also for better quality audio you can use an external D/A chip.
If you want the whole lot as a kit to built then look at:-

Domino60:
You will need as well to modify the arudio files in unicode wav 8bit between 15000Hz and 18000Hz

This is rubbish and does not even mean anything.

This is rubbish and does not even mean anything.

What exactly do you mean rubbish?
I can prove that i use exactly this type of format for the video i posted above.

EDIT:

(Mono) Wav Unsigned 8bit PCM 18000Hz

This doesn't mean anything to you?

Thanks,
D.60

Look D60. Basically you do not know what you are talking about. You do not have the vocabulary to describe what you have done. You do not have the language skills to do anything but spread confusion.

You said:-

ou will need as well to modify the arudio files in unicode wav 8bit between 15000Hz and 18000Hz

Now what is unicode? Do you know? Obviously not, read this to find out what unicode mean:-

It is to do with the encoding of text data.

Now you are talking about "Unsigned 8bit PCM 18000Hz" which of course I know about. However, you don't.

You need to digitize an audio signal at exactly the same rate as you are going to play it back if you want to avoid pitch or time distortion. Not a range as you said

between 15000Hz and 18000Hz

Unless you use the right words your so called advice is useless.

Have you ever heard of " Audacity 1.3 Beta (Unicode) " yes i mistaked and instead to write audacity
i wrote unicode

You do not have the vocabulary to describe what you have done. You do not have the language skills to do anything but spread confusion.

but please don't make me stupid or what ever you think about me you don't even know me, would be
nice to keep it in professional level, if you want to get out of your mouth trash then don't do it with me.

I posted my project helping op if you personally don't like it then don't f*king reply to my comments.

that kind of comments make me sick and rage because people like you are sooo ..... nvm. get back to the topic.

The idea was that OP needs a way to play audio thru arduino I posted necessary information and
video with my project in action.

Thanks,
D.60

but please don't make me stupid

You do it to yourself.

@red913 - sorry for this, you are new and I am trying to protect you from bad or stupid advice. This particular member has a long record of giving stupid advice and what he gives falls way below the standard expected here. Unfortunately he is too stupid to know that he is stupid. It might interest that he is the only member I have ever called stupid, and it has only been in this thread.

So it is up to you what you do now. I only looked at this thread again because I saw that you had replied and I was expecting some question. I can answer your questions if you want.

oh ya, I'm just going to use the sparkfun mp3 shield. That'll suit my purposes. Thanks for everyone's help.

Grumpy_Mike
I didn't knew giving an useful advice and a working example is stupid. You already offended me in the past
even in my own topics, I reported you because you don't keep this on professional level. It looks more
like you hate me or something.

D.60

I'm sorry Domino60, but you really ought to take note of what Mike is saying.

Talking about "unicode" and sample rates in the same post is utter nonsense, and undermines any credibility you may have.

I agree with you that Mike's "stupid" is a little strong, so can we agree on "ignorant"?

I agree with you that Mike's "stupid" is a little strong, so can we agree on "ignorant"?

I gave an advice/idea about how to use or play audio files easy and cheap using just a micro SD Card module and a video example, yes I made a mistake writing (unicode) but would be nice just to correct me or just ask me about that but not starting telling me that I write no sense, rubbish, that I don't know what I'm talking about, my vocabulary is low, that i give stupid advices and offending me in front of other members making me stupid and " falls way below the standard expected here".

Come on now, we are not kindergarten here, this is a forum for people who like electronics, sharing ideas
is not bad, I tried to help, there is many people outside there who like to build cheap, combining ideas.

ps. And that's not the 1st time Mike is doing that with me.

D.60

I think this thread should be locked. This is way off topic and the squabble doesn't need to be public. You two should PM each other at this point.

Agree. Thread locked.

@red913, good luck with your project. I hope it goes well.