No audio on Ubuntu 24.04

Hey everyone. I Have installed the newest versions avaliable basically and ubuntu does not like npm install @discordjs/opus no idea what i missing.
12 Replies
d.js toolkit
d.js toolkit2w ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
WhiteGarfield
WhiteGarfieldOP2w ago
npm error code 1
npm error path /root/Liam/node_modules/@discordjs/opus
npm error command failed
npm error command sh -c node-pre-gyp install --fallback-to-build
npm error Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node --module_name=opus --module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using [email protected]
npm error node-pre-gyp info using [email protected] | linux | x64
npm error (node:9541) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error node-pre-gyp info check checked for "/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node" (not found)
npm error node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error node-pre-gyp WARN Pre-built binaries not installable for @discordjs/[email protected] and [email protected] (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/Liam/node_modules/@discordjs/opus/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/22.13.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.13.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.13.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/root/Liam/node_modules/@discordjs/opus',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error code 1
npm error path /root/Liam/node_modules/@discordjs/opus
npm error command failed
npm error command sh -c node-pre-gyp install --fallback-to-build
npm error Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node --module_name=opus --module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using [email protected]
npm error node-pre-gyp info using [email protected] | linux | x64
npm error (node:9541) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error node-pre-gyp info check checked for "/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node" (not found)
npm error node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error node-pre-gyp WARN Pre-built binaries not installable for @discordjs/[email protected] and [email protected] (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-linux-x64-glibc-2.39.tar.gz
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/Liam/node_modules/@discordjs/opus/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/22.13.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.13.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.13.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/root/Liam/node_modules/@discordjs/opus',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error <string>:43: SyntaxWarning: invalid escape sequence '\$'
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp ERR! build error
npm error gyp ERR! stack Error: not found: make
npm error gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/lib/index.js:16:17)
npm error gyp ERR! stack at which (/usr/lib/node_modules/npm/node_modules/which/lib/index.js:77:9)
npm error gyp ERR! stack at async doWhich (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:119:22)
npm error gyp ERR! stack at async loadConfigGypi (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:78:7)
npm error gyp ERR! stack at async build (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:36:3)
npm error gyp ERR! stack at async run (/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
npm error gyp ERR! System Linux 6.8.0-51-generic
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node" "--module_name=opus" "--module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm error gyp ERR! cwd /root/Liam/node_modules/@discordjs/opus
npm error gyp ERR! node -v v22.13.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node --module_name=opus --module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm error node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/root/Liam/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1101:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm error node-pre-gyp ERR! System Linux 6.8.0-51-generic
npm error node-pre-gyp ERR! command "/usr/bin/node" "/root/Liam/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm error node-pre-gyp ERR! cwd /root/Liam/node_modules/@discordjs/opus
npm error node-pre-gyp ERR! node -v v22.13.0
npm error node-pre-gyp ERR! node-pre-gyp -v v0.4.5
npm error node-pre-gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-11T19_46_22_821Z-debug-0.log
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error <string>:43: SyntaxWarning: invalid escape sequence '\$'
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | x64
npm error gyp ERR! build error
npm error gyp ERR! stack Error: not found: make
npm error gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/lib/index.js:16:17)
npm error gyp ERR! stack at which (/usr/lib/node_modules/npm/node_modules/which/lib/index.js:77:9)
npm error gyp ERR! stack at async doWhich (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:119:22)
npm error gyp ERR! stack at async loadConfigGypi (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:78:7)
npm error gyp ERR! stack at async build (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:36:3)
npm error gyp ERR! stack at async run (/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
npm error gyp ERR! System Linux 6.8.0-51-generic
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node" "--module_name=opus" "--module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
npm error gyp ERR! cwd /root/Liam/node_modules/@discordjs/opus
npm error gyp ERR! node -v v22.13.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39/opus.node --module_name=opus --module_path=/root/Liam/node_modules/@discordjs/opus/prebuild/node-v127-napi-v3-linux-x64-glibc-2.39 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm error node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/root/Liam/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1101:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm error node-pre-gyp ERR! System Linux 6.8.0-51-generic
npm error node-pre-gyp ERR! command "/usr/bin/node" "/root/Liam/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm error node-pre-gyp ERR! cwd /root/Liam/node_modules/@discordjs/opus
npm error node-pre-gyp ERR! node -v v22.13.0
npm error node-pre-gyp ERR! node-pre-gyp -v v0.4.5
npm error node-pre-gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-11T19_46_22_821Z-debug-0.log
space
space2w ago
npm error gyp ERR! stack Error: not found: make Try installing build-essential
WhiteGarfield
WhiteGarfieldOP2w ago
first of all thanks for that, this fixed that but now i have the problem then the bot does join but does not like to start a stream (Bot works on a "little" older version of ubuntu but after now installing the lts of ubuntu and now aswell the correct opus version it doesnt) can it be the case that maybe something from ubuntu prevents a stream?
space
space2w ago
I don't think so, but I don't know a possible cause or solution for this.
WhiteGarfield
WhiteGarfieldOP7d ago
so currently its able to get the correct stream link, is able to create a connection to a voice channel aswell a player but its for currently unknown reasons unable to start the stream
<ref *1> AudioResource {
playStream: Encoder {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: undefined,
end: [Array],
readable: [Array],
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 16,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 9478413
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
encoder: OpusEncoder {},
_options: { rate: 48000, channels: 2, frameSize: 960 },
_required: 3840,
_buffer: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
edges: [
{
type: 'ffmpeg pcm',
to: [Node],
cost: 2,
transformer: [Function: transformer],
from: [Node]
},
{
type: 'volume transformer',
to: [Node],
cost: 0.5,
transformer: [Function: transformer],
from: [Node]
},
{
type: 'opus encoder',
to: [Node],
cost: 1.5,
transformer: [Function: transformer],
from: [Node]
}
],
metadata: null,
volume: VolumeTransformer {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: [Function: ondata],
end: [Array],
readable: undefined,
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [Array],
awaitDrainWriters: null,
[Symbol(kState)]: 194052364
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
_readInt: [Function (anonymous)],
_writeInt: [Function (anonymous)],
_bits: 16,
_bytes: 2,
_extremum: 32768,
volume: 0.25,
_chunk: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
encoder: Encoder {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: undefined,
end: [Array],
readable: [Array],
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 16,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 9478413
},
<ref *1> AudioResource {
playStream: Encoder {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: undefined,
end: [Array],
readable: [Array],
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 16,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 9478413
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
encoder: OpusEncoder {},
_options: { rate: 48000, channels: 2, frameSize: 960 },
_required: 3840,
_buffer: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
edges: [
{
type: 'ffmpeg pcm',
to: [Node],
cost: 2,
transformer: [Function: transformer],
from: [Node]
},
{
type: 'volume transformer',
to: [Node],
cost: 0.5,
transformer: [Function: transformer],
from: [Node]
},
{
type: 'opus encoder',
to: [Node],
cost: 1.5,
transformer: [Function: transformer],
from: [Node]
}
],
metadata: null,
volume: VolumeTransformer {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: [Function: ondata],
end: [Array],
readable: undefined,
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [Array],
awaitDrainWriters: null,
[Symbol(kState)]: 194052364
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
_readInt: [Function (anonymous)],
_writeInt: [Function (anonymous)],
_bits: 16,
_bytes: 2,
_extremum: 32768,
volume: 0.25,
_chunk: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
encoder: Encoder {
_events: {
close: [Array],
error: [Array],
prefinish: [Function: prefinish],
finish: [Array],
drain: undefined,
data: undefined,
end: [Array],
readable: [Array],
unpipe: [Function: onunpipe]
},
_readableState: ReadableState {
highWaterMark: 16,
buffer: [],
bufferIndex: 0,
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 9478413
},
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
encoder: OpusEncoder {},
_options: { rate: 48000, channels: 2, frameSize: 960 },
_required: 3840,
_buffer: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
audioPlayer: AudioPlayer {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_state: {
status: 'buffering',
resource: [Circular *1],
onReadableCallback: [Function: onReadableCallback],
onFailureCallback: [Function: onFailureCallback],
onStreamError: [Function: onStreamError]
},
subscribers: [ [PlayerSubscription] ],
behaviors: { noSubscriber: 'pause', maxMissedFrames: 5 },
debug: [Function (anonymous)],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
playbackDuration: 0,
started: false,
silencePaddingFrames: 5,
silenceRemaining: -1
}
},
_writableState: WritableState {
highWaterMark: 65536,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
allowHalfOpen: true,
_maxListeners: undefined,
_eventsCount: 7,
encoder: OpusEncoder {},
_options: { rate: 48000, channels: 2, frameSize: 960 },
_required: 3840,
_buffer: <Buffer >,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
audioPlayer: AudioPlayer {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_state: {
status: 'buffering',
resource: [Circular *1],
onReadableCallback: [Function: onReadableCallback],
onFailureCallback: [Function: onFailureCallback],
onStreamError: [Function: onStreamError]
},
subscribers: [ [PlayerSubscription] ],
behaviors: { noSubscriber: 'pause', maxMissedFrames: 5 },
debug: [Function (anonymous)],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
playbackDuration: 0,
started: false,
silencePaddingFrames: 5,
silenceRemaining: -1
}
thats the resource that it uses maybe this helps? i'm out of ideas... firewall is ok modules are all installed bot is working on a older version of ubuntu but not the lts one ffmpeg is able to reseave the stream but the bot does not wanna use it on the old ubuntu i used (22.04) and all modules up to date the bot works fine but on ubuntu (24.04) and aswell all modules up to date the bot does not like to start a stream If anyone asks node version is 22.13.0 if anyone has an idea please lemme know
pat
pat6d ago
voice intent
WhiteGarfield
WhiteGarfieldOP6d ago
Is given And hasn't been revoked in months
pat
pat6d ago
ah ok so you said it works on 2204 hmm this is probably way more low level than the library so i have no clue could be anything ranging from compiles of libopus on ubuntu24 being incompatible with what we are using to some driver shit i guess o wait it looks like it uses the same libopus anyways according to the error stack
WhiteGarfield
WhiteGarfieldOP3d ago
i asume that it has to do something with the distro itself and its installed packages (even tho there are all UTD Basically: Bot is the same (nothing changed) Modules are UTD on 2404 and 2204 Distro Packages are on both UTD But on the older Version music plays but not on the newer one When using ffmpeg in console the server is able to get all packages but when the bot wanna do the same it doesnt like it still have the problem sadly... Edit: Found the suspect. ffmpeg-static This module if used on newer Linux and ffmpeg versions the module makes problems cause it's binaries are only up to ffmpeg version 6.0.0 everything above 6.0.0 will NOT work. Only way to make it work is to install only newest ffmpeg (sudo apt ffmpeg) and get rid of ffmpeg-static completely.
Retro
Retro3d ago
Yeah ffmpeg installed from npm for Linux distros are corrupted. Shame I found your thread way later because I've known this for a while now
WhiteGarfield
WhiteGarfieldOP3d ago
I guess it's not really corrupted but more likely plainly not maintained but non the less.... the bot finally works now. stupid ffmpeg-static :KEKW:

Did you find this page helpful?