I did some initial research on this and here are my initial thoughts:
- I haven't used the
audio
before, but I tried running your app code on my Linux laptop running R on Kubuntu 18.04 and I was not able to get any drivers to appear when runningaudio::audio.drivers()
. If your app is to be deployed on a Shiny server or shinyapps.io, I am fairly certain you won't be able to get playback to work since those would run on top of Linux too. - If you are able to write out the processed audio as an audio file (WAV, MP3, etc), you could always write the file to the
www
directory of your app and try usingtags$audio
with that dynamically generated file. - There may be an opportunity to play the file as a base64-encoded object directly in javascript per this post: