p0p4k / vits2_pytorch

unofficial vits2-TTS implementation in pytorch
https://arxiv.org/abs/2307.16430
MIT License
465 stars 81 forks source link

fix: librosa and requirements #41

Closed shigabeev closed 10 months ago

shigabeev commented 10 months ago

Hello!

The existing versions of Numpy and Librosa in the repository are outdated, leading to installation challenges. I've updated the mel extraction function to ensure compatibility with the newer versions of Librosa. Additionally, I've bumped the versions of both Numpy, Cython, phonemizer and Scipy.

The specific change can be found in mel_processing.py

Previously, the code was:

mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)

I've modified it to:

mel = librosa_mel_fn(sr=sampling_rate, n_fft=n_fft, n_mels=num_mels, fmin=fmin, fmax=fmax)

Thanks for considering my changes!