On file library.properties
This name is already being used by another library: https://github.com/TMRh20/TMRpcm
When I installed dependency "PCM" on the platformio.ini of my project it installed the one above, causing compilation errors with your example code.
My workaround was to specify your library via id: