markondej / fm_transmitter

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

audio quality bad, although example-wav good #40

Closed diaphon closed 8 years ago

diaphon commented 8 years ago

Hi! I'm trying to send my .wav-file* (which plays clearly on the jack-output) to the radio-signal, which works (the example star_wars.wav-file plays good), but I get disturbed sound on the radio: sounds distorted with noise. sudo /home/pi/radio/fm_transmitter -f 94.0 -r /home/pi/sounds/sound.wav I allready tried to pipe it with: sox /home/pi/sounds/sound.wav -r 22050 -c 1 -b 16 -t wav - | sudo /home/pi/radio/fm_transmitter -f 94.0 - But this doesn't improve it. I also tried it with omxplayer and aplay, both on RPi2 and RPi3. I also tried to convert the file with media.io as KDragonM mentioned.

Please help me, get -more or less- clean radio-signal of my .wav-file! (Like I said, star_wars.wav plays good.)

diaphon commented 8 years ago

@supersambo solved my problem: My audio-file was simply too quiet. The -v 10 solved the quality-issue:

sox -v 10 sound.wav -r 22050 -c 1 -b 16 -t wav - | sudo ./fm_transmitter -f 94.0 -

thanks @supersambo