Closed rejuce closed 5 months ago
Thank you for logging this bug. I had not run across it because I had already agreed to the license previously.
I'll document the steps necessary to launch the container interactively the first time in order to agree to the license.
here on what to do:
run docker interactively, override the entry point and start bash
docker run -it --entrypoint bash -v ${PWD}/.local/share/tts:/root/.local/share/tts -v ${PWD}
:/root -w /root ghcr.io/aedocw/epub2tts:release
run some speech sythesis with xtts_v2 model inside the container and confirm licesne:
tts --text "hello world. this is test of speech sythesis in english. do you like it?" --model_name "tts_models/multilingual/multi-dataset/xtts_v2" --out_path /root/test.wav
that was the idea I had as well...now inside the container in seems to remember it...but unfortunately if I run it again with the command like in your doc...I get the same error again.
possible that the license agreed flag is set differntetly depending tts is called from python api or cli?
Edit: guess i am just not fit enough with docker...that docker run epub2tts...creates differnt container that the one where i change the entry point...duno right now how to workaround
I'll try to see what's happening. Ultimately once you agree to the license terms, in the XTTS model directory there will be a file created .local/share/tts/tts_models--multilingual--multi-dataset--xtts_v2/tos_agreed.txt
that contains "I have read, understood and agreed to the Terms and Conditions."
Since that directory is always mapped to a local spot (so it does not have to re-download the model every time), once you agree to the TOS it should be sticky.
For what it's worth, it looks to me at a glance anyway that the way you called the container should have worked.
Looking into this more closely but it's possible launching with "--gpus=all -e COQUI_TOS_AGREED=1" might work (that's what you launch ghcr.io/coqui-ai/xtts-streaming-server:latest-cuda121 with). Mostly adding this now as a note to myself :)
when going the docker route: the script fails at the point one has to confirm the license
Total characters: 51254 Engine is TTS, model is tts_models/multilingual/multi-dataset/xtts_v2