It's perhaps not the cheapest audio solution, but it works, easy to connect, and it can hold 512 tracks on a µSD-card (no SDHC-support though!)
I made a small sample video:
http://www.youtube.com/watch?v=KDN4hDNWv3A
How to use it?
/* * This sample uses 5 files on the SD-card. They can be found in netmftoolbox\Samples\Visual C#\Sound Module\samples */ public static ushort EXTERMINATE = 0; public static ushort WAAAAAAAAAAAA = 1; public static ushort YOUMAYNOTLEAVE = 2; public static ushort TARDIS = 3; public static ushort SONIC = 4; public static void Main() { // The module is connected to these pins Somo SoundModule = new Somo(Pins.GPIO_PIN_D0, Pins.GPIO_PIN_D1, Pins.GPIO_PIN_D2); // Sets the volume fully open SoundModule.SetVolume(7); // Plays "Exterminate!" Debug.Print("EXTERMINATE"); SoundModule.PlayTrack(EXTERMINATE, true); // Plays the Tardis-sound Debug.Print("TARDIS"); SoundModule.PlayTrack(TARDIS, true); // Plays "You may not leave my precence!" Debug.Print("YOUMAYNOTLEAVE"); SoundModule.PlayTrack(YOUMAYNOTLEAVE, true); // Plays the sonic screwdriver sound Debug.Print("SONIC"); SoundModule.PlayTrack(SONIC, true); // Repeatedly play "Waaaaaaaaa!" Debug.Print("WAAAAAAAAAAAA (repeated)"); SoundModule.PlayRepeat(WAAAAAAAAAAAA); // Let this go on infinitely Thread.Sleep(Timeout.Infinite); }
You can download the source code here
Now let your Netduino talk!