The `say` command line tool. It will cause a synthesized voice to speak out loud whatever follows that command via text-to-speech.
This is especially useful for pranking your loved ones for whom you have remote shell access. ssh in and cause the other person’s computer to start talking to them... by name... asking for help... to be let out of the small metal box they’ve been trapped in for SO long...
This has been available in Mac OS for at least 15 years, and probably longer.