I'll give it a try but i read everywhere the pi4 run audio output on pwm so you must disable it if you wont to run something else
Code
PWM
Since this library and the onboard Raspberry Pi audio both use the PWM, they cannot be used together.
If i don't find a way i'm thinking to go with esp8266 wifi to control them so i overcome any gpio problem.
Anyway I'll share the results if i made it