Every now and then I get a message from my Polish friends. Trouble starts when the message is in Polish and my LG Tone BT headset is trying to read this with the English pronunciation. Chances are that you are bilingual as well, and you understand my pain of constant language changes. I have stopped using the LG companion app for that very reason, and I used Tasker to create an advanced replacement that would handle my messages.
In this video, you will find the step by step tutorial how to use voice notifications in multiple languages. I’m using Autonotification to intercept messages and Tasker to run the contact info against the ready made whitelist.
How does it work?
Autonotification is used to get information about the sender (%antitle) and body of the message (%antext). These values are used to say message out loud. Action Say allows my to specify the language of the notification. I’m using %leng variable to set the language of my choice based on Variable search/replace result. Search/replace is used to check the whitelist of names stored under %Alterlanguage. If a match is found, an array is created and variable %foundone1 is set. This local variable is the IF condition deciding about what language is being assigned to the variable %leng.
This is pretty much all. Few things to remember: spell names as they are spelt in your contacts (if Facebook has another spelling, include it in the whitelist), make sure each name is saved in a new line of the variable %Alterlanguage. You can also find a detailed write up made by me on pocketables.com
Voice notifications in multiple languages set up
Profile: Message (55) Event: AutoNotification Intercept [ Configuration:Event Behaviour: true Notification Type: Only Created Notifications Persistency Type: Non-Persistent Only Has Reply Action: true Notification Apps: Hangouts,Messenger,Messenger,WhatsApp Get All Fields : false Get Internal Actions: false Get Internal Actions Big: false ] Enter: Received Message (54) A1: Variable Search Replace [ Variable:%AlterLanguage Search:%antitle Ignore Case:Off Multi-Line:On One Match Only: On Store Matches In:%foundone Replace Matches:Off Replace With: ] A2: Variable Set [ Name:%lang To:com.google.android.tts:pol-pol Recurse Variables:Off Do Maths:Off Append:Off ] If [ %foundone1 Set ] A3: Variable Set [ Name:%lang To:com.google.android.tts:eng-gbr Recurse Variables:Off Do Maths:Off Append:Off ] If [ %foundone1 !Set ] A4: Say [ Text:%antext Engine:Voice:%lang Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]