Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 使用MessageSegment.voice无法成功发送语音 #21

Closed
4 tasks done
okashi-ya opened this issue Oct 13, 2023 · 1 comment
Closed
4 tasks done

[Bug]: 使用MessageSegment.voice无法成功发送语音 #21

okashi-ya opened this issue Oct 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@okashi-ya
Copy link
Contributor

确认项

  • 问题的标题明确
  • 我翻阅过其他的 issue 并且找不到类似的问题
  • 我已经阅读了相关文档 并仍然认为这是一个 Bug
  • 我已经尝试过在最新的代码中修复这个问题

操作系统

Windows

Python 版本

3.8.16

NoneBot 版本

2.1.1

适配器

0.5.2

协议端

0.0.52

描述问题

使用MessageSegment.voice无法发送语音

复现步骤

1.使用MessageSegment.voice发送语音
(语音路径是正确的
image
这里是可以成功读取到语音文件的数据的)
语音格式为wav
之前在gocq上用CQ码发送是正常的

期望的结果

期望可以正确发送语音
日志没有报错
但在NTQQ侧显示发送了一条语音(但点开会提示InitFromFile Fail)
在群聊侧会显示为一张无法打开的图片
image
image

截图或日志

10-13 20:21:24 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.t.t, lineno=17)
10-13 20:21:24 [DEBUG] nonebot | Running Matcher(type='message', module=plugins.t.t, lineno=17)
10-13 20:21:24 [DEBUG] nonebot | Running handler Dependent(call=handle)
10-13 20:21:24 [DEBUG] nonebot | Running handler Dependent(call=handle_get_param)
10-13 20:21:24 [DEBUG] nonebot | Handler Dependent(call=handle_get_param) skipped
10-13 20:21:24 [DEBUG] nonebot | Running handler Dependent(call=_)
10-13 20:21:24 [DEBUG] nonebot | RedProtocol | Calling API send_message
10-13 20:21:25 [INFO] nonebot | Matcher(type='message', module=plugins.t.t, lineno=17) running complete
10-13 20:21:25 [DEBUG] nonebot | Stop event propagation
10-13 20:21:25 [DEBUG] nonebot | Checking for matchers completed

Nonebot 配置项

No response

@okashi-ya okashi-ya added the bug Something isn't working label Oct 13, 2023
@RF-Tar-Railt
Copy link
Member

chronocat 的语音发送需要手动将语音文件转为 .silk格式
所以这与适配器无关,你可以前往 https://github.com/chrononeko/bugtracker 提相关问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants