RPi0W dtoverlay for pwm audio


Running latest dietpi on raspberry pi zero w.

Tried to get audio through pwm as per below link

But playing audio (.wav) says no file.

root@DietPi:/mnt/dietpi_userdata/Music# ls
hey.wav pink.wav song.mp3
root@DietPi:/mnt/dietpi_userdata/Music# aplay hey.wav
aplay: main:828: audio open error: No such file or directory

Tried aplay -l
root@DietPi:/mnt/dietpi_userdata/Music# aplay -l
aplay: device_list:272: no soundcards found…

Searching further found these posts
Can you guys guide me to implement it…

pi@raspberrypi:~$ dtoverlay -h audremap
Name:   audremap

Info:   Switches PWM sound output to GPIOs on the 40-pin header

Usage:  dtoverlay=audremap,<param>=<val>

swap_lr: Reverse the channel allocation, which will also swap the audio jack outputs (default off)

enable_jack: Don't switch off the audio jack output (default off)
        pins_12_13              Select GPIOs 12 & 13 (default)
        pins_18_19              Select GPIOs 18 & 19