Skip to content

Commit f672dba

Browse files
committed
fix: fix audio frame rate
1 parent a00af1e commit f672dba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/common/util/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ def any_to_mp3(any_path, mp3_path):
179179
sil_to_wav(any_path, any_path)
180180
any_path = mp3_path
181181
audio = AudioSegment.from_file(any_path)
182+
audio = audio.set_frame_rate(16000)
182183
audio.export(mp3_path, format="mp3")
183184

184185

0 commit comments

Comments
 (0)