👧
Amica
Launch DemoTelegramGitHubTwitter
  • Welcome to Amica!
  • 🌸Overview
    • How Amica Works
    • Core Features
    • Amica Life
    • Emotion System
    • Other Features
    • Use Cases
    • Amica vs Other Tools
  • 🌳Getting Started
    • Quickstart Guide
    • Installing Amica
    • Next Steps
  • 🗣️Connecting LLMs (Your Core AI Chatbot Model)
    • Using LM Studio
    • Using LLaMA.cpp
    • Using Ollama
    • Using KoboldCpp
    • Using OpenAI
    • Using Oobabooga
    • Using OpenRouter
  • 🔊Connecting Speech Options (TTS)
    • Using SpeechT5
    • Using ElevenLabs
    • Using Coqui Local
    • Using Piper
    • Using Alltalk TTS
    • Using Kokoro TTS
    • Using RVC
  • 👂Connecting Microphone Options (STT)
    • Using whisper.cpp
  • 👁️Connecting Multi-Modal Modules
    • Using LLaVA
  • 🔧Other Guides
    • Using Window.ai
    • Using Moshi (Voice to Voice)
  • 🧩Plugin System
    • Plugins Intro
    • Getting Real World News on Amica
  • 🔌API System
    • External API for Agents
  • 🌻Tutorials
    • Creating new Avatars
    • Using Custom Assets
  • 🌺Contributing to Amica
    • Setting up your developer environment
    • Contributing to the Docs
    • Developing Amica
    • Adding Translations
Powered by GitBook
On this page
  • Setting Up Coqui Locally
  • Adding CORS Support
  • Make sure Coqui is enabled for TTS:
  • Proceed to make a new voice. When you are satisfied, copy the Voice ID.
Edit on GitHub
  1. Connecting Speech Options (TTS)

Using Coqui Local

PreviousUsing ElevenLabsNextUsing Piper

Last updated 7 months ago

Navigate to 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:

    docker pull ghcr.io/coqui-ai/tts --platform linux/amd64
  2. Run the Coqui TTS container:

    docker run --rm -it -p 5002:5002 --entrypoint /bin/bash ghcr.io/coqui-ai/tts
  3. Inside the container, install Flask CORS and run the server:

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

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 :

from flask_cors import CORS

CORS(app)

Make sure Coqui is enabled for TTS:

Settings -> Text-to-Speech -> TTS Backend -> Coqui

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

Settings -> Text-to-Speech -> Coqui -> Voice ID

Notes

  • Coqui TTS can be used as a local text-to-speech backend in your application.

If you want to explore more models or functionalities, refer to the official .

🔊
Coqui
Coqui TTS GitHub repository