Warning: session_start(): open(/var/lib/php/sessions/sess_ncq8ee4k7qfo3p6ln6cmhjt7bq, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass Katze extends DynModule {
transient O catModule;
transient S imageID = #1101205;
JComponent visualize() {
ret withBottomMargin(centerAndSouth(
jimage(imageID),
buttons()));
}
JComponent buttons() {
ret vstack2(
withMargin(jcenteredbutton("Start Listening", rThread startListening)),
jcenteredbutton("Stop Listening", rThread stopListening));
}
bool loadCat() {
if (catModule == null && !hasBot("Chrome Speech."))
ret true with actuallyLoadCat();
false;
}
void actuallyLoadCat {
catModule = runDependent(#1013936);
}
void listenJustOnce {
print('listenJustOnce);
temp enter();
loadCat();
send("Chrome Speech.", "just once");
}
void startListening {
print('startListening);
temp enter();
if (!loadCat())
send("Chrome Speech.", "start recognition");
}
void stopListening {
temp enter();
sendOpt("Chrome Speech.", "stop recognition");
}
start {
onSpeechRecognized(voidfunc(S s) {
temp enter();
//callOpt(dm_moduleOfType('Hello), 'setText, s);
if (!match("stop listening", s))
dm_setAIBarText(s);
});
}
void cleanMeUp_katze { cleanUp(catModule); catModule = null; }
}