DNA10mo ago

Playing sound from file

How can i play the sound from a local file using deno?
1 Reply
ioB10mo ago
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