File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ def main_loop(self):
216216 sys .exit ()
217217
218218 if event .key == pygame .K_p and self .working and not self .playing_audio : # Cancel recording
219- self .cancel = True
219+ #self.cancel = True
220+ info ('Function depreciated: say "cancel message please" and press space to stop' , 'bad' )
220221
221222 if event .key == pygame .K_ESCAPE : # Exiting without saving
222223 info ('Exiting (Sounds may continue to play until finished)' )
@@ -505,6 +506,13 @@ def listen_for_audio(self, load_run=False):
505506 self .stop_working (tag = True )
506507 return
507508
509+ elif any (phrase in speech for phrase in ['ancel message please' , 'ancel message, please' ,
510+ 'lease cancel message' , 'ancel message. Please' ]):
511+ info ('Cancelled Message' , 'good' )
512+ robospeak ('Cancelled Message' )
513+ self .stop_working (tag = True )
514+ return
515+
508516 elif ('lease toggle eleven labs' in speech or
509517 'lease toggle 11 labs' in speech or
510518 'lease toggle 11 laps' in speech ):
You can’t perform that action at this time.
0 commit comments