-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[googletts] Missing service configuration #15746
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/google-tts-missing-service-configuration/149498/13 |
I checked #14937, but actually this seems to be a long-standing bug: Lines 331 to 338 in 2d92fda
I would suspect that EDIT: And only now do I read your suggestion, @Artur-Fedjukevits, which is exactly the same as my suggestion. So we are probably right. 😉 |
@Artur-Fedjukevits - is anything else logged after that? E.g. "Could not synthesize text via Google Cloud TTS Service"? |
Fixes openhab#15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Some notes for future refactoring improvements: Lines 327 to 340 in 2d92fda
This method is basically a wrapper for: Lines 353 to 384 in 2d92fda
Outcomes:
The error handling is inconsistent. The wrapper handles OAuth2 and logging, and converts exceptions into returning Lines 329 to 332 in 2d92fda
Suggestions:
|
Fixes #15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes #15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: querdenker2k <querdenker2k@gmx.de>
Fixes openhab#15746 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Expected Behavior
Some CommunicationException should not reset the oAuthService variable.
Current Behavior
After some WARN like
2023-10-13 06:15:16.652 [WARN ] [ce.googletts.internal.GoogleCloudAPI] - Error initializing Google Cloud TTS service: An unexpected IOException occurred: java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
or
2023-10-05 09:08:16.316 [WARN ] [ce.googletts.internal.GoogleCloudAPI] - Error initializing Google Cloud TTS service: An unexpected IOException occurred: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Buffering capacity 2097152 exceeded
the oAuthService variable is reset to null and Google TTS returns the Missing service configuration until openHAB is restarted.
Possible Solution
Probably like this, but I'm not sure.
Your Environment
Version used: openHAB 4.0.3
Environment name and version: OpenJDK Runtime Environment Zulu17
Operating System: Ubuntu 20.04.3
The text was updated successfully, but these errors were encountered: