myshell-ai / MeloTTS

High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean.
MIT License
3.98k stars 476 forks source link

Is it possible to export to onnx? #98

Open AngelGuevara7 opened 2 months ago

AngelGuevara7 commented 2 months ago

Hello, I just discovered onnx format and its advantages in speed. Has anyone tried to export MeloTTS to onnx format?

jeremy110 commented 2 months ago

That is possible, maybe you can refer this https://github.com/fishaudio/Bert-VITS2/blob/master/export_onnx.py https://github.com/fishaudio/Bert-VITS2/blob/master/onnx_infer.py

walletiger commented 1 month ago

what's the branch or commit id reversion from bert-vits2 ? i check the models has much difference . eg : TextEncoder ..

jeremy110 commented 1 month ago

@walletiger The basic architectures are mostly the same, but Melotts has more languages and uses IPA. The latest BERT-VITS2 has added WAVLM and emotion to the basic architecture. Earlier versions (before 2.0.0) seem to be quite similar.