• Stars
    star
    271
  • Rank 151,717 (Top 3 %)
  • Language
    Python
  • License
    Mozilla Public Li...
  • Created about 1 year ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

XTTS streaming server

Warning: XTTS-streaming-server doesn't support concurrent streaming requests, it's a demo server, not meant for production.

movie.mp4

1) Run the server

Use a pre-built image

CUDA 12.1:

$ docker run --gpus=all -e COQUI_TOS_AGREED=1 --rm -p 8000:80 ghcr.io/coqui-ai/xtts-streaming-server:latest-cuda121

CUDA 11.8 (for older cards):

$ docker run --gpus=all -e COQUI_TOS_AGREED=1 --rm -p 8000:80 ghcr.io/coqui-ai/xtts-streaming-server:latest

CPU (not recommended):

$ docker run -e COQUI_TOS_AGREED=1 --rm -p 8000:80 ghcr.io/coqui-ai/xtts-streaming-server:latest-cpu

Run with a fine-tuned model:

Make sure the model folder /path/to/model/folder contains the following files:

  • config.json
  • model.pth
  • vocab.json
$ docker run -v /path/to/model/folder:/app/tts_models --gpus=all -e COQUI_TOS_AGREED=1  --rm -p 8000:80 ghcr.io/coqui-ai/xtts-streaming-server:latest`

Setting the COQUI_TOS_AGREED environment variable to 1 indicates you have read and agreed to the terms of the CPML license. (Fine-tuned XTTS models also are under the CPML license)

Build the image yourself

To build the Docker container Pytorch 2.1 and CUDA 11.8 :

DOCKERFILE may be Dockerfile, Dockerfile.cpu, Dockerfile.cuda121, or your own custom Dockerfile.

$ git clone [email protected]:coqui-ai/xtts-streaming-server.git
$ cd xtts-streaming-server/server
$ docker build -t xtts-stream . -f DOCKERFILE
$ docker run --gpus all -e COQUI_TOS_AGREED=1 --rm -p 8000:80 xtts-stream

Setting the COQUI_TOS_AGREED environment variable to 1 indicates you have read and agreed to the terms of the CPML license. (Fine-tuned XTTS models also are under the CPML license)

2) Testing the running server

Once your Docker container is running, you can test that it's working properly. You will need to run the following code from a fresh terminal.

Clone xtts-streaming-server if you haven't already

$ git clone [email protected]:coqui-ai/xtts-streaming-server.git

Using the gradio demo

$ cd xtts-streaming-server
$ python -m pip install -r test/requirements.txt
$ python demo.py

Using the test script

$ cd xtts-streaming-server/test
$ python -m pip install -r requirements.txt
$ python test_streaming.py

More Repositories

1

TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
Python
33,215
star
2

STT

🐸STT - The deep learning toolkit for Speech-to-Text. Training and deploying STT models has never been so easy.
C++
2,244
star
3

open-speech-corpora

💎 A list of accessible speech corpora for ASR, TTS, and other Speech Technologies
1,255
star
4

TTS-papers

🐸 collection of TTS papers
610
star
5

Trainer

🐸 - A general purpose model trainer, as flexible as it gets
Python
184
star
6

STT-examples

🐸STT integration examples
Python
118
star
7

STT-models

Open models for Coqui STT
116
star
8

coqpit

Simple but maybe too simple config management through python data classes. We use it for machine learning.
Python
96
star
9

TTS-recipes

🐸TTS recipes for different datasets
Shell
84
star
10

coqui-voice-pack

🐸Coqui Dialogue Audio Pack contains more than 2000 audio files of synthetic human voices over dialogue created specifically for video games. The pack includes both male and female voices from >30 different voices, and all of the files can be used for commercial purposes (royalty free).
39
star
11

inference-engine

Coqui Inference Engine
C
38
star
12

snakepit

🐍 Coqui's machine learning job scheduler
JavaScript
31
star
13

stt-model-manager

Coqui STT Model Manager - install, manage and try out Coqui STT models from the Model Zoo
JavaScript
23
star
14

open-bible-scripts

scipts for working with open.bible data
Shell
22
star
15

data-checker

🫠 check your data, before you wreck your model
Python
16
star
16

coqui-py

Coqui CLI
Python
10
star
17

snakepit-client

🐍 Client for the Coqui Snakepit machine learning job scheduler
JavaScript
2
star