a8851625 / ChatTTS-OpenAI-API

ChatTTS-OpenAI-API is a project built upon the ChatTTS project, implementing the v1/audio/speech endpoint in compliance with OpenAI protocols to transform text into speech.
17 stars 2 forks source link

ChatTTS-OpenAI-API

The ChatTTS-OpenAI-API is a project built upon the ChatTTS framework, implementing the v1/audio/speech endpoint in compliance with OpenAI protocols to transform text into speech.

Requirements

Docker Deployment

This project can be easily deployed using Docker. The Dockerfile included in the repository sets up a Python environment with all the necessary dependencies and sets up the application to run on port 5001.

Building the Docker Image

To build the Docker image, navigate to the project directory and run the following command:

docker build -t chattts-openai-api .

This will create a Docker image named "chattts-openai-api".

Running the Docker Image

Once the Docker image has been built, you can run it with the following command:

docker run -p 5001:5001 chattts-openai-api

This will start the application and bind it to port 5001 on your machine. Please keep in mind that the Docker container must have access to an NVIDIA GPU due to the CUDA dependency of the project.