aiyprojects-raspbian icon indicating copy to clipboard operation
aiyprojects-raspbian copied to clipboard

buzzer_tracker_demo.py will only plays the congratulations.track correctly

Open branflake2267 opened this issue 7 years ago • 3 comments

Running the buzzer_tracker_demo.py only runs the congratulations.track correctly. The other tracks will only play one beep. Version 11.16 and without the latest system update.

Reproduction

  1. cd ./examples/buzzer/
  2. run buzzer_tracker_demo.py dramatic.track
  3. It plays one beep.

branflake2267 avatar Jan 01 '19 18:01 branflake2267

This is also true on my Vision kit (not just a Voice issue). The other demo, buzzer_demo.py, works just fine though. So I'm guessing it's either a bug in the buzzer_tracker_demo code or in the aiy.trackplayer package (TrackPlayer or TrackLoader).

allibell avatar Apr 17 '19 17:04 allibell

Probably resolved by now, but this is caused by a remnant of what appears to be a debug statement, which prevents processing tracks with commands (exits when one of these is encountered). If you remove the lines 343..345 in trackplayer.py, this then works normally: https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/aiy/trackplayer.py#L343...L345

Franchie avatar Mar 14 '20 18:03 Franchie

I've noticed the same issue with my Vision kit. As soon as I got rid of the lines in tackplayer.py it started working.

aklingam7 avatar Aug 20 '20 17:08 aklingam7