Skip to content

Commit b343106

Browse files
authored
fix: use librosa.load() instead of soundfile.read() (#58)
1 parent 259e6e6 commit b343106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/so_vits_svc_fork/gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from logging import getLogger
55
from pathlib import Path
66

7+
import librosa
78
import PySimpleGUI as sg
89
import sounddevice as sd
9-
import soundfile as sf
1010
import torch
1111
from pebble import ProcessPool
1212

@@ -22,7 +22,7 @@
2222
def play_audio(path: Path | str):
2323
if isinstance(path, Path):
2424
path = path.as_posix()
25-
data, sr = sf.read(path)
25+
data, sr = librosa.load(path)
2626
sd.play(data, sr)
2727

2828

0 commit comments

Comments
 (0)