Discord 接收音频 [英] Discord receive audio

查看:23
本文介绍了Discord 接收音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 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.

这篇关于Discord 接收音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆