Skip to content

Adding some pipe output example for newbies #288

@ChoOo7

Description

@ChoOo7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions