(text)
| 334 | print("Recording stopped!") |
| 335 | |
| 336 | def tupdate(text): |
| 337 | global stopplayback |
| 338 | global brain |
| 339 | global saidname |
| 340 | global current_conversation_id |
| 341 | global Sleeping |
| 342 | global crow |
| 343 | global is_talking |
| 344 | global listening |
| 345 | print(text) |
| 346 | if Sleeping: |
| 347 | if(contains_word(text.lower(),config.config['name'].lower())): |
| 348 | print("wake") |
| 349 | Sleeping = False |
| 350 | crow.SleepTimer = 0 |
| 351 | else: |
| 352 | crow.SleepTimer = 0 |
| 353 | if is_talking: |
| 354 | if(contains_word(text.lower(),config.config['name'].lower()) and not saidname): |
| 355 | #stop current playback |
| 356 | print("INTERUPT") |
| 357 | stopplayback=True |
| 358 | brain.addSystemMessage("[Interupted]",current_conversation_id) |
| 359 | return |
| 360 | else: |
| 361 | listening=True |
| 362 | |
| 363 | def transcriptstart(): |
| 364 | global crow |
nothing calls this directly
no test coverage detected