When I was just about to scan the forum for a solution to my problem, I discovered it was gone. Many thanks for setting up a new forum so I can post my question. Hopefully it is one you can help me with.
I am trying to set up the one-button-audio-book on a raspberry Pi as a gift for my girlfriend's blind grandma.
Among other things, it uses MPD, MPC and a python script.
What should happen is that when you start the script and plug in a usb-stick, the files on the stick are copied to the RPi. After unplugging the USB-stick, the player should start automatically start or you can press the start/pause button.
I have checked the python script and it all seem to work, the files are copied from the stick to the RPi, the button works, and the led too... but no soundfiles are played.
When I play one of the copied soundfiles with mpg123 by typing:
Code: Select all
/music/mp3 $ mpg123 file0.mp3
I think it has got something to do with creating the playlist or permissions.
I have changed the permissions of the files MPD needs (including the soundfiles) to the user mentioned in /etc/mpd.conf whichin my case is "mpd" according to the instructions mentioned here
Added to that I set the file-permissions of the soundfiles to 777 according to(wards the bottom of this thread:
I know MPC and MPD are running because when I type:
Code: Select all
$ mpc
Code: Select all
volume: 77% repeat: off random: off single: off consume: off
Code: Select all
/music/mp3 $ mpc add file0.mp3
Code: Select all
error: directory or file not found
Code: Select all
/music/mp3 $ mpc add /music/mp3/file0.mp3
When I do:
Code: Select all
/music/mp3 $ mpc ls|mpc add
Code: Select all
/music/mp3 $ mpc listall
When I type:
Code: Select all
/music/mp3 $ mpc play
What on earth am I missing here?
I hope you can help me making life a little more pleasant for Granny.
Many thanks in advance.
Erik.