External speaker on edge device does not play any mp3 audio when played through terminal ( Ubuntu 18.04)

when i use commands through the terminal ( ffplay or pydub script)no audio is heard the you can see the output running properly. Mp3 audio is heard when I play it manually.

Hi,
It looks like the application does not select appropriate audio device. You may try aplay command and see if the audio playback is good. And see if the application has the option to apply the audio device.

For reference, in gst-launch-1.0 command, we can configure it in alsasink like:
I2S in/out and Gstreamer - #2 by DaneLLL