Skip to content

Commit

Permalink
fix: librosa issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Huanshere committed Dec 1, 2024
1 parent 2e197f3 commit 429679d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/step2_whisperX.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def transcribe_audio(audio_file: str, start: float, end: float) -> Dict:

try:
# Load audio segment with librosa
audio_segment, sample_rate = librosa.load(temp_audio_path, sr=32000)
audio_segment, sample_rate = librosa.load(temp_audio_path, sr=16000)
finally:
# Clean up temp file
if os.path.exists(temp_audio_path):
Expand Down

0 comments on commit 429679d

Please sign in to comment.