|
| 1 | +## Using the GameTTS sample bundle |
| 2 | + |
| 3 | +The GameTTS example bundle in `samples/gametts` demonstrates the ability |
| 4 | +to play a tts generated audio in a graphic. Here is a guide |
| 5 | +to how to get it working. |
| 6 | + |
| 7 | +Note that GameTTS only supports german voices. |
| 8 | + |
| 9 | +### Prerequisites |
| 10 | + |
| 11 | +You will need a working `nodecg-io` installation. If you have non yet take a |
| 12 | +look at [installation guide](../getting_started/install.md). You may need to |
| 13 | +install this bundle, so take a look at the |
| 14 | +[“Try an included sample”](../getting_started/try_example_bundle.md)-Guide. It |
| 15 | +will also tell you how to log in and how to use the GUI. |
| 16 | + |
| 17 | +**You also need:** |
| 18 | + |
| 19 | +- a GameTTS Server Instance |
| 20 | + |
| 21 | + |
| 22 | +!!! NOTE |
| 23 | + |
| 24 | + GameTTS can be found at https://github.com/lexkoro/GameTTS. |
| 25 | + A docker image of GameTTS is available on docker hub at `henrikhansen/gametts:latest`. |
| 26 | + |
| 27 | + Here's an example docker compose file to get it working: |
| 28 | + |
| 29 | + ```yaml |
| 30 | + version: '3' |
| 31 | + |
| 32 | + services: |
| 33 | + gametts: |
| 34 | + image: henrikhansen/gametts:latest |
| 35 | + restart: always |
| 36 | + ports: |
| 37 | + - 5000:5000 |
| 38 | + container_name: gametts |
| 39 | + volumes: |
| 40 | + - ./gametts:/usr/src/app/GameTTS/vits/model/ |
| 41 | + ``` |
| 42 | + |
| 43 | +### Configure the GameTTS sample bundle |
| 44 | + |
| 45 | +1. In NodeCG, create a new gametts service instance. |
| 46 | + |
| 47 | +2. Enter your host information like this |
| 48 | + |
| 49 | + ```json |
| 50 | + { |
| 51 | + "host": "example.com:12345", |
| 52 | + "useHttps": false |
| 53 | + } |
| 54 | + ``` |
| 55 | + |
| 56 | + After entering it, click save. |
| 57 | + |
| 58 | +3. Set the sample's (`gametts`) dependency to be the newly created service |
| 59 | + instance (of type `gametts`). |
| 60 | + |
| 61 | +4. Open the GameTTS sample bundle graphic: |
| 62 | + |
| 63 | + You should hear "Hallo aus nodecg-io!" using a random TTS voice. |
0 commit comments