librespot icon indicating copy to clipboard operation
librespot copied to clipboard

Adding some pipe output example for newbies

Open ChoOo7 opened this issue 7 years ago • 2 comments

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

ChoOo7 avatar Aug 06 '18 15:08 ChoOo7

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"

nosorozec avatar Nov 02 '18 20:11 nosorozec