Colab Infer Fix (#2322)

* Update Colab Infer, Add NLTK Download

* Rename GPT_SoVITS_Inference.ipynb to Colab-Inference.ipynb

* Rename

* Update URL

* .
This commit is contained in:
XXXXRT666
2025-04-25 05:03:20 +01:00
committed by GitHub
parent 9202c74761
commit ad7df5298b
6 changed files with 213 additions and 161 deletions

2
api.py
View File

@@ -534,7 +534,7 @@ class DictToAttrRecursive(dict):
def get_spepc(hps, filename):
audio, _ = librosa.load(filename, int(hps.data.sampling_rate))
audio, _ = librosa.load(filename, sr=int(hps.data.sampling_rate))
audio = torch.FloatTensor(audio)
maxx = audio.abs().max()
if maxx > 1: