[Release] - Speaker Central

Guys
I found one or two of my 'Google Home Mini' speakers 'drop off' from time to time.
It's almost like the network goes to sleep (it doesn't but seems like it) so I loose connection to the speaker then get these errors in the logs

java.lang.NullPointerException: Cannot invoke method launchApp() on null object (runQ)
java.lang.NullPointerException: Cannot invoke method setVolume() on null object (setVolume)
java.lang.NullPointerException: Cannot invoke method getStatus() on null object (refresh)

I've found that by 'Initializing' the speaker, this reconnects it.
Unfortunately, this is not at regular times etc so I never know if a speaker is going to work or not (until it doesn't when expected!)

So.. I have added an optional switch to Speaker Central (speech synth) to enable an 'initialize' before speaking. (Use only if you have this problem and get these occasional error messages)

This switch forces a reconnect before speech.

It adds about a second to the time before speaking but I think it's worth it to stay connected

New version 1.1.0 uploaded to github.

Andy

1 Like