Audio Playing

The topic provides examples for playing an audio file.

The following code block shows the example in different scenarios.
  • Play an audio file with PWMDAC:

    Required devices: JH7110 EVB or VisionFive 2

    ffmpeg -i test1-32k-16b.wav -f alsa -acodec pcm_s16le hw:0,1
  • Play an audio with wm8960:

    Required devices: JH7110 EVB + wm8960 audio board or VisionFive 2 + wm8960 audio board

    ffmpeg -i test1-16k-32b.wav -f alsa -acodec pcm_s32le hw:0,1