Open ChoOo7 opened 5 years ago
is there any way to put sox command directly into the config file? Like this:
/usr/bin/librespot --name raspotify --backend pipe "sox command goes here"
I have spent several hours to make it working, so maybe it have a place in the documentation ?
Working example mkdir -p /opt/music/ mkfifo /opt/music/spotify chown raspotify /opt/music/spotify
launching librespot /usr/bin/librespot --name raspotify --backend pipe --device /opt/music/spotify --bitrate 160 --disable-audio-cache --enable-volume-normalisation --linear-volume --initial-volume=100
reading file and sending it to aplay sox -t raw -c 2 -r 44k -e signed-integer -L -b 16 /opt/music/spotify -t .wav - | aplay
same but sending it to several devices sox -t raw -c 2 -r 44k -e signed-integer -L -b 16 /opt/music/spotify -t .wav - | tee >(delay 300 | aplay) | aplay -D bluealsa:HCI=hci0,DEV=00:02:3C:41:45:08,PROFILE=a2dp
you saved me hours much thanks
I have spent several hours to make it working, so maybe it have a place in the documentation ?
Working example mkdir -p /opt/music/ mkfifo /opt/music/spotify chown raspotify /opt/music/spotify
launching librespot
/usr/bin/librespot --name raspotify --backend pipe --device /opt/music/spotify --bitrate 160 --disable-audio-cache --enable-volume-normalisation --linear-volume --initial-volume=100
reading file and sending it to aplay
sox -t raw -c 2 -r 44k -e signed-integer -L -b 16 /opt/music/spotify -t .wav - | aplay
same but sending it to several devices
sox -t raw -c 2 -r 44k -e signed-integer -L -b 16 /opt/music/spotify -t .wav - | tee >(delay 300 | aplay) | aplay -D bluealsa:HCI=hci0,DEV=00:02:3C:41:45:08,PROFILE=a2dp