mbed Demonstration, Audio download and playback

30 Oct 2011

Hello all. This is one of my first projects and experiences with the mbed, and I have to admit that I am very surprised and satisfied with it.

To be able to test out all of the different periphirals, especially USB Host and Ethernet, we decided to make our own breakout board with the required connectors. Then I decided to make a project which uses a couple of these periphirals, and I ended up making a project that generates audio files (.wav) on webserver, and then download them to a USB memory stick for later playback.

The project outline is a random number generator, where the random numbers are sponken by a computer voice. The Audio is played back using the wave_player library.

NOTE: A free voice generation service can be found here: http://www.tkjweb.dk/?goto=Voice

A more detailed description and the code can all be found at our blog on the following link: http://blog.tkjelectronics.dk/2011/10/mbed-rapid-prototyping-with-microcontrollers/

Best Regards, Thomas Jespersen

19 Oct 2011

That is a great demo! Love the fact the result is the mbed speaking to you :)

Simon

23 Oct 2011

Thank you Simon. In the following week I will put up a public link for the voice generator I made and is using in the video. The source for the generator will also be uploaded so people can set up the server themselves if required.

Thomas

29 Oct 2011

hello dear can i copy past program on my Mbed from your blog? or it require some changes?

29 Oct 2011

Dear Assad.

The code you see in this review is the code I used in the project. You have to add your own generation URL and Wave file download URL to get it working. I will soon post the PHP- and .NET-code which is used to generate the Voice wave file.

If you are just looking for a way to download files to your mbed and a USB memory stick you should have a look at the “int get_file(char *url, char *file)” function. This functions saves the content of a file on the internet (url) to a local file (file). The location of the local file can be all the places the mbed supports: /usb, /sd and /local.

Best Regards Thomas Jespersen

29 Oct 2011

thank you sir i am new, first time i am using 32bit controller that's why i have some confusion. and thanks for your reply.....

30 Oct 2011

No problem. I hope you can get your project working :)

30 Oct 2011

I have now made a free Voice Generation service, which is using Microsoft SAM for the generation part. The service is free though limited to a maximum of 100 voice generations per day.

You can create a user here: http://www.tkjweb.dk/?goto=Voice

After you have created a user you will receive a mail with more information on how to use the service.

Best Regards, Thomas Jespersen

30 Oct 2011

sir that's great