Mirror of VITS2 text-to-speech checkpoints exported to ONNX for
phoonnx, OpenVoiceOS's offline TTS
library. VITS2 is a single-stage TTS architecture, an evolution of VITS that
improves naturalness and inference speed through adversarial duration
modeling and a monotonic alignment search transformer.
1import wave
2from phoonnx.model_manager import TTSModelManager
3
4manager = TTSModelManager()
5manager.load()
6manager.merge_default_voices()
7
8voice = manager.voices["frappuccino/vits2-ru-natasha"].load()
9with wave.open("out.wav", "wb") as wav_file:
10 voice.synthesize_wav("Привет, как дела?", wav_file)