Update docs for ezmode node-opus Windows building

This commit is contained in:
Schuyler Cebulskie
2016-11-01 01:39:53 -04:00
parent 6dc95cd084
commit 2a50dad852
3 changed files with 5 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ Update to Node.js 6.0.0 or newer.
## How do I get voice working?
- Install FFMPEG.
- Install either the `node-opus` package or the `opusscript` package.
node-opus is greatly preferred, but is tougher to get working on Windows.
node-opus is greatly preferred, due to it having significantly better performance.
## How do I install FFMPEG?
- **Ubuntu 16.04:** `sudo apt install ffpmeg`
@@ -18,4 +18,5 @@ Update to Node.js 6.0.0 or newer.
## How do I set up node-opus?
- **Ubuntu:** Simply run `npm install node-opus`, and it's done. Congrats!
- **Windows:** See [AoDude's guide](https://github.com/bdistin/OhGodMusicBot/blob/master/README.md). Good luck.
- **Windows:** Run `npm install --global --production windows-build-tools` in an admin command prompt or PowerShell.
Then, running `npm install node-opus` in your bot's directory should successfully build it. Woo!

View File

@@ -31,7 +31,7 @@ With voice support ([node-opus](https://www.npmjs.com/package/node-opus)): `npm
With voice support ([opusscript](https://www.npmjs.com/package/opusscript)): `npm install discord.js opusscript --save`
The preferred audio engine is node-opus, as it performs significantly better than opusscript. When both are available, discord.js will automatically choose node-opus.
Using opusscript is only recommended for development on Windows, since getting node-opus to build there can be a bit of a challenge.
Using opusscript is only recommended for development environments where node-opus is tough to get working.
For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.
## Guides