How to use PWM as Audio

Hello,
I want use PWM as audio like rpi (This example)

How to do this ?

Best Regards

From online availble SoC Datasheet (RDA8810PL), I undestand that PWM is available on GPO_0 (PWT) or GPO_2 (PWL_1). From pi96 Board schematics, we can see these pins are not routed to any header.

Pins 16, 18, 20, and 22 make up an i2s port.
Wouldn’t it make a lot more sense to use an i2s codec?

Edit: You could use something like this: Adafruit I2S Stereo Decoder - UDA1334A Breakout : ID 3678 : $6.95 : Adafruit Industries, Unique & fun DIY electronics and kits
With a level shifter, like this: TXB0104 Bi-Directional Level Shifter [TXB0104] : ID 1875 : $3.50 : Adafruit Industries, Unique & fun DIY electronics and kits