DomoPad speak feature requests

lochnesz
Posts: 374
Joined: Wed Oct 01, 2014 5:23 am
Location: Stockholm, Sweden

DomoPad speak feature requests

Post by lochnesz »

Hi Adam,

I love your text-to-speach feature! I have two feature requests to make it even better :-)

- Being able to also send non-English characters with the action (in my case åäö). I get a Unicode error in the log trying to send other characters.
- Being able to send variables, for example time announcements such as %H %M, or text from an indigo variable.

Thanks!
Peter
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: DomoPad speak feature requests

Post by RogueProeliator »

Hmm, there shouldn't be a restriction on the unicode characters -- may be a bug/omission in the plugin, so I will check on that. Other notifications support them, I guess just had an oversight.

I'll see about substitution - that is a great idea and pretty easy to implement.

Adam
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: DomoPad speak feature requests

Post by mundmc »

^
+1 to this!
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: DomoPad speak feature requests

Post by RogueProeliator »

- Being able to also send non-English characters with the action (in my case åäö). I get a Unicode error in the log trying to send other characters.
- Being able to send variables, for example time announcements such as %H %M, or text from an indigo variable.
Just posted a new version of the plugin with both of these in place... In my limited testing the unicode characters came through & were spoken without issue, but let me know if you run into any further ones!

Adam
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: DomoPad speak feature requests

Post by mundmc »

Thanks @RogueProeliator! Gonna try when i get home. My Domopad announcements have been functioning, albeit static.
lochnesz
Posts: 374
Joined: Wed Oct 01, 2014 5:23 am
Location: Stockholm, Sweden

Re: DomoPad speak feature requests

Post by lochnesz »

Hi Adam,

Unicode characters doesn't generate the error any more, however they are shown as question marks on the DomoPad client side, hence not spoken.

Also substitutions are not spoken, only read as the actual characters for example %d/%m spoken as percent d percent m.

I am on android version 6.0.

Peter
lochnesz
Posts: 374
Joined: Wed Oct 01, 2014 5:23 am
Location: Stockholm, Sweden

Re: DomoPad speak feature requests

Post by lochnesz »

Just tested with my Samsung S9 with Android 9, same result as above.

Peter
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: DomoPad speak feature requests

Post by RogueProeliator »

It was working in my test, but I can verify tonight... strange with the substitution as it sounds like it didn't get processed at all; I test that with both a device state and a variable value. What exact string did you use?
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: DomoPad speak feature requests

Post by RogueProeliator »

Unicode characters doesn't generate the error any more, however they are shown as question marks on the DomoPad client side, hence not spoken.

Also substitutions are not spoken, only read as the actual characters for example %d/%m spoken as percent d percent m.
I did some testing and memory refreshing -- when you say that show up as question marks, are you seeing them as notifications in the shade and/or the envelope/notifications area of Domotics Pad? Because the spoken notification, at least if Domotics Pad is up, do not show up there. If they are, I think the device may still be attached to the old notification service which does not have the spoken announcement code.

I just tested a couple of scenarios -- but honestly I don't know what the characters should sound like since it isn't English, Latin, or maybe some Japanese :-) However, the variable substitution definitely came through fine using:

Code: Select all

Test ås %%v:4901968%%
Let me know if it is showing in the notification area as that might affect our debug approach.

Adam
lochnesz
Posts: 374
Joined: Wed Oct 01, 2014 5:23 am
Location: Stockholm, Sweden

Re: DomoPad speak feature requests

Post by lochnesz »

Okay, so substitutions work for both devices and variables. System variables, such as %H %M, doesn't work, but maybe I am not using the correct syntax.
However, regarding non-English characters, it appears as if there is some kind of character of some kind added which makes the TTS in the client behave strange. Some combinations work, but with a pause before the word, and some combinations doesn't work, and the TTS reads out "question mark" (in Swedish) in some cases. My guess is that there is a "hidden" character messing up the text string.

The debug log states "Domotics Pad Mobile Client DebugSpeak announcement notification sent successfully"
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: DomoPad speak feature requests

Post by RogueProeliator »

However, regarding non-English characters, it appears as if there is some kind of character of some kind added which makes the TTS in the client behave strange. Some combinations work, but with a pause before the word, and some combinations doesn't work, and the TTS reads out "question mark" (in Swedish) in some cases. My guess is that there is a "hidden" character messing up the text string.
Did you ever send me the exact string/characters which cause an issue? I was looking for it this week and if you did, I have misplaced it. Would you mind sending it along (if it is easier in email, that is fine too).

Adam
Post Reply

Return to “DomoPad Android Client”