Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ tts Public

Twitch text to speech overlay for OBS (using lobe-tts)

License

Notifications You must be signed in to change notification settings

haliphax/tts

Repository files navigation

tts

Twitch chat text-to-speech overlay for OBS (using Google Cloud TTS)

Setup

Authenticate

You will need to set up a Google Cloud project, add the Text to Speech service, and then use the Google Cloud CLI to authenticate yourself.

Install dependencies

npm ci

Build the overlay

npm run build

Use

Start the server:

npm start

Visit http://localhost:3000 to go through the full OAuth round trip and get your authorized URL for the browser source.

Create a reward in Twitch that requires a message. To determine the reward ID for adding to the query string of the overlay, redeem the reward yourself and enter !tts.echo as the (only) message text. The overlay, if connected and authorized, should respond with the internal ID of the reward. Add this ID as the reward query string parameter for the overlay in OBS.

The command may also be executed directly by the broadcaster and moderators.

Example Twitch message command:

!tts I'm a little teapot, short and stout

Advanced usage

The TTS trigger can be used without chat commands or reward redemptions by sending a direct HTTP POST request:

curl -X POST \
	-H 'Content-Type: application/json' \
	-d '{"text":"hello, world"}' \
	http://localhost:3000/cast

About

Twitch text to speech overlay for OBS (using lobe-tts)

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /