mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
refac
This commit is contained in:
parent
209828c7c3
commit
3899405864
@ -494,7 +494,7 @@ def transcription(
|
||||
os.path.getsize(file_path) > MAX_FILE_SIZE
|
||||
): # Still larger than 25MB after compression
|
||||
chunks = split_on_silence(
|
||||
audio, min_silence_len=500, silence_thresh=-40
|
||||
audio, min_silence_len=1000, silence_thresh=-40
|
||||
)
|
||||
texts = []
|
||||
for i, chunk in enumerate(chunks):
|
||||
|
Loading…
Reference in New Issue
Block a user