0

I am using this command on my raspberry pi:

sox -t mp3 /home/pi/Desktop/ribo.mp3 -t wav - | sudo ./pi_fm_rds -freq 94.5 -audio - 

Basically, it takes all the mp3 files in a directory and changes them to wav files on-the-fly, and then pipes that wav output to pifm. Is there something I can add in that would have it shuffle the files, instead of playing straight through the directory in order?

1 Answer 1

0

Figured it out:

sox -R -t mp3 /home/pi/Desktop/ribo.mp3 -t wav - | sudo ./pi_fm_rds -freq 94.5 -audio -

the -R in the beggining shuffles the files.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.