imayhaveborkedit / discord-ext-voice-recv

Voice receive extension package for discord.py
https://pypi.org/project/discord-ext-voice-recv/
MIT License
118 stars 18 forks source link

SpeechRecognitionSink Fetch User Name? #17

Closed VenusMods closed 6 months ago

VenusMods commented 6 months ago

I have this code: func = getattr(recognizer, 'recognize_google', recognizer.recognize_google) text = func(audio) print(text) which outputs: it was such a unique thing 2024-05-12 19:17:49 INFO discord.ext.voice_recv.extras.speechrecognition sxypotatoe said: it was such a unique thing I'm able to print the text that is said ("it was such a unique thing"), but how do I grab the name that said it, ie "sxypotatoe" here?

VenusMods commented 6 months ago

nvm I get it through user.display_name

Marcusbjol commented 6 months ago

close the issue if you found it