Skip to content

rip-super/tts-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTS API

Try it live!


Quickstart

Send a basic TTS request with just text:

curl -X POST "https://tts.sahildash.dev/api" -H "Content-Type: application/json" -d "{\"text\": \"Hello world\"}"

The response will be JSON containing a downloadUrl. Wait until the job is finished, then download the audio:

curl "https://tts.sahildash.dev/download/<jobId>" --output output.mp3

Installation

  1. Install NodeJS and Python 3.12+
  2. Clone the repository
git clone https://github.com/rip-super/tts-service.git
cd tts-service
  1. Install dependencies:
npm install
pip install -r requirements.txt
  1. Install voices:
cd worker
python download_voices.py

Note: If you have a HuggingFace account, obtain an access token and enter it into the download_voices.py script for faster download speeds.

  1. Start the servers:
# In one terminal
node server.js

# In another terminal
uvicorn worker:app --host 0.0.0.0 --port 5001

API Documentation

  • API Docs are available here!

Like this project? Feel free to give it a star! Thanks!

About

A simple, easy to use, and fast TTS API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors