Skip to content

Commit

Permalink
hotfix: wrong chunk_size api
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanlda78202 authored Feb 13, 2025
1 parent 477ed66 commit b259aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _(
wav, sr = torchaudio.load(file.file)
wav = preprocess_audio(wav, sr)

CHUNK_SIZE = SAMPLE_RATE * 30 # 30 seconds
CHUNK_SIZE = SAMPLE_RATE * 20 # 20 seconds
OVERLAP_SIZE = SAMPLE_RATE * 1 # 1 second

chunks = []
Expand Down

0 comments on commit b259aef

Please sign in to comment.