mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
Enable vad_filter to improve quality of transcription in faster-whisper model.
This commit is contained in:
parent
8158609c93
commit
24367d459b
1 changed files with 1 additions and 1 deletions
|
|
@ -497,7 +497,7 @@ def transcribe(request: Request, file_path):
|
|||
)
|
||||
|
||||
model = request.app.state.faster_whisper_model
|
||||
segments, info = model.transcribe(file_path, beam_size=5)
|
||||
segments, info = model.transcribe(file_path, beam_size=5, vad_filter=True)
|
||||
log.info(
|
||||
"Detected language '%s' with probability %f"
|
||||
% (info.language, info.language_probability)
|
||||
|
|
|
|||
Loading…
Reference in a new issue