You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following command: for i in 500; do sox -t mp3 /home/pi/x2music/$(ls | shuf -n 1) -t wav - | sudo /home/pi/PiFmRds/src/pi_fm_rds -freq 87 -audio -; done
which selects a random file from my folder and plays it. The problem is, once a single song finishes, the loop stops. I can't do multiple songs without actually being there to run the code. Any idea how I could do this?
The text was updated successfully, but these errors were encountered:
I have the following command:
for i in 500; do sox -t mp3 /home/pi/x2music/$(ls | shuf -n 1) -t wav - | sudo /home/pi/PiFmRds/src/pi_fm_rds -freq 87 -audio -; done
which selects a random file from my folder and plays it. The problem is, once a single song finishes, the loop stops. I can't do multiple songs without actually being there to run the code. Any idea how I could do this?
The text was updated successfully, but these errors were encountered: