]> git.basschouten.com Git - openhab-addons.git/commitdiff
[googletts] Configuration example via text file in documentation (#12087)
authorlolodomo <lg.hc@free.fr>
Sat, 22 Jan 2022 10:31:36 +0000 (11:31 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 10:31:36 +0000 (11:31 +0100)
* [googletts] Configuration example via text file in documentation

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.voice.googletts/README.md

index 88fc55b2b82d604c8b748cf18622ca7867b698a4..a8ad7a6349181ee0a1dd9098298309ea06a5e128 100644 (file)
@@ -12,7 +12,7 @@ You can find pricing information on the [documentation page](https://cloud.googl
 <!-- MarkdownTOC -->
 
 * [Obtaining Credentials](#obtaining-credentials)
-* [Service Configuration](#service-configuration)
+* [Configuration](#configuration)
 * [Voice Configuration](#voice-configuration)
 
 <!-- /MarkdownTOC -->
@@ -30,7 +30,7 @@ Before you can integrate this service with your Google Cloud Text-to-Speech, you
   * Select application type "TV and Limited Input" and enter a name into the "Name" field.
   * Click Create. A pop-up appears, showing your "client ID" and "client secret".
 
-## Service Configuration
+## Configuration
 
 Using your favorite configuration UI to edit **Settings / Other Services - Google Cloud Text-to-Speech** and set:
 
@@ -50,6 +50,20 @@ It is recommended to clear this configuration parameter afterwards.
 When enabled the cache is purged once.
 Make sure to disable this setting again so the cache is maintained after restarts.
 
+In case you would like to setup the service via a text file, create a new file in `$OPENHAB_ROOT/conf/services` named `googletts.cfg`
+
+Its contents should look similar to:
+
+```
+org.openhab.voice.googletts:clientId=ID
+org.openhab.voice.googletts:clientSecret=SECRET
+org.openhab.voice.googletts:authcode=XXXXX
+org.openhab.voice.googletts:pitch=0
+org.openhab.voice.googletts:volumeGain=0
+org.openhab.voice.googletts:speakingRate=1
+org.openhab.voice.googletts:purgeCache=false
+```
+
 ## Voice Configuration
 
 Using your favorite configuration UI: