Fixed makefile.
[bcl.git] / tests / testSpeech.c
blob68312b86c6dad62b13693b53eb06657001a1f076
1 #include "../bcl.h"
3 main() {
4 int i = 0;
5 initEnvironment();
6 initSpeech();
7 while (!isKeyPressed('q')) {
8 pumpEvents();
9 if (isKeyPressed('a')) {
10 if (i >=50)
11 speak("This is abuse!!!!!!",0);
12 else
13 speak("This is a key press!",0);
14 i++;
16 if (isKeyDown('b'))
17 speak("This is a key down!",SPEAK_INTERRUPTING);
18 if (isKeyDown('c'))
19 speak("I'm speaking!",SPEAK_BLOCKING);
20 if (isKeyPressed('s'))
21 if (isSpeaking())
22 speak("yes, you moron!",SPEAK_INTERRUPTING);
24 terminateSpeech();
25 terminateEnvironment();
26 return 0;