PiFmAdv icon indicating copy to clipboard operation
PiFmAdv copied to clipboard

Piping audio from USB microphone input has ticking sound in background

Open Nawor3565 opened this issue 5 years ago • 4 comments

I just bought a USB microphone adapter, so I can use my phone to pipe audio directly into PiFmAdv. However, when piping audio, there is a ticking noise that can be heard around every second. I recorded a few seconds of this, can be heard here. This ticking sound can be heard whether my phone is actually playing audio or not, and even pressing the "mute microphone" button on my USB adapter doesn't stop the sound. I recorded audio with the adapter on my PC, and there isn't any ticking there, and it doesn't happen when transmitting a .wav file directly. I'm not sure what is causing this, but it's very audible even when playing music, so it's rather annoying.

Nawor3565 avatar Oct 02 '18 19:10 Nawor3565

Not sure what's causing this. From my testing playing an audio file supported by pifmadv (libsndfile) is working just fine. But when piping the audio something goes wrong. The ticking noise appears and after a long period of time it even stops transmitting on the desired frequency completely.

miegl avatar Oct 02 '18 21:10 miegl

Please try piping an audio stream with sox or ffmpeg to pifmadv just to confirm that this problem is not caused by the usb sound card.

miegl avatar Oct 02 '18 21:10 miegl

Sorry for late reply, but I can confirm that there's no ticking when piping an MP3 to PiFmAdv with sox. It also doesn't seem to stop transmitting after some time, which is a problem I also have.

Nawor3565 avatar Oct 05 '18 15:10 Nawor3565

Possibly related to https://github.com/Miegl/PiFmAdv/issues/40

miegl avatar Dec 23 '18 22:12 miegl