Guest User

Untitled

a guest
Dec 22nd, 2022
1,172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. pip install pyloudnorm
  3. mkdir repos
  4. git clone https://github.com/xiph/rnnoise.git repos/rnnoise
  5. sudo apt-get install curl autoconf automake libtool python-dev pkg-config sox ffmpeg
  6.  
  7. sh autogen.sh
  8. sh configure
  9. make clean
  10. make
  11.  
  12. cd ~/repos
  13. git clone https://github.com/openai/whisper.git
  14. pip install git+https://github.com/openai/whisper.git
  15. sudo apt-get install espeak-ng
  16. git clone https://github.com/coqui-ai/TTS.git
  17. pip install TTS
  18. tts --list_models
  19.  
  20. mkdir audioclips
  21. cd audioclips
  22. explorer.exe .
  23. mkdir out
  24. find . -name '*.mp3' -exec bash -c 'for f; do ffmpeg -i "$f" -acodec pcm_s16le -ar 22050 -ac 1 out/"${f%.mp3}".wav ; done' _ {} +
  25.  
  26.  
  27. for f in *.wav; do ffmpeg -y -i "$f" -acodec pcm_s16le -ar 22050 -ac 1 out/"$f.wav"; done
  28.  
  29. cd out
  30. mkdir splits
  31.  
  32. for FILE in *.wav; do sox "$FILE" splits/"$FILE" --show-progress silence 1 0.5 0.1% 1 0.5 0.1% : newfile : restart ; done
  33. cd splits
  34. find . -name "*.wav" -type f -size -15k -delete
  35.  
  36.  
  37.  
  38.  
  39. tts --text "I am the very model of a modern Major General" --model_name "tts_models/en/ljspeech/vits" --out_path ljspeech-vits.wav
  40.  
  41.  
  42.  
  43. !CUDA_VISIBLE_DEVICES="0" python train_vits.py --restore_path ~/.local/share/tts/tts_models--en--ljspeech--vits/model_file.pth --config_file ~/.local/share/tts/tts_models--en--ljspeech--vits/config.json
Advertisement
Add Comment
Please, Sign In to add comment