poc for translation
This commit is contained in:
parent
1432c5b400
commit
f026debfa0
4 changed files with 65 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue