You will always need to alter the path name if you uesd another username than me ( air). This is true that GIF files dont support audio music. If not correct the path name in the script according to your system setup. Try to take a look at the USB drive location with the Terminal app (command: ls /media/"username"/) to see if it matches the path name given in the sound_looper.py script. Reboot the Pi, and wait for the sound to play DONE :-) IF THERE IS NO SOUND. Make sure you have inserted a USB drive named AIR_DISK, and that it has a soundfile called "sound.wav" in the root directory. In our case we are using a USB sound interface, it is called USB Audio in the list. Then choose the sound device you would like the audio to use. Sudo raspi-config to open the system settings. Press ctrl+x to exit followed by shift+y to save. Sudo nano /etc/xdg/lxsession/LXDE-pi/autostartĪdd this line in the end of the autostart /home/air/sound_looper.py (correct if you changed the username)
Type the following in a terminal window to open the autostart text file media/YOUR_USERNAME/AIR_DISK/sound.wav AUTOSTART AT BOOT
Open the script and correct the path name to reflect your username. This simple two-step process will show you how to make infinite loop videos. home/"usernme"/ - in my case /home/air/ or if you are using the standard username then it is /home/pi/ Place a copy of the Python file sound_looper.py in the home directoryÄ®.g. They should be preinstalled with the Raspberry Pi OS. Make sure you have the following two modules. It was intended to support multiple consecutive images, which are a simple animation.
wav audio file on a USB drive from a Raspberry Pi. It was revolutionary when it first came out. Put the Mode setting on Normal and make sure the Loop Count is placed at 0 to create an endlessly looping GIF.