/* program to test eSpeakTalk with strings of different lengths */ /* Compile this program with the line * gcc -I/home/walker/Myro/include/MyroC -L/home/walker/Myro/lib -leSpeakPackage - lMyroC -ljpeg -lbluetooth -o eSpeakExample1 eSpeakExample1.c * or * make eSpeakExample1 */ #include "eSpeakPackage.h" int main () { eSpeakConnect ();//connect to eSpeakSpeak eSpeakTalk ("move forward and turn right"); eSpeakTalk ("move forward and turn right again"); eSpeakTalk ("move and turn a third time"); eSpeakSetGender ("female"); // specify voice characteristics eSpeakTalk ("move forward and turn left"); eSpeakTalk ("move forward and turn left again"); eSpeakTalk ("move and turn a third time"); eSpeakSetGender ("male"); // specify voice characteristics eSpeakTalk ("Part 3 repeats Part 1"); eSpeakTalk ("move forward and turn right"); eSpeakTalk ("move forward and turn right again"); eSpeakTalk ("move and turn a third time"); eSpeakTalk ("Enough of this; I am going to stop now"); eSpeakDisconnect (); }