mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Update docs for ezmode node-opus Windows building
This commit is contained in:
@@ -27,7 +27,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`
|
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.
|
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.
|
For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Update to Node.js 6.0.0 or newer.
|
|||||||
## How do I get voice working?
|
## How do I get voice working?
|
||||||
- Install FFMPEG.
|
- Install FFMPEG.
|
||||||
- Install either the `node-opus` package or the `opusscript` package.
|
- 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?
|
## How do I install FFMPEG?
|
||||||
- **Ubuntu 16.04:** `sudo apt install ffpmeg`
|
- **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?
|
## How do I set up node-opus?
|
||||||
- **Ubuntu:** Simply run `npm install node-opus`, and it's done. Congrats!
|
- **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!
|
||||||
|
|||||||
@@ -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`
|
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.
|
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.
|
For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.
|
||||||
|
|
||||||
## Guides
|
## Guides
|
||||||
|
|||||||
Reference in New Issue
Block a user