Update speech_processor.py
This commit is contained in:
@@ -15,7 +15,7 @@ recognizer_lock = Lock()
|
|||||||
|
|
||||||
def initialize_vosk():
|
def initialize_vosk():
|
||||||
global recognizer
|
global recognizer
|
||||||
model_path = "vosk-model" # Update this path to your model
|
model_path = "vosk-model-small-en-us-0.15" # Update this path to your model
|
||||||
|
|
||||||
if not os.path.exists(model_path):
|
if not os.path.exists(model_path):
|
||||||
return {"success": False, "error": "Model not found"}
|
return {"success": False, "error": "Model not found"}
|
||||||
|
|||||||
Reference in New Issue
Block a user