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
.configandsound-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-effectsdirectory -
Modify the value in
sound-config.jsonto fit your requirements:- There are two properties:
soundsandredeemable. redeemablecontains the config for both TTS and Soundboard:tts.nameshould be the name of the redeemable on the channel, andtts.volumeshould be obvioussfx.prefixis optional. This is the prefix of the redeemable for your soundboard.
soundscontains an array of sound object. Each sound contains four properties:nameof the sound effect redemption name. Ifsfx.prefixexists, they will be joined together- Example: if
sfx.prefixisSoundboard:(has trailing space) andnameisKEKW, the reward name should beSoundboard: KEKW - Remember that trailing space won't be ignored.
- Example: if
aliasesarray of string which does nothing at this momentfilefilename of the sound insidesound-effectsdirectoryvolumewhich should be obvious
- There are two properties:
-
Copy
.env.exampleto.env.dockerand 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.txton.configdirectory. 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