Google Assistant voice over phone speaker

Post your questions and help other users.

Moderator: Martin

Moto1987
Posts: 30
Joined: 09 Apr 2016 13:02

Google Assistant voice over phone speaker

Post by Moto1987 » 12 Apr 2020 17:11

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

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Google Assistant voice over phone speaker

Post by Desmanto » 15 Apr 2020 19:01

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).
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Moto1987
Posts: 30
Joined: 09 Apr 2016 13:02

Re: Google Assistant voice over phone speaker

Post by Moto1987 » 17 Apr 2020 12:45

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.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 17 Apr 2020 20:04

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
Crude but it works.

Moto1987
Posts: 30
Joined: 09 Apr 2016 13:02

Re: Google Assistant voice over phone speaker

Post by Moto1987 » 18 Apr 2020 05:33

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.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 18 Apr 2020 11:13

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
Crude but it works.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 18 Apr 2020 11:33

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.
Crude but it works.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 18 Apr 2020 11:36

Car stop

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

I don't need to explain this.
Crude but it works.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 18 Apr 2020 11:38

The message reader will take a while because I don't have one but I have something similar that I can adjust.
Crude but it works.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Google Assistant voice over phone speaker

Post by Micky Micky » 18 Apr 2020 16:40

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
Crude but it works.

Post Reply