ITADN

Feature Request: 集成 FunASR 实现语音消息识别

#4031ClosedLauraGPT 创建于 2026-05-31
wontfix
L
LauraGPTcommented
## 功能建议 NoneBot2 是优秀的跨平台聊天机器人框架。建议集成 FunASR 实现语音消息自动转文字功能。 **应用场景:** - 用户在 QQ/微信/Telegram 发送语音消息 → FunASR 自动转写为文字 → 机器人处理文字指令 - 语音群聊记录自动转写 **为什么选择 FunASR?** - **SenseVoice**:中文语音识别精度极高,50+ 语种 - **超快速度**:非自回归架构,GPU 170 倍实时 - **情感检测**:识别语音情感,丰富机器人交互 - **完全本地**:不需要云端 API,保护隐私 - **OpenAI 兼容**:`funasr-server` 提供标准接口 **快速接入示例:** ```python from funasr import AutoModel model = AutoModel(model="iic/SenseVoiceSmall") # NoneBot2 插件中处理语音消息 @on_message().handle() async def handle_voice(event: Event): audio_data = event.get_audio() result = model.generate(input=audio_data) text = result[0]["text"] # 处理识别出的文字... ``` - GitHub: https://github.com/modelscope/FunASR(16K+ stars)
关闭于 2026-05-31 2 条评论