-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
语音消息无法发送 #28
Comments
看起来应该是 Lagrange 无法编码语音文件。 |
使用2d54df9新版,语音输出依旧存在问题 网络日志如下: Lagrange端警告日志与之前相同 |
待发送的语音是如何生成的,可以发一份样品上来吗 |
我遇到了相似的问题,我的语音生成实现是 byte[] bytes = Files.readAllBytes(Paths.get(path));
String base64 = Base64.getEncoder().encodeToString(bytes);
Audio audio = OverflowAPI.get().audioFromFile("base64://"+ base64);
sender.sendMessage(audio); 网络日志
lagrange端日志
|
看起来好像必须是silk格式,换成silk格式就能正常发送了 |
不知道能不能让Overflow支持转换音频格式( |
问题描述
通过overflow和lagrange发送语音消息无法发出
复现
通过overflow和lagrange发送语音消息无法发出
Overflow 版本
8c7dd0c
其他组件版本
No response
系统日志
网络日志
补充信息
warn: Lagrange.OneBot.Core.Operation.OperationService[0]
Unexpected error encountered while handling message.
System.Exception: Encode failed
at Lagrange.OneBot.Message.Entity.RecordSegment.Build(MessageBuilder builder, SegmentBase segment)
at Lagrange.OneBot.Core.Operation.Message.MessageCommon.BuildMessages(MessageBuilder builder, List`1 segments)
at Lagrange.OneBot.Core.Operation.Message.SendGroupMessageOperation.HandleOperation(BotContext context, JsonNode payload)
at Lagrange.OneBot.Core.Operation.OperationService.HandleOperation(MsgRecvEventArgs e)
The text was updated successfully, but these errors were encountered: