From a80575a3810c466f86b3329be3d03f83dd4c0f4f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 11 Oct 2025 22:20:52 -0700 Subject: [PATCH] Update radio.py --- modules/radio.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/radio.py b/modules/radio.py index 29536b0..e6ed060 100644 --- a/modules/radio.py +++ b/modules/radio.py @@ -1,15 +1,18 @@ # meshing around with hamlib as a source for info to send to mesh network # detect signal strength and frequency of active channel if appears to be in use send to mesh network # depends on rigctld running externally as a network service +# also can use VOX detection with a microphone and vosk speech to text to send voice messages to mesh network +# requires vosk and sounddevice python modules # 2024 Kelly Keeton K7MHI -import socket -import asyncio -from modules.log import * - voxHoldTime = signalHoldTime previousVoxState = False +if radio_detection_enabled: + import socket + import asyncio + from modules.log import * + if voxDetectionEnabled: try: import sounddevice as sd # pip install sounddevice sudo apt install portaudio19-dev