不和谐接收音频 [英] Discord receive audio
本文介绍了不和谐接收音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从Discord接收音频以进行语音识别.我在python Discord APi中找不到任何东西.语音识别是没有问题的,但是我不知道如何从Discord接收音频.也许有人可以帮助我.
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 from Discord. Maybe someone can help me.
推荐答案
此功能实际上并不存在.有一个 VoiceClient.poll_voice_ws
协程,但是直接从套接字读取.您将不得不想出一种将其解码为音频并自己进行进一步处理的方法.
This functionality doesn't really exist. There is a VoiceClient.poll_voice_ws
coroutine, but that just reads directly from the socket. You'll have to come up with some way of decoding that into audio and further handling it yourself.
这篇关于不和谐接收音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文