I have a TTS engine that I currently call from HA via a series of shell_command’s that I’ve put together. A separate shell_command for each thing I might want to say. Is there a way to make part of my URL a variable so that I can pass arbitrary text to one script and have it handle my TTS rather than creating a bunch of shell_commands?
I know that shell_commands can handle templating, but I don’t see a way to send them variables.
Also - Is there a better way to tap a URL than using cURL from the shell?