Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lucataco committed Nov 16, 2023
1 parent ee2a7c0 commit 3c6a868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def predict(
) -> Path:
"""Run a single prediction on the model"""
speaker_wav = "/tmp/speaker.wav"
filter = "highpass=75,lowpass=8000"
trim_silence = "areverse,silenceremove=start_periods=1:start_silence=0:start_threshold=0.02,areverse,silenceremove=start_periods=1:start_silence=0:start_threshold=0.02,"
filter = "highpass=75,lowpass=8000,"
trim_silence = "areverse,silenceremove=start_periods=1:start_silence=0:start_threshold=0.02,areverse,silenceremove=start_periods=1:start_silence=0:start_threshold=0.02"
# ffmpeg convert to wav and apply afftn denoise filter. y to overwrite and avoid caching
if cleanup_voice:
os.system(f"ffmpeg -i {speaker} -af {filter}{trim_silence} -y {speaker_wav}")
Expand Down

0 comments on commit 3c6a868

Please sign in to comment.