On Mac, there’s a say command, so this would do it.

(system "say \"hello world\"")

When I had a Linux machine, I recalled using a command named espeak, which
is similar to say on Mac.

On Sat, May 16, 2020 at 11:15 AM Sam Phillips <samdphill...@gmail.com>
wrote:

> Stephen De Gabrielle and I are wondering if any Mac or Linux users
> have similar short programs to make their computer talk.
>
>
> https://www.reddit.com/r/Racket/comments/gkz3yi/make_your_computer_talk_in_racket_on_windows_in_5/
>
> Cheers,
> Sam
>
> ----->8----->8-----
> #lang racket/base
>
> (require ffi/com)
>
> (define voice
>   (com-create-instance "SAPI.SPVoice"))
>
> (com-invoke voice "Speak" "hello world")
>   ----->8----->8-----
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CAHsjV0zG4mFbryy4uYWHS-%3DvP%3D10_bCjFxBR5wS%2BUkaFuLkx5Q%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CADcuegvCXTUCVBqA2WcViWC1AjbMvdbJuE_NbF0y5%2BHUzKjc2g%40mail.gmail.com.

Reply via email to