Skip to content

ehsanahmadkhan525/piper-tts-with-fastapi-v2

Repository files navigation

Piper TTS

Installation

Step 1: Set Up Virtual Environment

create a virtual environment using venv:

python -m venv venv

Step 2: Activate the Virtual Environment

Activate the virtual environment. Note that the command might differ based on your operating system.

For Windows:

venv\Scripts\activate

For macOS/Linux:

source venv/bin/activate

Step 2: Install Requirements

Install the required Python packages using pip:

pip install -r requirements.txt
sudo apt install rubberband-cli

Usage

With the virtual environment activated, you can now run the UVicorn server. Use the following command:

uvicorn src.python_run.piper.test:app --reload

Now you can access the server on http://127.0.0.1:8000/docs

This command starts the Uvicorn server with automatic reloading enabled, so any changes you make to the code will automatically trigger a server restart.

About

FastAPI support for Piper TTS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published