Long time user of the sound card input streaming setup.
Trying to help my brother with an issue using truck recorder and UDP stream.
I see where the following section of code is trying to use all of the possible 'data' inputs for counting quiet samples...however the actual playback in the Zello App does not reflect that.
if config["audio_source"] == "Sound Card":
data = record_chunk(config, audio_input_stream, channel=config["in_channel_config"])
elif config["audio_source"] == "UDP":
data = get_udp_audio(config,seconds=0.06, channel=config["in_channel_config"])
else:
data = frombuffer(b'',dtype=short)
if len(data) > 0:
max_audio_level = max(abs(data))
else:
max_audio_level = 0
if len(data) == 0 or max_audio_level < config["audio_threshold"]:
quiet_samples = quiet_samples + 1
else:
quiet_samples = 0
Sound card inputs stream all data (even below audio threshold) until the quiet samples counter has filled.
The UDP configuration does not send any data during the VOX silence time because there is no data.
The zello phone app cuts the playback of a stream with no data.
Maybe the solution would be to send artificial silent packets?
What program are you using as the UDP audio source? I'm trying to reproduce this but having some trouble...it seems to work well when using trunk-recorder as the source.
Long time user of the sound card input streaming setup.
Trying to help my brother with an issue using truck recorder and UDP stream. I see where the following section of code is trying to use all of the possible 'data' inputs for counting quiet samples...however the actual playback in the Zello App does not reflect that.
Sound card inputs stream all data (even below audio threshold) until the quiet samples counter has filled.
The UDP configuration does not send any data during the VOX silence time because there is no data. The zello phone app cuts the playback of a stream with no data. Maybe the solution would be to send artificial silent packets?