How to use Mac "SAY" with specified content

  • I’ve used tts to save content as mp3, then use media player to play.
  • But I run hass on a mac, and use command line to play sound is much easier like:
shell_command:
  say_welcom: 'say "Welcome"'
  say_time: 'say "It is {{now().hour}} {{now().minute}}"'
  • This is ugly, and I have to set all the content patterns.
  • Is that any way to make it easier? Like a customized notify.say or accept contents as parameter.