Using external microphone to detect beats in music (and other audio peaks), Cozmo can make different motion in reaction to different strength of beats. The current beat detection is not strictly real time, and it checks the recorded audio of previous ~0.3 seconds. Dances are not artistically designed, but we hope you can enjoy Cozmo’s literal robot dance, as if baby is reacting to music.
The modules required in addition to the Cozmo
module are:
- pyaudio
The other modules can be installed via pip if not already present:
pip3 install pyaudio