From eb58ec0ca5f95bd1e0806a15921912e516ed9531 Mon Sep 17 00:00:00 2001 From: rnentjes Date: Sun, 8 Jun 2025 19:53:19 +0200 Subject: [PATCH] Add project dependencies and setup instructions in `requirements.txt` --- speech2text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech2text.py b/speech2text.py index 07ab328..282d0a2 100644 --- a/speech2text.py +++ b/speech2text.py @@ -12,7 +12,7 @@ import time import wave # Load Whisper model once -model = whisper.load_model("base") +model = whisper.load_model("medium") # Recording parameters SAMPLE_RATE = 22000 @@ -146,7 +146,7 @@ class SpeechApp(Gtk.Window): self.text_view.scroll_to_mark(mark, 0.0, True, 0.0, 1.0) # Type the text using xdotool - subprocess.run(["xdotool", "type", "--delay", "50", text]) + # subprocess.run(["xdotool", "type", "--delay", "50", text]) # Update status back to Ready GLib.idle_add(self.update_status, "Ready")