robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
862 stars 192 forks source link

Zello support #542

Open lbttim opened 2 years ago

lbttim commented 2 years ago

HI, is it possible to add zello as listening service? https://github.com/zelloptt/

robertlynch3 commented 2 years ago

This is probably best done via an upload script. https://github.com/robotastic/trunk-recorder/tree/master/plugins/unit_script

robotastic commented 2 years ago

This is a great idea! I don't have the cycles to take it on, but the Plugin system or the Upload Script would be a great way to add it. I will this open for a little to see if there are folks that would want to contribute to working on this.

aaknitt commented 2 years ago

For real time streaming, the audio_stream() function in a plugin looks like it would be ideal for this, but I'm having some issues with it at the moment (see gitter chat). Here's some reference Python code for sending streaming audio to Zello:

https://github.com/aaknitt/zellostream

An uploadScript could also work but it wouldn't be quite real time.

kb2ear commented 2 years ago

Nothing in trunk-recorder is real time, it always records then processes and then uploads.

aaknitt commented 2 years ago

I have this working using the new simplestream plugin and the zellostreamUDP.py script that I've added here:

https://github.com/aaknitt/zellostream

@kb2ear this is near-real time streaming. The plugin system sends the audio as it's being recorded. There is some latency of course, but no waiting for the recording to be done and then uploading.

Dygear commented 2 years ago

This can be closed and this is amazing work @aaknitt!