Using Piper
Last updated
Last updated
Navigate to and follow the setup instructions below to run Piper locally as a TTS backend.
Clone the artibex/piper repository:
Navigate to the piper-http
directory:
Add CORS support by installing Flask CORS in the Dockerfile. To do this, locate the Dockerfile and add the following line:
Build the Piper Docker image:
Run the Piper Docker container:
To allow CORS within the Piper server, modify the http_server.py
file inside the running Docker container:
Navigate to the piper-http
container's files:
Locate the http_server.py
file:
Edit http_server.py
and add the following lines at the top to enable CORS:
Save the changes and restart the Piper server inside the container:
Clone the repository:
Navigate to the project directory:
Download piper, install Piper sample voices and start piper server:
Piper can be used as a local text-to-speech backend in your application.
For more details on models and configurations, refer to the official .