How do I run server.py with xtts_v2 model? #3369
-
I'm trying to run the server.py with the xtts_v2 model because I think that is the only way I can use "speaker_wav" to set a vocal to clone. (Certainly it ignores speaker.wav if I use the ljspeech/vits model). If I run: python server.py --model_name tts_models/en/ljspeech/vits If I run: python server.py --model_name tts_models/multilingual/multi-dataset/xtts_v2
When I list models I have both models downloaded: But, as I mentioned, my simple python one-shot call works great, so I'm not sure what is up with server.py
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I've managed to get the tts-server working with xtts_v2 model, and also use speaker.wav so you can clone a voice. Command to use to point to your xtts_v2 model- python server.py --use_cuda true --model_path C:\Users\bob\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2 --config_path C:\Users\bob\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2\config.json Note that, weirdly, the model_path does not include the actual model file, but the config path includes the config file. I think this is the error that this bug refers to: it needs the config file to be directly referenced. But there were some more changes I made to get things working. server.py [Line 203-ish] -
Fix error "The following model_kwargs are not used by the model: ['speaker_id'] " synthesizer.py [Line 384-ish] -
That's hopefully everything. |
Beta Was this translation helpful? Give feedback.
I've managed to get the tts-server working with xtts_v2 model, and also use speaker.wav so you can clone a voice.
Command to use to point to your xtts_v2 model-
python server.py --use_cuda true --model_path C:\Users\bob\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2 --config_path C:\Users\bob\AppData\Local\tts\tts_models--multilingual--multi-dataset--xtts_v2\config.json
Note that, weirdly, the model_path does not include the actual model file, but the config path includes the config file. I think this is the error that this bug refers to: it needs the config file to be directly referenced.
But there were some more changes I made to get things working.
Fix "AssertionErr…