Skip to content

Commit

Permalink
Readme and rate step adjustment
Browse files Browse the repository at this point in the history
* Add better info about what's changed to the readme.
* Allow the effect setting rate field to be adjusted in steps of 0.1.
  • Loading branch information
phroggster committed May 8, 2024
1 parent 806251e commit e5b40d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ You must have a Google Cloud Account, and a [Google Cloud API Key](https://cloud

In addition to obtaining your API Key, you must also activate and enable Google Cloud Text-to-Speech by following this [this link](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com).

The API Key may look something like: `AITEwL55bWmT-zZeuiWF8o9EpruWtue7QUhMy05`
The API Key *may* look something like: `AITEwL55bWmT-zZeuiWF8o9EpruWtue7QUhMy05`

Make sure you have your API Key handy, as you'll need it once you install the Script in [Firebot](https://firebot.app/).

## How to use
1. Download the latest **googleCloudTts.js** file from [Releases](https://github.com/phroggster/firebot-google-cloud-tts/releases)
2. Add the **googleCloudTts.js** as a startup script in [Firebot](https://firebot.app/) (Settings > Advanced > Startup Scripts) and enter your Google Cloud API Key
3. Restart Firebot and enjoy! You'll see a new Effect called **Google Cloud Text-to-Speech**!
2. Add the **googleCloudTts.js** as a startup script in [Firebot](https://firebot.app/) (Settings > Advanced > Startup Scripts).
3. Restart Firebot. A new effect called **Text-to-Speech (Google Cloud)** will have been added.
4. Visit the Integration settings (Settings > Integrations), and *Link* the Google Cloud Platform integration by entering your API Key.
5. Enable the connection to Google Cloud Platform by ensuring the On/Off button in the bottom left is yellow or green.

## History
This is based largely on work done by [Chuck Kostalnick](https://github.com/heyaapl/firebot-script-google-cloud-tts), and the entire [Crowbar Tools team](https://github.com/crowbartools). Please consider [supporting](https://opencollective.com/crowbartools) them, or contributing to their projects.
This is based largely on work done by [Chuck Kostalnick (heyaapl)](https://github.com/heyaapl/firebot-script-google-cloud-tts), and the entire [Crowbar Tools team](https://github.com/crowbartools). Please consider [supporting](https://opencollective.com/crowbartools) them, or contributing to their projects.

This version differs from heyaapl's original with support for all of the Google Cloud TTS voices, additional voice information, support for output to overlay(s), and adjustable output volume control. It also utilizes the integrations system of Firebot to allow for easy enabling or disabling of the connection through a quick-action toggle, without needing to toggle individual events or effects.
2 changes: 1 addition & 1 deletion src/google-tts-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function initGoogleTtsEffectType(
<h4>Rate</h4>
<div class="volume-slider-wrapper">
<i class="fal fa-backward"></i>
<rzslider rz-slider-model="effect.effectRate" rz-slider-options="{floor: -0.25, ceil: 4, precision: 2, step: 0.25}"></rzslider>
<rzslider rz-slider-model="effect.effectRate" rz-slider-options="{floor: -0.25, ceil: 4, precision: 2, step: 0.1}"></rzslider>
<i class="fal fa-forward"></i>
</div>
</div>
Expand Down

0 comments on commit e5b40d7

Please sign in to comment.