This page presents a library to use a SMARTWAV intelligent embedded audio processor from Vizic Technologies: the easiest way to add High Quality Stereo Sound to any project: http://www.vizictechnologies.com/#!smartwav/c118s
Notes for example code below: See the SMARTWAV.h file for the Arduino three Arduino pins to use. The pins can be altered. ITunes works very well for converting mp3 files to wav files that will actually run on SMARTWAV.
SMARTWAV explained
#include <SMARTWAV.h> //Create our object
in your main sketch and create the object:
SMARTWAV sWav; //Create the object
//main #include <SMARTWAV.h> //include the SMARTWAV library! SMARTWAV sWav; //create our object called sWAV (smartWAV) void setup() { //initial setup //Those two functions must always be called for SMARTWAV support sWav.init(); //configure the serial and pinout of arduino board for SMARTWAV support sWav.reset(); //perform an initial reset } void loop() { //main loop char playList[50]; //array that stores all the microSD card audio files char folders[50]; //array that stores all the microSD card folders/Dirs char songName[10]; //array that stores the audio file name while(1){ //loop forever sWav.playTracks(); //Play any audio track stored on the microSD card root path delay(2000); //let it play some seconds sWav.pausePlay(); //Pause track delay(2000); //let it play some seconds sWav.pausePlay(); //resume track delay(2000); //let it play some seconds sWav.rewindTrack(); //rewind track delay(2000); //let it play some seconds sWav.nextTrack(); //jump to next track delay(2000); //let it play some seconds sWav.stopTrack(); //stop playing track sWav.playTrackName("lovers"); //play track named "Lovers" stored on the microSD card wait(20000); //let it play some seconds sWav.getFileName(name); //get current playing song name sWav.stopTrack(); //stop track sWav.getFolderList(folders); //get folder list on microSD card sWav.getFileList(playList); //get audio files/song list on microSD card sWav.setFolder("Rock"); //enter "Rock" folder sWav.playTracks(); //Play any audio track stored on the microSD card 0:/Rock/ path sWav.playSpeed(TWOX); //set play speed to 2X sWav.continuousPlay(ENABLE); //enable continuous play } }
SMARTWAV as Audio Player - (Stand-Alone Mode)
More soon will be uploaded...
All the Source Code of those videos, and many other examples could be downloaded from HERE.