question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Volume being ingored.

See original GitHub issue

So I have a small bot with a !youtube command so we can play some music or podcasts while we are on the voice channels. The code is essentially the same one that is on the playStream sample code:

// play streams using ytdl-core
const ytdl = require('ytdl-core');
const streamOptions = { seek: 0, volume: 0.2 };
voiceChannel.join()
.then(connection => {
   const stream = ytdl('https://www.youtube.com/watch?v=XAWgeLF9EVQ', {filter : 'audioonly'});
   const dispatcher = connection.playStream(stream, streamOptions);
})
 .catch(console.error);

But the audio still comes out super loud. Any ideas? I’ve tried digging into the library code, but I don’t see anything that stands out to me that could be the issue.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
saibayadoncommented, Feb 5, 2017

It’s working, although the scale it’s a bit odd. 0.5 seems to not be noticeable whereas 0.05 lowers the volume considerably.

1reaction
devsnekcommented, Feb 5, 2017

npm i hydrabolt/discord.js#indev-prism to get the latest voice changes, (which aren’t released yet) but you will go off release, so at some point after confirming if the change was fixed, you should just do npm i discord.js@latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

volume being ignored | MuseScore
I am sure this question has been raised before but the dynamics on the piece I am trying to compose are just getting...
Read more >
Windows 10 Sound level ignored by random applications
Some applications seem to ignore Windows' volume level, sounding way too loud, and resetting to the correct sound after I turn it up...
Read more >
testdriven.io - .dockerignore being ignored by docker compose
project there is a .dockerignore that is used to ignore files within ./project. However these files are not being ignored. Does the volume...
Read more >
Audio volume: ignoring certain sounds - Unreal Engine Forums
So i was wondering if there is a way to let the audio volume ignore certain sounds so they don't have reverb?
Read more >
Streaming site players ignore App Volume Device and play ...
Streaming site players ignore App Volume Device and play only on Default Device (only happens on Edge). Something has apparently gone awry in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found