Page 1 of 2

Google Assistant voice over phone speaker

Posted: 12 Apr 2020 17:11
by Moto1987
Hello,

my phone is connected over Bluetooth with my car.

Unfortunately, my radio cannot read incoming messages (WhatsApp, threema, etc.) via Bluetooth. Now I would like to create a flow that reads the messages.

When phone is connected to my car Bluetooth, Google auto / Android assistant runs and when a message comes in there is a little pop up.

What do I have to set? Is it even possible? I already have a little experience, but that is too complicated for me 😅

Thanks
Moto1987

Re: Google Assistant voice over phone speaker

Posted: 15 Apr 2020 19:01
by Desmanto
Is it Car head unit or car bluetooth speaker? I don't have one, so need to see the example.

To get incoming message, you can use trigger notification on statusbar, then get the notification_text or other variable you can check using condition debug dialog. Then use that variable in the action Speech output, choose the TTS engine you have (default is usually Google TTS).

Re: Google Assistant voice over phone speaker

Posted: 17 Apr 2020 12:45
by Moto1987
Hello, it is a fixed built-in car radio with built-in Bluetooth. I look at it again regarding the notification in the statusbar, I don't think I have this choice, but i'll change the app to English again.

Re: Google Assistant voice over phone speaker

Posted: 17 Apr 2020 20:04
by Micky Micky
Hello

Android Auto compatible messaging apps should be able to be read messages aloud.

Users report problems that seem to be a configuration issue with the apps and not Android Auto.

Here's an example solution:

"Anyways, found a solution that works for me ...........turn off pop up notifications in the WhatsApp setting on your phone....now all is good in Android Auto....screen notification of new message...can be read out and replied to by voice."

Although I have Android Auto, I don't use any messaging apps, so I can't help any further.

Desmanto: Bluetooth in a car is just another source on the head unit like radio and CD. Android Auto is an app pre-installed on the head unit. You need the app on your phone and it syncs via Bluetooth. It presents apps on the head unit's screen in a bespoke way. Not true screen mirroring as you know it. Google has limited the type of apps available to Android Auto for safety reasons. So no Automagic scripting at 70mph!

Hope this helps and good luck.

Micky

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 05:33
by Moto1987
Hello, that's not quite what I mean. If my phone is connected to the car via Bluetooth, the phone or Android Auto wants to play incoming messages via Bluetooth.

However, my radio does not play the announcements, as I listen to music via USB, for example. I had to set the radio to Bluetooth every time so I could read the messages aloud.

That's why I want to play all the incoming messages through the phone speaker. With Google maps, this is

With Google maps you came to set it and it works there too. At Sygic, the announcements also come from the telephone speaker.

I have now found the setting with the message in the status bar, but I don't know how to proceed. I thought of a button that then pops up, which reads aloud when clicking on it the message that has arrived.

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 11:13
by Micky Micky
Hello

You need three flows.

Car start: This will recognise that you're in the car and enable your message reader. This prevents your phone reading out messages when in public places, like on a bus.

Car stop: This will recognise that you've exited the car and disable the message reader.

These two can be expanded to include many more personalisations to suit, like volume settings, screen brightness etc.

Message reader: this flow will catch the message and read it.

I'll post the flows in a moment.

Micky

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 11:33
by Micky Micky
Car start

http://automagic4android.com/flow.php?i ... 40a225e652

The global variable GLOBAL_CARBTID stores my car's Bluetooth id. You can enter yours directly here or store in a global variable.

It looks like this: 00:9D:6B:39:05:78

I've included the action to get this on the right. Just attach it to a trigger and execute it when connected to your car. The debug dialog will give you the address.

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 11:36
by Micky Micky
Car stop

http://automagic4android.com/flow.php?i ... 043f596e9e

I don't need to explain this.

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 11:38
by Micky Micky
The message reader will take a while because I don't have one but I have something similar that I can adjust.

Re: Google Assistant voice over phone speaker

Posted: 18 Apr 2020 16:40
by Micky Micky
Message reader

This will catch all SMS messages.
You may need to switch on speakerphone.
You may need to change the Audio Stream Type. I think NOTIFICATION is correct. I can't test it because my car has a flat battery.
It won't be MUSIC because Bluetooth is using that.

http://automagic4android.com/flow.php?i ... bf90286006