1.3 KiB
1.3 KiB
Chatterbox TTS Backend
This directory contains the FastAPI backend for the Chatterbox TTS application.
Project Structure
app/
: Contains the main FastAPI application code.__init__.py
: Makesapp
a Python package.main.py
: FastAPI application instance and core API endpoints.services/
: Business logic for TTS, dialog processing, etc.models/
: Pydantic models for API request/response.utils/
: Utility functions.
requirements.txt
: Project dependencies for the backend.README.md
: This file.
Setup & Running
It is assumed you have a Python virtual environment at the project root (e.g., .venv
).
- Navigate to the project root directory (e.g.,
/Volumes/SAM2/CODE/chatterbox-test
). - Activate the existing Python virtual environment:
source .venv/bin/activate # On macOS/Linux # .\.venv\Scripts\activate # On Windows
- Install dependencies (ensure your terminal is in the project root):
pip install -r backend/requirements.txt
- Run the development server (ensure your terminal is in the project root):
uvicorn backend.app.main:app --reload --host 0.0.0.0 --port 8000
The API should then be accessible at http://127.0.0.1:8000
.