mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
209828c7c3
commit
3899405864
1 changed files with 1 additions and 1 deletions
|
|
@ -494,7 +494,7 @@ def transcription(
|
||||||
os.path.getsize(file_path) > MAX_FILE_SIZE
|
os.path.getsize(file_path) > MAX_FILE_SIZE
|
||||||
): # Still larger than 25MB after compression
|
): # Still larger than 25MB after compression
|
||||||
chunks = split_on_silence(
|
chunks = split_on_silence(
|
||||||
audio, min_silence_len=500, silence_thresh=-40
|
audio, min_silence_len=1000, silence_thresh=-40
|
||||||
)
|
)
|
||||||
texts = []
|
texts = []
|
||||||
for i, chunk in enumerate(chunks):
|
for i, chunk in enumerate(chunks):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue