Skip to content

feat: API endpoint support#159

Open
Napolitain wants to merge 1 commit intoZyphra:mainfrom
Napolitain:main
Open

feat: API endpoint support#159
Napolitain wants to merge 1 commit intoZyphra:mainfrom
Napolitain:main

Conversation

@Napolitain
Copy link

run.py is a fastapi endpoint (to run the model without an UI based interface).
It uses fastapi and root/assets/ as default dir for audio clone path
I recommend making the UI depend on that service, instead of making them tightly coupled.

@y4my4my4m
Copy link

y4my4my4m commented Feb 26, 2025

Thank you for this, I was looking for an API endpoint.
By the way, shouldn't gradio already have the API endpoint if we were just to add serve=true here?

@darkacorn
Copy link
Contributor

there is also a more elaborate version already as pr ..

@y4my4my4m
Copy link

#73 duplicate

horelvis pushed a commit to horelvis/Zonos that referenced this pull request Jul 29, 2025
horelvis pushed a commit to horelvis/Zonos that referenced this pull request Jul 29, 2025
- Merged PR Zyphra#159: Add FastAPI endpoint support
- Merged PR Zyphra#73: Add REST API support
- Merged PR Zyphra#49: Add streaming support
- Merged PR Zyphra#208: Add infinite streaming with smooth transitions

This merge adds comprehensive API support including:
- FastAPI endpoints for direct TTS generation
- REST API for programmatic access
- Basic streaming for real-time audio generation
- Advanced streaming with cosine cross-fade for smooth transitions
- Support for both transformer and hybrid models
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.

3 participants