VoiceShield with Ardiuno Mega shortening sound clips

VoiceShield with Ardiuno Mega shortening sound clips

Postby Casey » Tue Oct 26, 2010 1:53 am

Just finished building the VoiceShield, installing it onto my Arduino Mega and uploading 2 sounds clips. The first one is an mp3 and second is a wav. They are both several seconds long.

When playing the clips through the VoiceShield only the first, I'd say, 500 milliseconds of each clip is being played.

Has anyone seen this behavior before? Anything wrong with the described senario?
Casey
 
Posts: 2
Joined: Tue Oct 26, 2010 1:48 am

Re: VoiceShield with Ardiuno Mega shortening sound clips

Postby Spike » Tue Oct 26, 2010 9:12 pm

I've used the VoiceShield with a Mega and it works well.

Sound clips that don't play or only play partially are more often than not due to the way you address the sound slots.

Try this;

1. If you have a none Mega Arduino, try it with the VoiceShield. Does it work with your sketch?

2. If you only have two sounds, leave the number of sound slots at the default of 80. But, address the first sound at lets say slot #1 and the second at #5. In this case slot #5 is about 15 seconds into your recording memory (3 seconds / slot x slot # 5) = 15 seconds.

Note: Both the VS_Loader Sketch and your triggering sketch must have the same number of sound slots set in this code line;

Code: Select all
VoiceShield vs(80);
Spike
Site Admin
 
Posts: 95
Joined: Tue Feb 16, 2010 12:51 pm

Re: VoiceShield with Ardiuno Mega shortening sound clips

Postby Casey » Wed Oct 27, 2010 3:32 pm

Spike, thanks for the reply and suggestions.

I've uploaded the default 80 sample files and ran the BasicNumberTalk and BasicPhraseTalk examples, both of which worked just fine.

Could it be an issue with my sound files maybe? Although don't they simply get played over the audio cable and recorded onto the chip? Here are the specs:
01hum.mp3
Stereo, 44100Hz, 128 kb/s, 10 Seconds
02reentry.WAV
Stereo, 44100Hz, 1411 kb/s, 2 Seconds

I don't have a non-Mega Arduino so can't test that, but since it works with the default files that should be a moot point.

Tried suggestion #2 and the same thing happened as before.

Also, I tried the "preview" function from the loader and all sounds played as normal.

I'll keep plugging away and post any findings here.
Casey
 
Posts: 2
Joined: Tue Oct 26, 2010 1:48 am

Re: VoiceShield with Ardiuno Mega shortening sound clips

Postby Spike » Mon Nov 01, 2010 2:37 pm

I don't think that the problem is with your sound files. They are exported from your computer in as analog.

Also, I tried the "preview" function from the loader and all sounds played as normal.


Did you also try running the programmer but with the audio cable connected to an external speaker instead of the VoiceShield (ie not the preview, so in this case the Arduino is still connected)?

Most often the problem is with the code. If you would like, upload it (or part of it) and I'll take a look.
Spike
Site Admin
 
Posts: 95
Joined: Tue Feb 16, 2010 12:51 pm


Return to VoiceShield

Who is online

Users browsing this forum: No registered users and 1 guest

cron