- cmd = 'aplay /var/www/kiosk/attention.wav'
- print(f'Running {cmd}...')
- x = os.system(cmd)
- print(f'---- (done {x}) ----')
- print('[%s] >>>>>>>>>>>>> Detected wakeword %s' % (
- str(datetime.now()), keywords[result])
+ cmd = "aplay /var/www/kiosk/attention.wav"
+ logger.info(
+ "Running %s (attention tone) because I heard the wake-word", cmd
+ )
+ os.system(cmd)
+ logger.debug(
+ ">>>>>>>>>>>>> Detected wakeword %s" % keywords[result]