{"id":25940767,"url":"https://github.com/sitamgithub-msit/kokoro-litserve","last_synced_at":"2025-07-06T00:37:11.884Z","repository":{"id":274824665,"uuid":"924191775","full_name":"sitamgithub-MSIT/kokoro-litserve","owner":"sitamgithub-MSIT","description":"Leverage Kokoro's TTS capabilities using LitServe.","archived":false,"fork":false,"pushed_at":"2025-02-14T21:48:00.000Z","size":295,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T05:19:28.724Z","etag":null,"topics":["artificial-intelligence","deep-learning","fastapi","kokoro","kokoro-tts","lightning-ai","litserve","python","pytorch","text-to-speech"],"latest_commit_sha":null,"homepage":"https://lightning.ai/sitammeur/studios/deploy-kokoro-tts-model","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sitamgithub-MSIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T15:23:59.000Z","updated_at":"2025-02-14T21:48:03.000Z","dependencies_parsed_at":"2025-01-29T16:41:40.097Z","dependency_job_id":null,"html_url":"https://github.com/sitamgithub-MSIT/kokoro-litserve","commit_stats":null,"previous_names":["sitamgithub-msit/kokoro-litserve"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sitamgithub-MSIT/kokoro-litserve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fkokoro-litserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fkokoro-litserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fkokoro-litserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fkokoro-litserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitamgithub-MSIT","download_url":"https://codeload.github.com/sitamgithub-MSIT/kokoro-litserve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fkokoro-litserve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263832484,"owners_count":23517350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","deep-learning","fastapi","kokoro","kokoro-tts","lightning-ai","litserve","python","pytorch","text-to-speech"],"created_at":"2025-03-04T05:18:57.538Z","updated_at":"2025-07-06T00:37:11.830Z","avatar_url":"https://github.com/sitamgithub-MSIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kokoro LitServe\n\n[![Open In Studio](https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg)](https://lightning.ai/sitammeur/studios/deploy-kokoro-tts-model)\n\n[Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) is a high-performing, compact (82 million parameters) text-to-speech model released under the Apache 2.0 license. It supports a variety of languages, as well as multiple voice packs, and ranks highly despite limited training data. Its efficiency makes it ideal for various applications. This project shows how to create a self-hosted, private API that deploys the Kokoro [text-to-speech model](https://huggingface.co/hexgrad/Kokoro-82M) with LitServe, an easy-to-use, flexible serving engine for AI models built on FastAPI.\n\n## Project Structure\n\nThe project is structured as follows:\n\n- `server.py`: The file containing the main code for the web server.\n- `client.py`: The file containing the code for client-side requests.\n- `audio_utils.py`: The file containing utility functions for audio processing.\n- `LICENSE`: The license file for the project.\n- `README.md`: The README file that contains information about the project.\n- `assets`: The folder containing screenshots for working on the application.\n- `.gitignore`: The file containing the list of files and directories to be ignored by Git.\n\n## Tech Stack\n\n- Python (for the programming language)\n- PyTorch (for the deep learning framework)\n- Hugging Face Transformers Library (for the model)\n- LitServe (for the serving engine)\n\n## Getting Started\n\nTo get started with this project, follow the steps below:\n\n1. Run the server: `python server.py`\n2. Upon running the server successfully, you will see uvicorn running on port 8000.\n3. Open a new terminal window.\n4. Run the client: `python client.py`\n\nNow, you can see the model's output based on the input request. The model will generate an audio file based on the input text and other parameters.\n\n## Usage\n\nThe project can be used to serve the Kokoro text-to-speech model using LitServe. The model showcases how small-scale models can excel in specific areas. Its permissive licensing, user-friendliness, and versatile voice packs make it an invaluable resource for TTS applications, spanning from audiobooks to real-time assistants.\n\n## Contributing\n\nContributions are welcome! If you would like to contribute to this project, please raise an issue to discuss the changes you want to make. Once the changes are approved, you can create a pull request.\n\n## License\n\nThis project is licensed under the [Apache-2.0 License](LICENSE).\n\n## Contact\n\nIf you have any questions or suggestions about the project, please contact me on my GitHub profile.\n\nHappy coding! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitamgithub-msit%2Fkokoro-litserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitamgithub-msit%2Fkokoro-litserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitamgithub-msit%2Fkokoro-litserve/lists"}