Views
No views yet
CUDA_DEVICE_ORDER=PCI_BUS_ID HF_HOME=/data/.hf7/ CUDA_VISIBLE_DEVICES=0 python demo.pyapi.py that allows faster inference with
loading only once TTS & AudioGengit clone https://huggingface.co/dkounadis/artificial-styletts2cd artificial-styletts2
virtualenv --python=python3.10 .env0
source .env0/bin/activate
pip install -r requirements.txtCUDA_DEVICE_ORDER=PCI_BUS_ID HF_HOME=/data/.hf7/ CUDA_VISIBLE_DEVICES=0 python api.py# git lfs pull # to download assets/ocr.jpg
python tts.py --text assets/ocr.txt --image assets/ocr.jpg --soundscape "battle hero" --voice romanianapi.py to be already running.1# TTS & soundscape - output .mp4 saved in ./out/
2python landscape2soundscape.pyCUDA_DEVICE_ORDER=PCI_BUS_ID HF_HOME=/data/dkounadis/.hf7/ CUDA_VISIBLE_DEVICES=4 python api.pypython live_demo.py # type text & plays AudioGen sound & TTS1# audiobook will be saved in ./tts_audiobooks
2python audiobook.py