How to make grove speaker work on raspberry pi 4

Hey guys,
I want to connect the grove speaker on raspberry pi and make it work. I am confusing about one thing. Do we need any library to make grove speaker work on RPI or we can do by initializing it as per pin configuration and also about the connections?


Sorry, this can’t be used directly on RPI4.A digital analog converter is required.

Hello are you able to solve this? is it need dac?