rsandagon / EyAy-TTS-Service

Repository from Github https://github.comrsandagon/EyAy-TTS-ServiceRepository from Github https://github.comrsandagon/EyAy-TTS-Service

EyAy TTS Service

This is the tts service which accepsts REST API /tts post. Generated wav is then saved to repository🤖

REST-TTS-Dockerfize

TTS REST API wrapper with FastAPI and Docker, for your text-to-speech needs🤖

Installation

  1. To build image, run docker build . --tag eyay/tts-service
  2. To run image, rundocker run -d -p 7861:7861 -v ./audio:/code/audio --name tts-service eyay/tts-service
  3. Make sure to have the -v volume parameter to avoid redownloading models.
  4. For CPU only, use ghcr.io/coqui-ai/tts-cpu, for GPU use ghcr.io/coqui-ai/tts as Dockerfile base image.
  5. Go to http://127.0.0.1:7861/api/ to check the app

USAGE

  • to convert text to speech, use the POST endpoint /api/tts/ with payload of {message:"read this"}. this returns the filename of the audio
  • to read back converted speech, use the GET endpoint /api/voice/ with audio filename set a query params name e.g. .../api/voice?name=sample01.wav

About


Languages

Language:Python 73.2%Language:Shell 19.6%Language:Dockerfile 7.2%