It uses the aplay command as this seems to work much faster than omxplayer which does support MP3 files but has an unacceptable lag between pressing the button and sound coming out. It only supports WAV files because I wanted it to work on a Raspberry Pi out of the box with no internet access required and no need to install any new Python libraries or other audio players. If you want to use a bigger display you could rejig the code. The layout is optimised for a 800 x 480 pixel display like the Pimoroni HyperPixel. Run picartwall.py and it will assign a button to the first 14 WAV files it finds in alphanumeric order. Any other files, including MP3s, will be ignored. Place some WAV files in /home/pi/Music/ on your Raspberry Pi, up to 14. First download picartwall.py from my Github page. It could be used in student, hospital or community radio or for playing sound effects in a play. It does not require ANY other software or libraries to be installed, all you need is a Raspberry Pi with Raspbian installed, some WAV files in your Pi’s defualt Music folder – and a touch screen for full effect. This is designed to do the same on a bog-standard Raspberry Pi connected to a touch screen. What it doesĬartwalls are used in radio studios to play in jingles at the touch of a button. A Raspberry Pi radio / theatre cartwall to play jingles or sound FX instantly using a touch screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |