#Decoder Process Killed is shown when trying to record voice
1 messages · Page 1 of 1 (latest)
p much been stuck on this on ubuntu
for a while now
seems like installing ffmpeg worked
for the first time
new error i get now before decoding is
raise SinkException("The AudioData is already finished writing.")
my best guess is this here
not writing properly
the seek(0)
but like
doesn't make sense as it should be a new file?
it works the first time for me
but not the second time
so i'm guess it's to do with cleanup
another interesting thing
seems like i can cycle through
different formats
without making it crash
seems like for each encoding is not getting properly reset?
causing the next one to fail and print
Decoder processes Killed
maybe it's just ubuntu?
i'll try it on my mac
solved it by
reseting the discord.sinks.MP3Sink() everytime it starts recording
and hoping garbage collection takes care of it
worried however that i'm not closing a file?
which might cause issues later down the line?
same error on my mac as well
which leads me to believe this probably affects most UNIX systems
unless there is something not being downloaded?
Did anyone figure this out?
Please start a new thread
as title
help
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - pycord/audio_recording.py at master · Pycord-Development/pycord
so
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - pycord/audio_recording.py at master · Pycord-Development/pycord
this example
well
and the /start command worked well
but when i use /stop
Decoder Process Killed just popped up
Well, on the example you get to pick an audio encoding, which one did you use?
mp3
Do you have ffmpeg?

@vestal sigil do you know of any changes to the voice recv code?
It’s what discord uses to encode voice data in they’re voice api
and what should I do about it
I’m pretty sure opus is automatically installed with pycord in some cases
i used pip install py-cord==2.0.0rc1
I’d have to do more research into the voice recv core to possibly find a culprit
But I’d have to do that later since it’s 10:30pm where I am
same time zone
lol
just saying i found "print("Decoder Process Killed")" in opus.py
Maybe it’s a problem with the example
help
Isnt there a special one for voice?
i installed pyNACL
and it still doesn't work with pip install -U git+https://github.com/Pycord-Development/pycord
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - GitHub - Pycord-Development/pycord: Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API
also, https://stackoverflow.com/questions/51350976/discord-receive-audio and https://guide.pycord.dev/voice/receiving/ both never work for me
I want to receive Audio from Discord to make a speech recognition. I haven't found something in the python Discord APi. The speech recognition is no problem, but I have no idea how to receive Audio...
Pycord tries to keep the recording of audio as simple and easy as possible, to keep making Discord
@covert pumice
I have no idea sorry. I have not use voice myself
😦
help
dont spam this
You haven't sent any code or stack traces, it's difficult for anyone to help
i showed that im using the example in the repo
and there isn't any stack traces
just the function isnt functioning and keep printing
@minor sable
Dont ping anyone else
sry
Does it print Decoder Process Killed only once? Or does it start spamming it?
Did you download py-cord[voice]?
No
“py-cord[voice]==2.0.0rc1”
or put parentheses around py-cord[voice]
now it shows
Traceback (most recent call last):
File "/Users/ruochen/PycharmProject/Finnary/main.py", line 6, in <module>
bot = discord.Bot()
AttributeError: module 'discord' has no attribute 'Bot'
the whole code doesn't work
Yay, traceback disappeared
but still spaming "Decoder Process Killed"
Spaming it
just saying, i used "i used pip install py-cord==2.0.0rc1" not discord.py