Code Monkey home page Code Monkey logo

Comments (4)

amishshah avatar amishshah commented on May 19, 2024

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.

koo04 avatar koo04 commented on May 19, 2024

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.

amishshah avatar amishshah commented on May 19, 2024

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.

koo04 avatar koo04 commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.