DocsGetting StartedIkigenia PlatformLearning HubArcaniaGuidesUsing Piper

Using Piper

Learn how to set up and configure Piper as a local text-to-speech backend for Arcania

Navigate to Piper and follow the setup instructions below to run Piper locally as a TTS backend.

Setting Up Piper Locally

Method 1: Setup via Docker

  1. Clone the repository:

    git clone git@github.com:artibex/piper-http.git
  2. Navigate to the directory:

    cd piper-http
  3. Add CORS support to Dockerfile:

    RUN pip install flask_cors
  4. Build the Docker image:

    docker build -t http-piper .
  5. Run the container:

    docker run --name piper -p 5000:5000 piper
  6. Configure CORS in the container:

    docker exec -it piper /bin/bash
    cd /app/piper/src/python_run/piper

    Edit http_server.py and add:

    from flask_cors import CORS
    CORS(app)
  7. Restart the Piper server:

    python3 http_server.py

Method 2: Manual Setup

  1. Clone the repository:

    git clone https://github.com/flukexp/PiperTTS-API-Wrapper.git
  2. Navigate to the directory:

    cd PiperTTS-API-Wrapper
  3. Install and start:

    ./piper_installer.sh

Configuration

Enable Piper in Arcania:

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

For more details on models and configurations, refer to the official Piper GitHub repository.