Haha, you listen to the right!
Using the Raspberry Pi can make a radio station, let your radio station to put their favorite music, is so capricious!
?
First, a bunch of geniuses at Imperial College in the UK (for the school that took the big 3D glasses a while ago) wrote a program that could send broadcasts on the Raspberry Pi (PIFM)
However, there is a limit: WAV files need to be played, while sampling and conversion using 16-bit and 22050Hz and mono channels
Simply put, you have to convert the various sound files into the required format before you can play them out.
?
However, the Internet is still very powerful, and a man himself will ffmpeg+pifm together =pifmplayer
That is to say, you are casually (and not so casually) what sound files are put into the program, which helps you (or tries to help you) convert to the desired format, and then plays it out with your chosen radio frequency.
?
Gossip less, open dry!
#Download Pifmplay wget Https://github.com/Mikael-Jakhelln/PiFMPlay/archive/master.zip #Unzip it; Unzip Master.zip; Move the ' pifmplay ' folder to/home/pi: MV Pifmplay-master/pifmplay ~/pifmplay #Go into the Pifmplay folder CD ~/pifmplay #Then Add execution permissions: sudo chmod +x pifm pifmplay #Download & Install Media Converters sudo apt-get install FFmpeg sox Libsox-fmt-all #Now Edit you Users bash config file Nano ~/.BASHRC #type this at the bottom of the file Export path= $PATH: ~/pifmplay #restart the Pi sudo reboot #Attach a 30cm wire-to-GPIO4 (that ' s Pin-7) ? #Turn your fm-radio to Frequency "87.6", start fm-broadcast with Pifmplay ~/pifmplay/starwars.wav 87.6 #For folder batch play, start with Pifmplay ~/pifmplay 87.0 |
?
Connected to a DuPont line, the launch distance can reach 100m+, but the ability to wear the wall is not (of course, too strong estimate someone to check your home water meter luo) ~ ~ ~
?
Andy Yang
2015.10.24
Raspberry Pi Station