Skip to content

Commit

Permalink
据说是一个部分windows特供bug (fishaudio#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
CNChTu authored Apr 8, 2023
1 parent db1d712 commit 6704ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fish_audio_preprocess/cli/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def resample_file(
if overwrite is False and output_file.exists():
return

audio, _ = librosa.load(input_file, sr=samping_rate, mono=mono)
audio, _ = librosa.load(str(input_file), sr=samping_rate, mono=mono)

if audio.ndim == 2:
audio = audio.T

sf.write(output_file, audio, samping_rate)
sf.write(str(output_file), audio, samping_rate)


@click.command()
Expand Down

0 comments on commit 6704ef3

Please sign in to comment.