09-05-2021, 11:36 AM
(This post was last modified: 09-06-2021, 06:49 AM by DRONE7.
Edit Reason: code tags....please use them folks
)
(09-05-2021, 10:31 AM)Tim Curtis Wrote:Tim, thanks for your quick response. Here is the output:(09-05-2021, 01:45 AM)pyhfsg Wrote:(09-05-2021, 01:19 AM)Tim Curtis Wrote: Menu, Configure, MPD settings
SoX resampling
Yes, it works![]()
Finally, I can hear sound from RPi USB. I played the web radio, it works fine, sound as expected. Thanks so much.
Now, how do I get Spotify and Airplay to work, the reason I embarked on this project. I looked at the Spotify and Airplay config in Moode, I did not see the same sampling rate I can choose. Any suggestion?
Airplay only offers multiples of 44.1 rate and Spotify only supports 44.1 output rate. If the DAC in these speakers only accepts 48K rate then you are out of luck with Airplay and Spotify, at lease as far as moOde built-in options go for these renderers.
You can try running the alsacap utility to see what bit depths and sample rates the DAC supports.
Code:moodeutl -F
or
alsacap
Code:
alsacap:
Card 2, ID `AM3', name `PSB Alpha AM3'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
2 channels, sampling rate 8000..48000 Hz
Sample formats: S16_LE
Buffer size range from 32 to 262144
Period size range from 16 to 131072
moodeutl -F
Card 2, ID `AM3', name `PSB Alpha AM3'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
2 channels, sampling rate 8000..48000 Hz
Sample formats: S16_LE
Buffer size range from 32 to 262144
Period size range from 16 to 131072
Did I read correctly that Card 2 supports sampling rate between 8000 and 48000Hz?