loader image

Text to Speech – Natural Voice [Linux]

What makes us different from other similar websites? Forums Tech Text to Speech – Natural Voice [Linux]

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7658
    thumbtak
    Keymaster

    $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc

    $ echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc

    $ echo 'eval "$(pyenv init -)"' >> ~/.bashrc

    $ pip install piper-tts

    $ more text.txt | piper --cuda --model en_GB-alba-medium --output_file TTS.wav

    Example Voice: https://taksshack.com/forums/topic/great-job-phone-network-employs/

    #7895
    thumbtak
    Keymaster

    Updated command:

    $ python3.11 -m venv myenv
    
    $ source myenv/bin/activate
    
    $ pip install piper-tts

    British Voice

    $ more text.txt | piper --cuda --model en_GB-alba-medium --output_file TTS.wav

    US English Voice

    $ more text.txt | piper --cuda --model en_US-lessac-medium --output_file TTS.wav

    Note:
    Make sure your txt file exists, and that it has text in it, in the correct folder. Also, note that myenv is the name of the container/folder you want to use.

    • This reply was modified 1 month, 1 week ago by thumbtak. Reason: Added US English voice
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
TAKs Shack