Spaces:
Running
Running
Switch whisper base->small for much better multilingual STT
Browse files- live_processor.py +3 -3
live_processor.py
CHANGED
|
@@ -193,13 +193,13 @@ class LiveSessionProcessor:
|
|
| 193 |
|
| 194 |
self._fusion = FuzzyFusionEngine()
|
| 195 |
|
| 196 |
-
# Load faster-whisper for STT (
|
| 197 |
try:
|
| 198 |
from faster_whisper import WhisperModel
|
| 199 |
self._whisper_model = WhisperModel(
|
| 200 |
-
"
|
| 201 |
)
|
| 202 |
-
print("[LiveProcessor] faster-whisper
|
| 203 |
except ImportError:
|
| 204 |
print("[LiveProcessor] faster-whisper not available, STT disabled")
|
| 205 |
self._whisper_model = None
|
|
|
|
| 193 |
|
| 194 |
self._fusion = FuzzyFusionEngine()
|
| 195 |
|
| 196 |
+
# Load faster-whisper for STT (small multilingual — best accuracy for non-English on CPU)
|
| 197 |
try:
|
| 198 |
from faster_whisper import WhisperModel
|
| 199 |
self._whisper_model = WhisperModel(
|
| 200 |
+
"small", device="cpu", compute_type="int8"
|
| 201 |
)
|
| 202 |
+
print("[LiveProcessor] faster-whisper small (multilingual) loaded")
|
| 203 |
except ImportError:
|
| 204 |
print("[LiveProcessor] faster-whisper not available, STT disabled")
|
| 205 |
self._whisper_model = None
|