A rewrite of sound-trigger-channel-points app which uses Docker as base application with optional TTS providers ranging from the non-external Mozilla TTS Docker app to Amazon Polly.
This app is a Dockerized app
Note: it is advised for user to use docker-compose
To run with docker-compose:
- Make directory called
.config
andsound-effects
- Copy both example files in config without the suffix
cp sound-config.json.example sound-config.json
cp tokens.json.example tokens.json
-
Add your desired sound files in the
sound-effects
directory -
Modify the value in
sound-config.json
to fit your requirements:- There are two properties:
sounds
andredeemable
. redeemable
contains the config for both TTS and Soundboard:tts.name
should be the name of the redeemable on the channel, andtts.volume
should be obvioussfx.prefix
is optional. This is the prefix of the redeemable for your soundboard.
sounds
contains an array of sound object. Each sound contains four properties:name
of the sound effect redemption name. Ifsfx.prefix
exists, they will be joined together- Example: if
sfx.prefix
isSoundboard:
(has trailing space) andname
isKEKW
, the reward name should beSoundboard: KEKW
- Remember that trailing space won't be ignored.
- Example: if
aliases
array of string which does nothing at this momentfile
filename of the sound insidesound-effects
directoryvolume
which should be obvious
- There are two properties:
-
Copy
.env.example
to.env.docker
and set the value.
To register your application on Twitch developer portal, visit Twitch developer console and register your application. Put OAuth redirect URL according to the base url on
.env
(if you're hosting on local machine, use the given example on the file).
-
(Optional) You can have filtering on your TTS engine by adding file
filter.txt
on.config
directory. Each line should contain a regex. -
Run docker-compose:
docker-compose -f docker-compose.yaml up --detach
- Your app will be available in http://localhost:9000