-
Notifications
You must be signed in to change notification settings - Fork 1.1k
✨feat: WebAPI & Docker #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Implement comprehensive FastAPI-based TTS API service - Add API endpoints for text-to-speech with voice cloning and creation - Create example client script for API interaction - Include environment configuration and startup script - Add README with detailed API usage and configuration instructions - Configure .env.example for flexible service setup - Implement file cleanup and output management - Support multiple audio input and output methods
- Create Dockerfile for building Spark-TTS images with flexible model inclusion - Add docker_builder.sh script for easy image building - Implement docker-compose.yml with multiple service configurations - Add .dockerignore to optimize Docker build context - Update README and run_api.sh to support Docker deployment - Configure environment variables and service types for containerized deployment
|
Tested this out but I get the following error in startup logs: Adding |
|
This is the full error Adding this allows me to run the container after a rebuild From within the container |
Oops, it's webui part.
I'm very sorry, I just packaged the webui part into Docker but didn't test this part of the code, because the webui is the existing code, and I thought it should work fine. I will take some time today to verify it. |
|
You are correct on that. I completely wiped my build cache and downloaded the model fresh from HF and did not receive the error on startup. Sorry for the false report! |
|
While your intent was to have separate images, one that includes pretrained and a lite one that doens't, the commands here are copying and deleting files in separate layers, which will only add to the filesize. As a result, the lite image actually contains the pretrained models in the image in earlier layers, twice, one in the /tmp folder, and a second in the final destination. For reference the pretrained images are around 3.67GB. Lite image should be 10 GB: |
Thanks for your feedback. I'm in a travel these days, and will check it next week once I have time. @phong-phuong |






2.Add Docker support for Spark-TTS deployment