Hej out there,
I am kind of stuck in a project with a pi zero and a phat dac.
I have a small programm in python3 to activate web streams via a rotary dial phone, the project works just fine with the pi model 2, the different web radio stations are played fine by the audio jack.
Below is the code to run the stream with mpg123:
streamProcess = subprocess.Popen([‘mpg123’, url])
As the rotary phone is too small, I installed a phat dac on a pi zero, sound test (speaker-test c2) works fine in the terminal. When I insert the same sd card from the pi2 into the pi zero, the program works fine, streams are loaded, but there is no sound out of the audio jack.
It seems that mpg123 uses another audio device or output.
I tried to force it to alsa with the code below, but no sound at all. the rest is just fine…
streamProcess = subprocess.Popen([‘mpg123’, url, ‘-o alsa’])
also tried mpg123 ‘-s’ and other ideas, but now I am totally stuck.
Does anyone have an idea to solve this?
Any help would be much appreciated!