Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transmit Discontinuous Audio #64

Open
JohnDN90 opened this issue Aug 8, 2019 · 1 comment
Open

Transmit Discontinuous Audio #64

JohnDN90 opened this issue Aug 8, 2019 · 1 comment

Comments

@JohnDN90
Copy link

JohnDN90 commented Aug 8, 2019

I am using a "radio scanner" like application (OP25) to receive and decode digital to audio and then I am trying to re-broadcast the audio to my FM radio using PiFmAdv. OP25 outputting the audio via wireshark, and then I use nc piped to sox piped to PiFmAdv to transmit the audio.

The audio input to PiFmAdv is not constant, like an audio file or an always on microphone. It is essentially acting like a microphone being keyed and unkeyed. The issue I am having is that when the audio is "unkeyed", PiFmAdv just broadcasts the last 0.5 seconds or so of the audio continuously like an echo, until it gets new audio from OP25 to transmit.

Is there a way around this? Perhaps a way to tell PiFmAdv to transmit silence when audio input is not present?

Edited for clarity.

@miegl
Copy link
Owner

miegl commented Aug 8, 2019

Hm, I'm curious if Sox provides a constant audio stream in this case...
If Sox isn't providing a constant audio stream and PiFmAdv has to wait for Sox to provide more samples then the best solution is to make the audio stream constant before piping it to PiFmAdv.
Anyhow I'll look into it when I have more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants