1 Reply
You have two main options to do this.
1. You could just use
Deno.Command
to spawn something like mpg123
or play
(https://askubuntu.com/questions/920539/how-do-you-play-a-sound-from-the-terminal), which does a lot of the hard work for you
2. Use FFI and write native bindings to a library that allows you to play sounds.
I recommending going with the first one