artyshan
artyshan
DIAdiscord.js - Imagine an app
Created by artyshan on 9/24/2023 in #djs-voice
Yet another "no voice" thread
Hi, I'm trying to write my first Discord bot. I'm struggling with playing a sound in voice channel. I've read many posts here about the bot not playing any audio, but haven't found any solution. One strange thing I've found while debugging is, the bot switches to Idle state immediately after switching to Playing state, but I can;t figure out what's wrong. Here's my code (I've simplified it in order to create a minimal failing example) Dependency report:
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-static https://johnvansickle.com/ffmpeg/
- 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-static https://johnvansickle.com/ffmpeg/
- libopus: yes
Will greatly appreciate any help. Cheers!
32 replies