Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions speech_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import json

MODEL_PATH = "C:/Users/90553/Downloads/vosk/vosk-model-small-en-us-0.15" #put your path in here
MODEL_PATH = "C:/Users/90553/Downloads/vosk/vosk-model-small-de-0.15" #put your path in here
model = vosk.Model(MODEL_PATH)

q = queue.Queue()
Expand All @@ -29,4 +29,4 @@ def record_voice(prompt="🎙 I'm listening, sir...", timeout=None, phrase_time_
text = result.get("text", "")
if text.strip():
print("👤 You:", text)
return text
return text