mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-05-01 03:41:24 +00:00
modified server.py for ease of choosing faster-whisper-device
This commit is contained in:
@@ -21,6 +21,7 @@ RECORDING_FILE_PATH = "stt_test.wav"
|
||||
|
||||
model_size = "large-v3-turbo"
|
||||
|
||||
|
||||
def load_model(file_path=None,whisper_device="cuda",whisper_compute_type='float16'):
|
||||
"""
|
||||
Load given vosk model from file or default to en-us model.
|
||||
|
||||
Reference in New Issue
Block a user