Created
July 3, 2021 13:33
-
-
Save psanders/8d59c969476a4e3161df925549f843ac to your computer and use it in GitHub Desktop.
Example of Voice Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { VoiceServer } = require("@fonos/voice"); | |
const voiceServer = new VoiceServer(); | |
voiceServer.listen((req, res) => { | |
console.log(req); | |
res.play("sound:hello-world"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment