#Decoder Process Killed is shown when trying to record voice

1 messages · Page 1 of 1 (latest)

surreal fox
#

@fading novasame error did you solve it?

#

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.")

surreal fox
#

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

surreal fox
#

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?

pliant girder
#

Did anyone figure this out?

minor sable
fading nova
#

as title

#

help

mystic pine
#

@fading nova whats the problem tho

#

i'll try to help

fading nova
#

so

#

this example

mystic pine
#

well

fading nova
#

and the /start command worked well

#

but when i use /stop

#

Decoder Process Killed just popped up

little grove
#

What encoding did you use?

#

and do you have opus?

fading nova
#

unicode

little grove
fading nova
#

mp3

little grove
#

Do you have ffmpeg?

fading nova
#

yes

#

on my laptop

little grove
fading nova
#

?

#

but i dont think i have opus

#

i dont really know what it is

little grove
#

@vestal sigil do you know of any changes to the voice recv code?

little grove
fading nova
#

and what should I do about it

little grove
#

I’m pretty sure opus is automatically installed with pycord in some cases

fading nova
#

i used pip install py-cord==2.0.0rc1

little grove
#

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

fading nova
#

same time zone

#

lol

#

just saying i found "print("Decoder Process Killed")" in opus.py

little grove
#

Maybe it’s a problem with the example

fading nova
#

idk

#

and "vc.stop_recording()" under stop is causing the print

fading nova
#

help

covert pumice
fading nova
#

i installed pyNACL

#

Pycord tries to keep the recording of audio as simple and easy as possible, to keep making Discord

fading nova
#

@covert pumice

covert pumice
#

I have no idea sorry. I have not use voice myself

fading nova
#

😦

fading nova
#

help

#

helpl

#

help

#

help

#

help

#

help

fading nova
#

help

jolly rain
#

dont spam this

fading nova
#

ok

#

sorry

minor sable
#

You haven't sent any code or stack traces, it's difficult for anyone to help

fading nova
#

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

fading nova
#

help

#

@mystic pine

#

@little grove

vestal sigil
#

Dont ping anyone else

fading nova
#

ok

#

sorry

mystic pine
fading nova
#

sry

winged rain
#

Does it print Decoder Process Killed only once? Or does it start spamming it?

proper reef
#

Did you download py-cord[voice]?

fading nova
#

but how though

#

pip install py-cord[voice] doesn't work

fading nova
proper reef
#

or put parentheses around py-cord[voice]

fading nova
# proper reef “py-cord[voice]==2.0.0rc1”

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

fading nova
#

but still spaming "Decoder Process Killed"

fading nova
#

just saying, i used "i used pip install py-cord==2.0.0rc1" not discord.py