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://vizictechnologies.com/#/smart-wav/4559021187 (http://www.vizictechnologies.com) The Audio module features are :


You can import the SMARTGPU mbed Library from here :
SMARTWAV mbed Library for use with the SMARTWAV audio processor, http://vizictechnologies.com/#/smart-wav/4559021187 www.vizictechnologies.com
Once it is imported to your program folder, just insert the #include "SMARTWAV.h" in your main.cpp and create the object with SMARTWAV sWav(p13,p14,p15); (TX,RX,Reset)
//main.cpp
#include "mbed.h"
#include "SMARTWAV.h"
SMARTWAV sWav(p13,p14,p15); //(TX,RX,Reset);
int main(){
char playList[100]; //array that stores all the microSD card audio files
char folders[100]; //array that stores all the microSD card folders/Dirs
char songName[10]; //array that stores the audio file name
sWav.reset(); //physically reset SMARTWAV
while(1){ //loop forever
sWav.playTracks(); //Play any audio track stored on the microSD card root path
wait(20); //let it play some seconds
sWav.pausePlay(); //Pause track
wait(2); //let it play some seconds
sWav.pausePlay(); //resume track
wait(2); //let it play some seconds
sWav.rewindTrack(); //rewind track
wait(2); //let it play some seconds
sWav.nextTrack(); //jump to next track
wait(2); //let it play some seconds
sWav.stopTrack(); //stop playing track
sWav.playTrackName("lovers"); //play track named "Lovers" stored on the microSD card
wait(20); //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 Stand-Alone Module:
SmartWAV MediaPlayer like with mBed
Images and microSD contents could be downloaded from here: http://vizictechnologies.com/#/software-demos-sw/4560115377
To make it simpler, you can import those demos 100% ready to compile and load:
SmartWAV controlled directly from a PC using mbed's USB serial port:
SMARTWAV Audio processor, control the SmartWAV module with communication to a PC via mbed USB Port under an Hyperterminal session 9600/1 stop bit/ no parity/ no flow control
SmartWAV and SmartGPU showing a "windows media player" demo application using mbed:
SMART WAV audio processor connected together with the SMART GPU graphics processor, a \"windows media player\" application is demostrated, be sure to download demo\'s used files to the microSD card. http://vizictechnologies.com/#/software-demos-sw/4560115377
No tags
|
11 comments
Please login to post comments.
Hi.
Well. After much trying I have to say that this program is not working for me.
I originally tried to put my own .wav files on and eventually got it up and running in standalone mode. Then I tried to get it to work with the MBED with no luck. Then I tried to download the source code and example .wav files from the SMARTWAV website. This data did not exist so I emailed them. I was directed to another *pay* link to download the .wav examples. (Evidently they said it cost to much to support the bandwidth.)
I did not download the .wav files but instead used two wav files and renamed them to 'A' and 'B'. The program hangs at "Welcome to the SmartWAV PC Demo! getting microSD contents..." Then it starts to play the songs but hangs. I never return from this function and I am not sure why. If I comment out all of the "getting SD file information" I enter into the While loop and can push and letter only once. It does not return from the function and it hangs.
At this point, I have no idea but am willing to hear of any options.
Thanks.
Steve