thechickenknight
thechickenknight
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
thank you so much for all the help you've given me so far by the way
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
what i meant is that when i try to recieve audio with
const audio = connection.receiver.subscribe(msg.author.id, {
autoDestroy: false,
emitClose: false
});

let decoder = new prism.opus.Decoder({
channels: 2,
frameSize: 960,
rate: 48000
});

console.log(audio)
audio.pipe(decoder).pipe(exec('ffplay -').stdin);
console.log(Object.keys(audio._readableState))
const audio = connection.receiver.subscribe(msg.author.id, {
autoDestroy: false,
emitClose: false
});

let decoder = new prism.opus.Decoder({
channels: 2,
frameSize: 960,
rate: 48000
});

console.log(audio)
audio.pipe(decoder).pipe(exec('ffplay -').stdin);
console.log(Object.keys(audio._readableState))
I get a zero length buffer no matter if I constantly speak while I run the command or not
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
okay i wrote that really wrong
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
as in the buffer is empty
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
so the problem is fixed as long as I have the latest voice version, but i constantly get severity vulnerabilities. Also my connection reciever immediately ends even if I continously play sound idk
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
Will install @discordjs/[email protected], which is a breaking change
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
it tries to get me to audit fix this
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
so it seems there's some compatability error with discord opus and voice?
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
semver <7.5.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install @discordjs/[email protected], which is a breaking change
node_modules/make-dir/node_modules/semver
make-dir 2.0.0 - 3.1.0
Depends on vulnerable versions of semver
node_modules/make-dir
@discordjs/node-pre-gyp >=0.3.1
Depends on vulnerable versions of make-dir
node_modules/@discordjs/node-pre-gyp
@discordjs/opus >=0.5.0
Depends on vulnerable versions of @discordjs/node-pre-gyp
node_modules/@discordjs/opus
prism-media 1.2.9 - 1.3.5
Depends on vulnerable versions of @discordjs/opus
node_modules/prism-media
@discordjs/voice >=0.2.0
Depends on vulnerable versions of prism-media
node_modules/@discordjs/voice

6 moderate severity vulnerabilities
semver <7.5.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install @discordjs/[email protected], which is a breaking change
node_modules/make-dir/node_modules/semver
make-dir 2.0.0 - 3.1.0
Depends on vulnerable versions of semver
node_modules/make-dir
@discordjs/node-pre-gyp >=0.3.1
Depends on vulnerable versions of make-dir
node_modules/@discordjs/node-pre-gyp
@discordjs/opus >=0.5.0
Depends on vulnerable versions of @discordjs/node-pre-gyp
node_modules/@discordjs/opus
prism-media 1.2.9 - 1.3.5
Depends on vulnerable versions of @discordjs/opus
node_modules/prism-media
@discordjs/voice >=0.2.0
Depends on vulnerable versions of prism-media
node_modules/@discordjs/voice

6 moderate severity vulnerabilities
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
i'll leave that up for tommorow me
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
hopefully it works now
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
nevermind i added @latest at the end of the install command and got the right version
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
other than npm because it's telling me I have the latest version
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
is there some other way i can update it?
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
it wouldn't hurt to add that my bot does not join vc undeafened even though I expressely wrote the property selfDeaf to false
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
Did not enter state ready within 5000ms
at Timeout.<anonymous> (E:\GitHub repos\voice recognition\node_modules\@discordjs\voice\dist\util\entersState.js:17:49)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
Did not enter state ready within 5000ms
at Timeout.<anonymous> (E:\GitHub repos\voice recognition\node_modules\@discordjs\voice\dist\util\entersState.js:17:49)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
20 replies
DIAdiscord.js - Imagine an app
Created by thechickenknight on 6/29/2023 in #djs-voice
Did not enter state ready within 5000ms
full error:
20 replies