Another silent change in the latest update, at least on my phone, is that the assistant disregards media volume levels and screams its feedback on full volume. It wasn't like this until a week ago. Restarting, playing with settings, adjusting the volume as she screams, nothing helps.
So if I ask her to do something late at night she goes, "OKAY I WILL DO WHATEVER THE FUCK YOU ASKED ME TO DO AND WILL ANNOUNCE IT TO THE ENTIRE NEIGHBORHOOD IN THE PROCESS"
Have a look at Automate (like Tasker but with free features). It has a
Content Shared
module as input. Then you can process and output its text. Might be worth a try for what you're trying to do.