AUTHOR: Cynthia

Outcome

Initial Goal: Sound threshold trigger

Realized Outcome: Yes (portaudio and respeaker bug — inconsistent warning but we're using it to sense not playback or recording)

Hardware Requirements: respeaker USB array for Reachy, but can be any mic input configured for appropriate collection of audio data

Steps to Outcome

Install requirements

  1. Install packages with root privileges, apt-get install

    alsa-utils

    portaudio19-dev

  2. sudo pip install soundmeter (background process)

Then...

  1. Save below 'Reference Files', config (optional, if needed), trigger.sh bash script, and espeak python script that can be run for random messages
  2. Command line to run to trigger script with threshold (threshold needs to be tuned for your own environment a loud clap or shutting of doors may be 1.5 to 2.0x higher than normal noise levels)
soundmeter --trigger +2000 --action exec --exec ~/.soundmeter/trigger.sh

Also, USB webcam — fswebcam package to take test images (in trigger.sh)

Note: Reference Files on rPi4 / Circuit Launch Setup

Notes & Learning

Integration Notes/Tips

TBD

Bug Fixes to Investigate

TBD

References

[Code for trigger.sh and espeak python script](https://circuitlaunch.notion.site/Code-for-trigger-sh-and-espeak-python-script-ecd0367655fb441c8f4741acefa6427a)