Testing audio playback from command line


#1

I’m in the process of building my custom Zynthian. While I work on an MCP23017 based encoder setup, I’d like to test the audio playback of my audio board. What is the best way to do this from the command line? Thanks,

  • Dave

#2

Hi Dave,

mpg123 ./data/audio/test.mp3

For details:

Kind regards,
Markus


#3

Thanks. As others have mentioned, this only appears to work if you have some sort of encoder setup. With encoders set to DUMMIES this did not play.


#4

It should work if your audio interface is correctly configured. What soundcard are you using?

Regards!


#5

SainSmart:

Once I installed the encoders and navigated to the audio test option, it worked fine.


#6

Nice! Does it use the Hifiberry drivers?


#7

Yup. I use the HiFiBerry DAC+ in the Audio part of the webconf. Once I got the MCP23017 based encoders working audio and midi tests play fine.

The Sainsmart is quite a bit cheaper than the HiFiBerry family but it doesn’t give you the breakout header so I had to solder on a double row pin header to the top of the board:

If you look below the 40 pin cable (old IDE cable) you can see the solder joints joining the double row 40pin header to the to the DAC.


#8

Is there an ‘approved’ way of playing a audio file from the zynthian interface, ideally with a playlist?