Tanya's Speaker pHat tutorial


#1

Hi (Tanya Fish), I’ve used the ‘Say Anything with a Speaker pHat’ tutorial but am not getting any playback on reboot.

However it I replace the crontab code @reboot cvlc mixtape.xspf & with @reboot omxplayer -o alsa mixtape.wav I do get playback (and the VU meter works too)

Any ideas? Does the .xspf file have to be in a specific location? Also do the sound files have to be in a specific location?

Thanks
Andrew

the Speaker pHat is connected to a Pi Zero v1.3
I am runing raspbian 4.9.59= #1047


#2

I’m on my Xmas break far away from a pi, but I will have a tinker with it on my return on the 2nd - do you get output when running the command manually instead of from cron?


#3

I’ll give that a try

Results:

pi@raspberrypi:~ cvlc one.xspf VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c) [006f4dc8] core interface error: no suitable interface module [00646918] core libvlc error: interface "globalhotkeys,none" initialization failed [006f7930] dummy interface: using the dummy interface module... [006e2928] core playlist: stopping playback ^Cpi@raspberrypi:~
pi@raspberrypi:~ pi@raspberrypi:~ cvlc one.xspf &
[1] 854
pi@raspberrypi:~ VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c) [0120edb0] core interface error: no suitable interface module [01160918] core libvlc error: interface "globalhotkeys,none" initialization failed [01211918] dummy interface: using the dummy interface module... [011fc928] core playlist: stopping playback ^C pi@raspberrypi:~