poc for translation

This commit is contained in:
grizzly 2026-02-26 23:17:44 -05:00
parent 1432c5b400
commit f026debfa0
4 changed files with 65 additions and 1 deletions

View file

@ -11,7 +11,7 @@ CHUNK_SECONDS = 3 # record N seconds, then transcribe
DEVICE = None # None = default mic, or set to device index
# --- Setup ---
model = WhisperModel(MODEL_SIZE, device="cpu", compute_type="int8")
model = WhisperModel(MODEL_SIZE, device="cuda", compute_type="int8")
audio_queue = queue.Queue()
def audio_callback(indata, frames, time, status):