Triggering sounds with P5js

Hi there! In my project, I am loading a Teachable Machine model into the script, trained on a pose model to give classification results of two output classes - left or right hand. Then I am trying to trigger a sound if the prediction of the class is ‘left’. But I am getting all sorts of errors in the console, when trying to do so. Could anyone help me? Thanks!

I am loading a Teachable Machine model into the script, trained on a pose model to give classification results of two output classes - left or right hand. Then I am trying to trigger a sound if the prediction of the class is ‘left’.

[ 7:23 PM ]

thanks!

[ 7:23 PM ]

thanks!