Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit e57ca44

Browse files
authored
Merge pull request #170 from SteffoSpieler/feat/add-gametts-service
feat(gametts): Add gametts service
2 parents 9c4dc33 + 314c2fe commit e57ca44

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
build/
2-
.idea
2+
.venv/
3+
.idea/
34
.vscode/*
45
!.vscode/extensions.json
56
!.vscode/tasks.json

docs/samples/gametts.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ nav:
6767
- Discord API sample: samples/discord.md
6868
- Discord RPC sample: samples/discord-rpc.md
6969
- Elgato Light sample: samples/elgato-light.md
70+
- GameTTS: samples/gametts.md
7071
- Google Cast sample: samples/google-cast.md
7172
- GitHub sample: samples/github.md
7273
- Googleapis:

0 commit comments

Comments
 (0)