[wpdev-commits] xmlscripts/scripts/speech barber.py,1.13,1.14
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-18 15:02:54
|
Update of /cvsroot/wpdev/xmlscripts/scripts/speech In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8680/speech Modified Files: barber.py Log Message: Fixed the barber. Index: barber.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/speech/barber.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** barber.py 26 May 2004 13:07:25 -0000 1.13 --- barber.py 18 Sep 2004 15:02:45 -0000 1.14 *************** *** 46,54 **** def onSpeech( listener, speaker, text, keywords ): # Check if our name is in the beginning of the string ! #if not text.lower().startswith( listener.name.lower() ): ! # return 0 if ( speaker.distanceto( listener ) > 4 ): return 0 if ( abs( speaker.pos.z - listener.pos.z ) > 5 ): return 0 --- 46,58 ---- def onSpeech( listener, speaker, text, keywords ): # Check if our name is in the beginning of the string ! if not text.lower().startswith( listener.name.lower() ) and not text.lower.startswith( 'vendor' ): ! return 0 ! ! if 369 not in keywords and 60 not in keywords: ! return 0 if ( speaker.distanceto( listener ) > 4 ): return 0 + if ( abs( speaker.pos.z - listener.pos.z ) > 5 ): return 0 |