artyshan
artyshan
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
ok. thanks!
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
yeah, even after renaming the sound file (and leaving the old name in code) there is no error, even with logging debug information
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
oh my god. thanks! appraently I just had wrong path to the test sound file. How didn't it produce an error though?
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
tried on Windows - same problem
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: 4.0.4
- sodium: 3.0.2
- libsodium-wrappers: 0.7.13
- tweetnacl: 1.0.3

FFmpeg
- version: 6.0-essentials_build-www.gyan.dev
- libopus: yes
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: 4.0.4
- sodium: 3.0.2
- libsodium-wrappers: 0.7.13
- tweetnacl: 1.0.3

FFmpeg
- version: 6.0-essentials_build-www.gyan.dev
- libopus: yes
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
I've installed ffmpeg npm package but dependency report still shows 6.0-static
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
also tested .wav and .ogg, the effect is the same
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
yes, I've just ran it couple of times but with no luck
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
I've posted the full code in the original post. Resource format js MP3 and duration is 3s
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
turns out the player stops playing because the resource's readable getter returns false at some point. I will debug further tomorrow
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
ok, I guess this log just says that speaking has been set to 0
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
you can see the player goes from playing to idle after just 130ms (I've put epoch milliseconds in square brackets). Do you know what this log means?
[1695592382460] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":0,"delay":0,"ssrc":418685}}
[1695592382460] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":0,"delay":0,"ssrc":418685}}
looks like it causes the player to stop (player state change happens in the exact same time)
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
Here are some logs but I'm not sure what to make of it
[1695592382240] FROM PLAYER: state change:
from {"status":"idle","resource":false,"stepTimeout":false}
to {"status":"buffering","resource":true,"stepTimeout":false}
[1695592382335] FROM PLAYER: state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
[1695592382359] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":1,"delay":0,"ssrc":418685}}
[1695592382460] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":0,"delay":0,"ssrc":418685}}
[1695592382460] FROM PLAYER: state change:
from {"status":"playing","missedFrames":0,"playbackDuration":120,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
[1695592394169] FROM CONNECTION: [NW] [WS] >> {"op":3,"d":1695592394169}
[1695592394206] FROM CONNECTION: [NW] [WS] << {"op":6,"d":1695592394169}
[1695592382240] FROM PLAYER: state change:
from {"status":"idle","resource":false,"stepTimeout":false}
to {"status":"buffering","resource":true,"stepTimeout":false}
[1695592382335] FROM PLAYER: state change:
from {"status":"buffering","resource":true,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}
[1695592382359] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":1,"delay":0,"ssrc":418685}}
[1695592382460] FROM CONNECTION: [NW] [WS] >> {"op":5,"d":{"speaking":0,"delay":0,"ssrc":418685}}
[1695592382460] FROM PLAYER: state change:
from {"status":"playing","missedFrames":0,"playbackDuration":120,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}
[1695592394169] FROM CONNECTION: [NW] [WS] >> {"op":3,"d":1695592394169}
[1695592394206] FROM CONNECTION: [NW] [WS] << {"op":6,"d":1695592394169}
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
also forgot to mention an important thing - there are no errors (wrapped the whole command handling in try/catch)
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
btw I'm currently testing on Linux, but can switch to Windows if that could be the case
32 replies
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
I've installed it now
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: 4.0.4
- sodium: 3.0.2
- libsodium-wrappers: 0.7.13
- tweetnacl: 1.0.3

FFmpeg
- version: 6.0-6
- libopus: yes
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: 4.0.4
- sodium: 3.0.2
- libsodium-wrappers: 0.7.13
- tweetnacl: 1.0.3

FFmpeg
- version: 6.0-6
- libopus: yes
still no sound 😦
32 replies