Add project dependencies and setup instructions in requirements.txt
This commit is contained in:
@@ -12,7 +12,7 @@ import time
|
|||||||
import wave
|
import wave
|
||||||
|
|
||||||
# Load Whisper model once
|
# Load Whisper model once
|
||||||
model = whisper.load_model("base")
|
model = whisper.load_model("medium")
|
||||||
|
|
||||||
# Recording parameters
|
# Recording parameters
|
||||||
SAMPLE_RATE = 22000
|
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)
|
self.text_view.scroll_to_mark(mark, 0.0, True, 0.0, 1.0)
|
||||||
|
|
||||||
# Type the text using xdotool
|
# Type the text using xdotool
|
||||||
subprocess.run(["xdotool", "type", "--delay", "50", text])
|
# subprocess.run(["xdotool", "type", "--delay", "50", text])
|
||||||
|
|
||||||
# Update status back to Ready
|
# Update status back to Ready
|
||||||
GLib.idle_add(self.update_status, "Ready")
|
GLib.idle_add(self.update_status, "Ready")
|
||||||
|
|||||||
Reference in New Issue
Block a user