From f75c04d5d4c2d7806fd08c361b1be16d20ebdcf4 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sat, 22 Jan 2022 11:31:36 +0100 Subject: [PATCH] [googletts] Configuration example via text file in documentation (#12087) * [googletts] Configuration example via text file in documentation Signed-off-by: Laurent Garnier --- bundles/org.openhab.voice.googletts/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.voice.googletts/README.md b/bundles/org.openhab.voice.googletts/README.md index 88fc55b2b..a8ad7a634 100644 --- a/bundles/org.openhab.voice.googletts/README.md +++ b/bundles/org.openhab.voice.googletts/README.md @@ -12,7 +12,7 @@ You can find pricing information on the [documentation page](https://cloud.googl * [Obtaining Credentials](#obtaining-credentials) -* [Service Configuration](#service-configuration) +* [Configuration](#configuration) * [Voice Configuration](#voice-configuration) @@ -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: