Hi!I'm running a Rasperry Pi with squeezelite using pulseaudio as unattended radio station. I'd like to let cron play a file at a special time of day and mixing it with the already playing stream. Unfortunately I cannot connect to the pulseaudio server while it is already playing and an additional sound file is not played.
The user "radio" is in group "pulse-access" and starts pulseaudio with X11 login:
$ ps aux | grep pulseradio 665 8.6 2.0 716220 19132 ? S<sl Jul17 272:13 /usr/bin/pulseaudio --daemonize=no radio 786 6.3 1.9 390488 18596 ? Ssl Jul17 200:53 /usr/bin/squeezelite -o pulse -n radiopi -z -a 16
Using ssh (user radio) to this remote Raspberry Pi radio station and trying to play a file I get
radio@radiopi:~ $ cvlc --play-and-exit /usr/share/sounds/alsa/Front_Center.wav
VLC media player 3.0.7 Vetinari (revision 3.0.7-0-g86cee31099)[00545548] vlcpulse audio output error: PulseAudio server connection failure: Connection refused [00555db0] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00555db0] main interface error: no suitable interface module [004c8b70] main libvlc error: interface "dbus,none" initialization failed [00569760] main interface error: no suitable interface module[004c8b70] main libvlc error: interface "globalhotkeys,none" initialization failed
[00569760] dummy interface: using the dummy interface module... [005274c8] main playlist: end of playlist, exiting Same with paplay: $ paplay /usr/share/sounds/alsa/Front_Center.wav Connection failure: Connection refused How can I play additional files and to mix these streams? Why is the connection refused although I am the same user? Thanks! Best regards, Alexander
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss