Jagadeesh Kumar P
Created April 13, 2016

VIRTUAL SPEECH FOR VOCALLY CHALLENGED

To facilitate the easier and effective communication between the vocally challenged people and others !

VIRTUAL SPEECH FOR VOCALLY CHALLENGED

Things used in this project

Story

Read more

Schematics

Virtual Speech for Vocally challenged people

Code

Untitled file

C/C++
#include <MyoController.h>
#include <LSD.h>
#include <LAudio.h>

#define file_name1 (char *)"hi.mp3" 
#define file_name2 (char *)"nice.mp3"
#define file_name3 (char *)"address.mp3"
#define file_name4 (char *)"water.mp3"
#define file_name5 (char *)"sorry.mp3" 

MyoController myo = MyoController();

void setup()
 {
LSD.begin();
myo.initMyo();
}

void play(char * filename) 
{
LAudio.setVolume(7);
LAudio.playFile(storageSD, filename);
delay(3000);
}


void loop()
{
   myo.updatePose();
   switch ( myo.getCurrentPose() ) {
   case rest:
    break;
    case fist:
    play(file_name1);
    break;
    case waveIn:
    play(file_name2);
    break;
    case waveOut:
    play(file_name3);
    break;
    case fingersSpread:
    play(file_name4);
    break;
    case doubleTap:
    play(file_name5);
    break;
   } 
   delay(1000);
}

Credits

Jagadeesh Kumar P

Jagadeesh Kumar P

1 project • 0 followers

Comments