Skip to content
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

feat(api): add chattts api example using fastapi #530

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

briancaffey
Copy link
Contributor

@briancaffey briancaffey commented Jul 4, 2024

This PR adds an API example using FastAPI. Generated audio files are saved to a zip file which is returned in the response. I was using the /generate_audio endpoint included with the Gradio app in a previous version of ChatTTS, but that doesn't seem to be supported any more, so this provides an example for how to use ChatTTS via API without using gradio. I have also included a client.py example which shows how to use the API.

Related issues:
close #491
close #448

@github-actions github-actions bot changed the base branch from main to dev July 4, 2024 22:59
Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fumiama fumiama merged commit 5082d64 into 2noise:dev Jul 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants