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
-
Clone the repository:
git clone git@github.com:artibex/piper-http.git
-
Navigate to the directory:
cd piper-http
-
Add CORS support to Dockerfile:
RUN pip install flask_cors
-
Build the Docker image:
docker build -t http-piper .
-
Run the container:
docker run --name piper -p 5000:5000 piper
-
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)
-
Restart the Piper server:
python3 http_server.py
Method 2: Manual Setup
-
Clone the repository:
git clone https://github.com/flukexp/PiperTTS-API-Wrapper.git
-
Navigate to the directory:
cd PiperTTS-API-Wrapper
-
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.