Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


How to set optimum Spotify audio format?
#1
Question 
Hi all,

I'm always looking to improve sound quality and trying to do that for the Spotify renderer as well. But I struggle a bit with how to select best settings for my hardware.

I have two RPi's, both connected to an USB DAC (a Peachtree audio decco65 dac/amplifier and a Highres microstreamer).

Not sure if you can see the attached picture, but in Spotify Config I set bitrate to 320 and the audio format to S24 as the DAC is 24bit. However I'm doubting a bit if the latter setting is correct. How to I find out the max output format my DAC supports?

I've tried suggestions like aplay -L and librespot --device ? commands in terminal but they do not give me a supported format. 

Any suggestions how to proceed on this one, many thanks for your support in advance!


Attached Files Thumbnail(s)
   
Reply
#2
(10-07-2022, 09:16 AM)Falco Wrote: Hi all,

I'm always looking to improve sound quality and trying to do that for the Spotify renderer as well. But I struggle a bit with how to select best settings for my hardware.

I have two RPi's, both connected to an USB DAC (a Peachtree audio decco65 dac/amplifier and a Highres microstreamer).

Not sure if you can see the attached picture, but in Spotify Config I set bitrate to 320 and the audio format to S24 as the DAC is 24bit. However I'm doubting a bit if the latter setting is correct. How to I find out the max output format my DAC supports?

I've tried suggestions like aplay -L and librespot --device ? commands in terminal but they do not give me a supported format. 

Any suggestions how to proceed on this one, many thanks for your support in advance!

I believe that if the supported format of your dac is S24 you might want to use S32

Cheers, Al.
Reply
#3
Try the commands below.

Code:
moodeutl -f

moodeutl -F

# Help
pi@moode:~ $ moodeutl --help
Usage: moodeutl [OPTION]
Moode utility programs

With no OPTION print the help text and exit.

 -a             Print features availability
 -A [add|rm N]  Update features availability
 -d             Dump session file (requires sudo)
 -D [var name]  Delete session variable (requires sudo)
 -e [filename]  Export settings to [filename] or ./moodecfg-<timestamp>.ini
 -i             Import settings (/boot/moodecfg.ini)
 -f             Print supported audio formats
 -F             Print full alsacap info
 -l             Print moode log
 -m             Run system monitor
 -s             Print system info
 -c             Detect CIFS (SMB) hosts
 -C             Detect CIFS (SMB) shares [host or ip address]
 -N             Detect NFS hosts
 -M             Detect MPD hosts
 -o             List audio overlays
 -p             Import playlists
 -q             Query sql database
 -r             Restart servers
 -R             Restart renderer [--bluetooth | --airplay | --spotify | --squeezelite | --roonbridge]
 -t             Print last 10 lines of moode log and wait
 -u             Check radio station urls for playability
 -U             Check station urls, list only unplayable
 --btreset      Reset Bluetooth to off
 --mpdlog       Print MPD log
 --updlog       Print in-place update log
 --mooderel     Print moOde release
 --revision     Print hardware revision
 --version      Print program version
 --help         Print this help text

Example:
Code:
# Just the bit depths

pi@moode:~ $ moodeutl -f
S16_LE, S24_LE, S32_LE

# Bit depths and sample rates

pi@moode:~ $ moodeutl -F
*** Scanning for playback devices ***
Card 0, ID `BossDAC', name `BossDAC'
 Device 0, ID `Boss DAC HiFi [Master] pcm512x-hifi-0', name `Boss DAC HiFi [Master] pcm512x-hifi-0', 1 subdevices (1 available)
   2 channels, sampling rate 8000..384000 Hz
   Sample formats: S16_LE, S24_LE, S32_LE
   Buffer size range from 64 to 131072
   Period size range from 32 to 65536

     Subdevice 0, name `subdevice #0'

# Supported formats are also printed in the moOde startup log

Code:
pi@moode:~ $ moodeutl -l | grep "Audio formats"
20221006 121251 worker: Audio formats (S16_LE, S24_LE, S32_LE)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(10-07-2022, 12:24 PM)Tim Curtis Wrote: Try the commands below.

Code:
moodeutl -f

moodeutl -F

# Help
pi@moode:~ $ moodeutl --help
Usage: moodeutl [OPTION]
Moode utility programs

With no OPTION print the help text and exit.

 -a             Print features availability
 -A [add|rm N]  Update features availability
 -d             Dump session file (requires sudo)
 -D [var name]  Delete session variable (requires sudo)
 -e [filename]  Export settings to [filename] or ./moodecfg-<timestamp>.ini
 -i             Import settings (/boot/moodecfg.ini)
 -f             Print supported audio formats
 -F             Print full alsacap info
 -l             Print moode log
 -m             Run system monitor
 -s             Print system info
 -c             Detect CIFS (SMB) hosts
 -C             Detect CIFS (SMB) shares [host or ip address]
 -N             Detect NFS hosts
 -M             Detect MPD hosts
 -o             List audio overlays
 -p             Import playlists
 -q             Query sql database
 -r             Restart servers
 -R             Restart renderer [--bluetooth | --airplay | --spotify | --squeezelite | --roonbridge]
 -t             Print last 10 lines of moode log and wait
 -u             Check radio station urls for playability
 -U             Check station urls, list only unplayable
 --btreset      Reset Bluetooth to off
 --mpdlog       Print MPD log
 --updlog       Print in-place update log
 --mooderel     Print moOde release
 --revision     Print hardware revision
 --version      Print program version
 --help         Print this help text

Example:
Code:
# Just the bit depths

pi@moode:~ $ moodeutl -f
S16_LE, S24_LE, S32_LE

# Bit depths and sample rates

pi@moode:~ $ moodeutl -F
*** Scanning for playback devices ***
Card 0, ID `BossDAC', name `BossDAC'
 Device 0, ID `Boss DAC HiFi [Master] pcm512x-hifi-0', name `Boss DAC HiFi [Master] pcm512x-hifi-0', 1 subdevices (1 available)
   2 channels, sampling rate 8000..384000 Hz
   Sample formats: S16_LE, S24_LE, S32_LE
   Buffer size range from 64 to 131072
   Period size range from 32 to 65536

     Subdevice 0, name `subdevice #0'

# Supported formats are also printed in the moOde startup log

Code:
pi@moode:~ $ moodeutl -l | grep "Audio formats"
20221006 121251 worker: Audio formats (S16_LE, S24_LE, S32_LE)
Thanks Tim!
I'll test when I'm home, and then I just choose the highest supported one I guess?
Reply
#5
Just tried. I get....
So S32 it is then

Linux: 11.3 | 5.15.32-v8+ #1538 | aarch64 (64-bit)
Raspi: Pi-3B+ 1.3 1GB
Audio: Peachtree 24/192 USB X

____ __ ___
__ _ ___ / __ \___/ /__ ( _ )
/ ' \/ _ \/ /_/ / _ / -_) / _ |
/_/_/_/\___/\____/\_,_/\__/ \___/

moOde audio player
Release 8.2.0 2022-09-16
© 2014 Tim Curtis


The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.

To set a new password for the user 'pi' type 'passwd'.

pi@moode-woonkamer:~ $ moodeutl -f
S32_LE
pi@moode-woonkamer:~ $ moodeutl -F
*** Scanning for playback devices ***
Card 0, ID `b1', name `bcm2835 HDMI 1'
Device 0, ID `bcm2835 HDMI 1', name `bcm2835 HDMI 1', 4 su
bdevices (4 available)
1..8 channels, sampling rate 8000..192000 Hz
Sample formats: U8, S16_LE
Buffer size range from 80 to 131072
Period size range from 80 to 131072

Subdevice 0, name `subdevice #0'
Subdevice 1, name `subdevice #1'
Subdevice 2, name `subdevice #2'
Subdevice 3, name `subdevice #3'
Card 1, ID `Headphones', name `bcm2835 Headphones'
Device 0, ID `bcm2835 Headphones', name `bcm2835 Headphone
s', 4 subdevices (4 available)
1..8 channels, sampling rate 8000..192000 Hz
Sample formats: U8, S16_LE
Buffer size range from 80 to 131072
Period size range from 80 to 131072

Subdevice 0, name `subdevice #0'
Subdevice 1, name `subdevice #1'
Subdevice 2, name `subdevice #2'
Subdevice 3, name `subdevice #3'
Card 2, ID `X', name `Peachtree 24/192 USB X'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (
1 available)
2 channels, sampling rate 44100..192000 Hz
Sample formats: S32_LE
Buffer size range from 16 to 131072
Period size range from 8 to 65536

Subdevice 0, name `subdevice #0'
Reply


Forum Jump: