Shuffle Files In A Dir With Sox (Endlesssly)
I have a directory full of mp3s - /home/pi/Desktop/Music - and I want to be able to shuffle all the songs in the dir, so when I use sox to convert them into wma files on-the-fly, they will all be shuffled, and it will endlessly play through all the files in a andom order. My current command is:
sox -R -t mp3 /home/pi/Desktop/Music/*.mp3 -t wav -r 44100 -
(The results get piped into pim):
sox -R -t mp3 /home/pi/Desktop/Music/*.mp3 -t wav -r 44100 - | sudo ./pi_fm_rds -freq 94.5 -audio - -ps ZSFM -rt ZSFM
How can I shuffle all the files in this dir on-the-fly with sox?