Comments (4)
Do you have ffmpeg/avconv and node-opus (should be installed with discord.js) and also what type of audio is res? Is res a eadable stream?
from discord.js.
I am not sure that I have ffmpeg. I didn't think about that. I will check. Node-opus I am pretty sure was there, but will install it in case.
I am unsure the audio format of res. If you notice, I had commented out a line that is the res pipe which I used Lame's decoder on. I think that decoder changes it to mp3 format, but not completely sure. It comes from Icy.
from discord.js.
Ok, well first I'd try installing ffmpeg and adding it to your path. Before you run your bot, make sure you can run ffmpeg from command line.
If it doesn't work after that, then try re-adding the Lame decoder bit
from discord.js.
It seemed that it was that ffmpeg was not installed right. I re-installed using npm and it works like a charm. I did have to pipe the decode as well.
Thank you tons for the help! I will be submitting ACTUAL bug reports from now on, as you develop the voice side of this. Maybe even PRs. We will see.
from discord.js.
Related Issues (20)
- # There is an error in ModalSubmitInteraction.js HOT 5
- `ButtonComponentData` fails type guard field check
- Bug: Message fetch causing whole app crash when wrapped in try/catch HOT 5
- Don't include dom types HOT 1
- Async cache functions (filter/keepOverLimit)
- setName method for updating channel name does not consistently resolve promises HOT 1
- Client.destroy fails with error HOT 1
- Major: discordjs/rest crashing on Node v16.9.1 HOT 14
- components: this.components.map((component) => component.toJSON()) HOT 1
- Nickname is always null, bot has right permissions and intents HOT 5
- feat(create-discord-bot): automatically update versions in templates
- Implement guild.voiceAdapterCreator from discord.js into APIGuild from @discordjs/core HOT 2
- Interaction channel loses guildId
- Error when trying to use discord.js HOT 1
- Object GuildEmoji for guildAuditLogEntryCreate event HOT 5
- Max messages in cache is not working HOT 1
- Support Custom status on activity objects HOT 1
- Custom REST rate limit offsets for specific routes
- UnsupportedCacheOverwriteWarning when using TSX HOT 4
- Dapi-types links to option type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js.