Play audio with Node.JS

前端 未结 7 2097
故里飘歌
故里飘歌 2021-02-01 15:52

I\'m currently using child_process and command-line mplayer to play audio on the local machine, with my Node.JS application. This works, but it\'s not really an exc

相关标签:
7条回答
  • 2021-02-01 16:50

    Simplest I've found (on Mac OS) is to use

    exec('afplay whatever.mp3', audioEndCallback)
    
    0 讨论(0)
提交回复
热议问题