Hacker News new | ask | show | jobs
by dcre 513 days ago
Not sure if the CLI does this directly, but here's a command that takes text either as an arg or through stdin.

    function tts() {
      if [ -p /dev/stdin ]; then
        edge-playback --file -
      else
        edge-playback --text "$*"
      fi
    }