markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.32k stars 292 forks source link

Unable to play other audio files #151

Open Ernie12345 opened 3 years ago

Ernie12345 commented 3 years ago

I have been able to successfully use this to transmit the original audio file in the files (acoustic_guitar_duet.wav), but seem to be unable to import my own audio files in order to use them. I have tried to change the Permissions on the file to allow me to move a different file into it, but i am unable to change them to allow anyone to edit the file. Currently it only lets the owner make changes and move different audio files into the original file to be used with this code. It seems like a simple thing to fix, but I can't find out how.. I'm sure it doesn't help that I'm quite new to programming, but any help would be appreciated

markondej commented 3 years ago

There's no need for overwritting demo file. Please try playing WAV using sox as described here: https://github.com/markondej/fm_transmitter#supported-audio-formats

ie.

sox my_file.wav -r 22050 -c 1 -b 16 -t wav - | sudo ./fm_transmitter -f 100.6 -