Google Cloud TTS Integration Troubleshooting

Hello Openhabians, I recently upgraded to OH3 and have been struggling to get Google Cloud Text-to-Speech (TTS) working again. Let me walk through my process and see if anyone can shed some light on this issue.

  1. I started by creating a client ID in the Google API Console, selecting the ‘TV and limited input device’ type.
  2. I then requested an authorization code using the OAuth2 endpoint, which provided me with a code.
  3. In the Google TTS settings within OH3, I entered the client ID, client secret, and the authorization code I received.

However, I’m hitting an error: Error initializing Google Cloud TTS service: Exception in oauth communication, grant type authorization_code. This is where I’m stuck.

I’m wondering if I need to request a different type of token or if there’s an additional step I’m missing in the OAuth2 flow. Has anyone encountered a similar issue or successfully integrated Google Cloud TTS in OH3? Any insights or workarounds would be greatly appreciated!

Thanks in advance for your help!

Best regards,
Bob