githubEdit

Using Coqui Local

Navigate to Coquiarrow-up-right and click on the Get Started button.

Coqui.ai has been discontinued, but enthusiasts can still set up Coqui locally by following the instructions below.

Coqui Local Branch has not yet been merged.

Setting Up Coqui Locally

Method 1: Manual Setup

  1. Create a directory for Coqui and navigate to it:

    mkdir ~/coqui && cd ~/coqui
  2. Download and install Miniconda:

    curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o miniconda3.sh
    chmod +x ./miniconda3.sh
    ./miniconda3.sh
  3. Create a Conda environment and install Python 3.10:

    conda create --name coqui python=3.10
    conda activate coqui
  4. Clone the Coqui TTS repository:

    git clone https://github.com/coqui-ai/TTS.git
  5. Install dependencies:

    brew install mecab espeak
    pip install numpy==1.21.6 flask_cors
    conda install scipy scikit-learn Cython
  6. Navigate to the cloned TTS directory and install Coqui TTS:

    cd TTS && make install
  7. Run the local Coqui TTS server:

    python3 TTS/server/server.py --model_name tts_models/en/vctk/vits

Method 2: Setup via Docker

  1. Pull the Coqui TTS Docker image:

  2. Run the Coqui TTS container:

  3. Inside the container, install Flask CORS and run the server:

Adding CORS Support

To ensure that the Coqui server allows cross-origin resource sharing (CORS), add the following lines to Flask app in /TTS/server/server.py :

Make sure Coqui is enabled for TTS:

Proceed to make a new voice. When you are satisfied, copy the Voice ID.

Notes

Last updated