OpenHAB 2.5 and Google TTS on Raspberry Pi

did somebody solved this issue? I’m using Openhab 2.5 M3 with googletts and am having the same issue as mentioned above.

1 Like

I also have started having this issue lately and traced it down to be a conflict between the Google TTS and the Google Calendar Scheduler service (misc-gcal1), presumably in the google oauth library. As soon as I uninstall the calendar one the TTS one starts working fine.

1 Like

Same here. I had Google TTS working but as soon as I install misc-gcal1 it stops working. Removing Gcal makes TTS start working again. It is also impossible for me to get Gcal installation to work properly. Maybe that is because i have TTS installed, what do I know? I made another thread about that:

https://community.openhab.org/t/google-calendar-scheduler-no-instructions-in-log-file/81934

1 Like

After reading Erik’s message above, I removed the “openHAB Google Calendar 1.14.0.M4” addon and the Google TTS started working immediately.

I then reinstalled the Google Calendar addon, rebooted, and Google TTS stopped working again.

Since I use the TTS more than the Calendar addon, I will be running without the calendar addon for now.

1 Like

Hi,

Did somebody found a solution to this conflit with TTS and GCAL ?

It’s still existing in the “stable release”

kr,

Frederic

1 Like

I can confirm the issue with Gcal and GoogleTTS in OH 2.5 stable release.

Did any of you file an issue on Github? If not, there isn´t much of a chance this will get fixed.

1 Like

Try this out:

1 Like

This worked for me. Thank you!

1 Like

This works. Thanks a lot.

1 Like

Hi,

Doesn’t work anymore. Is it just me, or Google change something ?
JAVA errors…

1 Like

No errors here. Working fine.

1 Like

I have openhab 2.5.7 and errors:

2020-07-26 22:02:08.882 [INFO ] [.googletts.internal.GoogleTTSService] - Using cache folder /var/lib/openhab2/cache/org.openhab.voice.googletts

2020-07-26 22:02:08.890 [ERROR] [org.openhab.voice.googletts ] - bundle org.openhab.voice.googletts:2.5.7 (331)[org.openhab.voice.googletts.internal.GoogleTTSService(376)] : The activate method has thrown an exception

java.lang.VerifyError: Bad type on operand stack

Exception Details:

Location:

com/google/auth/oauth2/OAuth2Utils.<clinit>()V @31: putstatic

Reason:

Type 'com/google/api/client/http/javanet/NetHttpTransport' (current frame, stack[0]) is not assignable to 'com/google/api/client/http/HttpTransport'

Current Frame:

bci: @31

flags: { }

locals: { }

stack: { 'com/google/api/client/http/javanet/NetHttpTransport' }

Bytecode:

0x0000000: 1229 b800 2ab3 002b 122c b800 2ab3 002d

0x0000010: 122e b800 2ab3 002f bb00 3059 b700 31b3

0x0000020: 0032 bb00 3359 b700 34b3 0035 b800 36b3

0x0000030: 0006 1237 b800 38b3 0039 123a b300 1012

0x0000040: 3bb3 0015 b1
2 Likes

I’m also having this issue. I’m running Openhab 2.5.7 on a Raspberry Pi 4B and followed the official instructions to set up Google Cloud TTS. The following error shows up in openhab.log whenever I change the Google Cloud TTS config in Paper UI:

2020-08-23 14:59:31.071 [ERROR] [org.openhab.voice.googletts         ] - bundle 
org.openhab.voice.googletts:2.5.4 
(343)[org.openhab.voice.googletts.internal.GoogleTTSService(332)] : The updateConfig method has 
thrown an exception

java.lang.VerifyError: Bad type on operand stack

Exception Details:

  Location:

    com/google/auth/oauth2/OAuth2Utils.<clinit>()V @31: putstatic

  Reason:

    Type 'com/google/api/client/http/javanet/NetHttpTransport' (current frame, stack[0]) is not assignable to 'com/google/api/client/http/HttpTransport'

  Current Frame:
   bci: @31
   flags: { }
   locals: { }
   stack: { 'com/google/api/client/http/javanet/NetHttpTransport' }
 Bytecode:
   0x0000000: 1229 b800 2ab3 002b 122c b800 2ab3 002d
   0x0000010: 122e b800 2ab3 002f bb00 3059 b700 31b3
   0x0000020: 0032 bb00 3359 b700 34b3 0035 b800 36b3
   0x0000030: 0006 1237 b800 38b3 0039 123a b300 1012
   0x0000040: 3bb3 0015 b1                           

       at com.google.auth.oauth2.GoogleCredentials.fromStream(GoogleCredentials.java:141) ~[?:?]
       at org.openhab.voice.googletts.internal.GoogleCloudAPI.createCredentials(GoogleCloudAPI.java:169) ~[?:?]
       at org.openhab.voice.googletts.internal.GoogleCloudAPI.setConfig(GoogleCloudAPI.java:144) ~[?:?]
       at org.openhab.voice.googletts.internal.GoogleTTSService.updateConfig(GoogleTTSService.java:215) ~[?:?]
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_262]
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_262]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_262]
       at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_262]
       at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) ~[bundleFile:?]
       at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) ~[bundleFile:?]
       at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) ~[bundleFile:?]
       at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) [bundleFile:?]
       at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317) [bundleFile:?]
       at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeModifiedMethod(SingleComponentManager.java:836) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.SingleComponentManager.modify(SingleComponentManager.java:791) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:709) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:673) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:435) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:316) [bundleFile:?]
       at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:118) [bundleFile:?]
       at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1709) [bundleFile:?]
       at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1651) [bundleFile:?]
       at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [bundleFile:?]
       at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [bundleFile:?]
       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]

Trying to use the service doesn’t work as well obviously.

1 Like