Update services/streaming_voice_service.py
Browse files
services/streaming_voice_service.py
CHANGED
|
@@ -1026,7 +1026,7 @@ class VoskStreamingASR:
|
|
| 1026 |
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 1027 |
zip_ref.extractall("models/")
|
| 1028 |
|
| 1029 |
-
os.rename("models/vosk-model-
|
| 1030 |
os.remove(zip_path)
|
| 1031 |
print("✅ Đã tải VOSK model thành công")
|
| 1032 |
except Exception as e:
|
|
|
|
| 1026 |
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 1027 |
zip_ref.extractall("models/")
|
| 1028 |
|
| 1029 |
+
os.rename("models/vosk-model-small-vn-0.4", model_dir)
|
| 1030 |
os.remove(zip_path)
|
| 1031 |
print("✅ Đã tải VOSK model thành công")
|
| 1032 |
except Exception as e:
|