Speech output for notification

Post your questions and help other users.

Moderator: Martin

Post Reply
Vicdilou
Posts: 10
Joined: 26 Sep 2018 22:29

Speech output for notification

Post by Vicdilou » 19 Mar 2019 16:54

Hi,
I make a Flow who say the sms but I want to do the same for notification of messenger.
Do you know how to do that ?
Thanks.
Attachments
Screenshot_20190319-175333.jpg
Screenshot_20190319-175333.jpg (121.03 KiB) Viewed 12269 times

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Speech output for notification

Post by ariloc » 20 Mar 2019 00:23

Just replace the trigger with Notification on Statusbar Displayed to detect notifications from Messenger and change variables you use as you need with the ones detailed in the trigger help (you can access it going to the ? icon when editing it), most probably notification_text or title. You might also need to parse the data from the variable you choose, so you may want to use action Script and look at the documentation to see how you can get the data you want from the variables and also looking at the log or using Debug Dialog condition to develop your code and see what values you get.

Vicdilou
Posts: 10
Joined: 26 Sep 2018 22:29

Re: Speech output for notification

Post by Vicdilou » 21 Mar 2019 14:54

The trigger works but the voice said "null" everytime, I try "title" and "notification_text"

Vicdilou
Posts: 10
Joined: 26 Sep 2018 22:29

Re: Speech output for notification

Post by Vicdilou » 21 Mar 2019 14:55

ariloc wrote:You might also need to parse the data from the variable you choose, so you may want to use action Script and look at the documentation to see how you can get the data you want from the variables and also looking at the log or using Debug Dialog condition to develop your code and see what values you get.
And sorry but I didn't understand

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Speech output for notification

Post by ariloc » 21 Mar 2019 14:57

Have you tried with other variables named in the help? Also remember to use the debug dialog condition I mentioned to see which variables have content and the one you need, just connect that condition in between the trigger and the action.

Vicdilou
Posts: 10
Joined: 26 Sep 2018 22:29

Re: Speech output for notification

Post by Vicdilou » 21 Mar 2019 19:25

I don't know why but "notification_text" work now !
Thank you for the debug dialog, it's really useful

Post Reply