Can we please go step by step? And please, take your time - it is kind of complicated (not openHABs fault - enabling google apis is tricky):
-
Did you add Google TTS here: settings/addons
-
Did you check this page? Multimedia | openHAB
Did you read this page as it explains how to create the values that you need to enter in the page above? Google Cloud Text-to-Speech - Voices | openHAB
This is actually the hardest part!
-
Goto Google APIs and enable text-to-speech: https://console.cloud.google.com/apis/api/texttospeech.googleapis.com
-
After you have created a project within your google account, goto https://console.cloud.google.com/apis/dashboard?project=MY_PROJECT_NAME and press “enable APIS and Service” and add “Cloud Text-to-Speech API”
-
Click on “Credentials” on the left and then Click on “Create credentials” on the top
-
Create an API key
-
Create an oAuth client Id
-
Click on the download arrow to download your credentials (it is a json file which contains the client_id and client_secret)
-
Go to https://console.developers.google.com/apis/dashboard?project=MY_PROJECT_NAME&folder=&organizationId=
- Go to Consent screen
- Make sure the production status is on Production
-
In openhab goto /settings/services/org.openhab.voice.googletts
-
Fill in clientId and client secret
-
In that dialog box (see screenshot above) is a URL where you need to fill in the clientId. Copy that URL, add that clientID and retrieve your authorization code with that. It is a one time code that needs to be pasted to Authorization code
-
Save the dialog
-
If that did not help you might want to enable TRACE log for org.openhab.voice.googletts and org.openhab.core.auth.oauth2client to get more information and see some details if the communication. (see OH3 Google TTS: Error - grant type authorization_code - #4 by cweitkamp )
-
go to Configuration->System->Voice
- Choose Google TTS here: settings/services/org.openhab.voice ?
cc: @MichaelBrunner It is really about time that we do a comprehensive video on that