Closed dds82 closed 2 years ago
Thanks for this. I just pushed out a new version with a slightly different approach.
If I'm reading your push correctly, you added a new device preference to ignore the online/offline status. That would have solved my problem too, but I think the code is still inconsistent.
The reason behind my approach was that there are two code paths to speech, which were gated in the old version like so:
1) speak() -> checks isCommandTypeAllowed("TTS") -> speechCmd() -> checks healthStatus 2) parallelSpeak() -> speechCmd() -> checks healthStatus
The healthStatus check is what didn't work properly, and that's what it seems like you added the device preference to fix.
But you're still left with two code paths, where one checks isCommandTypeAllowed("TTS") and the other does not. Is that intentional? If not, you may want to manually make the change where I added that check to parallelSpeak().
Bug: Getting "speechCmd Ignored... Device is OFFLINE" message even when the device was online. Fix: I noticed two different ways of checking whether the device was online. One seemed like it was only used by the TTS methods, so I removed that one and consolidated.