-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update usage instructions with pre-built image
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
# XTTS streaming server | ||
|
||
1. Build the Docker container: | ||
## Running the server | ||
|
||
```bash | ||
$ cd server | ||
$ docker build -t xtts-stream . | ||
``` | ||
|
||
2. Run the server container: | ||
To run a pre-built container: | ||
|
||
```bash | ||
$ docker run --gpus=all -e COQUI_TOS_AGREED=1 --rm -p 8000:80 xtts-stream | ||
$ docker run --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](https://coqui.ai/cpml). | ||
|
||
3. Generate audio with the test script: | ||
## Testing the server | ||
|
||
1. Generate audio with the test script: | ||
|
||
```bash | ||
$ cd test | ||
$ python -m pip install -r requirements.txt | ||
$ python test_streaming.py | ||
``` | ||
|
||
## Building the container | ||
|
||
1. To build the Docker container: | ||
|
||
```bash | ||
$ cd server | ||
$ docker build -t xtts-stream . | ||
``` | ||
2. Run the server container: | ||
|
||
```bash | ||
$ 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](https://coqui.ai/cpml). |