coqui going down - how to install before it does

 Sadly, coqui.ai is going down. It's a Text to Speech tool using python and other things.

It breaks and downloads tons of dependencies if you try just installing it with pip, it's better to use conda. There is a docker option but that wants to download like 7gb of garbage.  

  • Check that dependencies like espeak-ng and ffmpeg are installed.
  • Installer script 1, probably won't work

    #!/bin/bash


    # Exit on error

    set -e


    echo "   Starting Coqui TTS installation..."


    # Ensure Miniconda is in PATH

    export PATH="$HOME/miniconda3/bin:$PATH"


    # Create and activate the Conda environment

    echo "   Creating Conda environment 'coqui' with Python 3.10..."

    conda create -n coqui python=3.10 -y

    source activate coqui || conda activate coqui


    # Install Coqui-TTS and dependencies

    echo "   Installing Coqui-TTS..."

    pip install --upgrade pip

    pip install coqui-tts


    # Install espeak-ng for phoneme-based synthesis (needed for some models)

    echo "   Installing espeak-ng..."

    sudo apt-get install -y espeak-ng


    # Install ffmpeg for audio processing (in case it's missing)

    echo "   Installing ffmpeg..."

    sudo apt-get install -y ffmpeg


    # Verify installation

    echo "  Installation complete!"

    echo "    To test, run: tts --list_models"


    exit 0



    Conda version of installer

    #!/bin/bash


    # Exit on error

    set -e


    echo "   Starting Coqui TTS installation using Conda..."


    # Ensure Miniconda is in PATH

    export PATH="$HOME/miniconda3/bin:$PATH"


    # Step 1: Create Conda Environment

    echo "   Creating Conda environment 'coqui' with Python 3.10..."

    conda create -n coqui python=3.10 -y


    # Step 2: Activate Conda Environment

    echo "   Activating Conda environment 'coqui'..."

    source activate coqui || conda activate coqui


    # Step 3: Install Coqui-TTS and Dependencies via Conda

    echo "   Installing dependencies..."

    conda install -c conda-forge coqui-tts -y || pip install coqui-tts  # If Conda fails, fallback to pip


    # Step 4: Install Additional Required Packages

    echo "   Installing espeak-ng for phoneme-based synthesis..."

    sudo apt-get install -y espeak-ng


    echo "   Installing ffmpeg for audio processing..."

    sudo apt-get install -y ffmpeg


    # Step 5: Verify Installation

    echo "  Installation complete!"

    echo "    To test, run: conda activate coqui && tts --list_models"


    exit 0


    Popular posts from this blog

    Recent Experiments testing ChatGPT's limits and some useful prompts

    Testing ChatGPT on coding - a script to make CSV to ICS

    Deepseek