Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

bug: 无法发送语音(语音文件不存在) #291

Open
shirakun opened this issue Mar 12, 2024 · 0 comments
Open

bug: 无法发送语音(语音文件不存在) #291

shirakun opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working Onebot 针对OneBot11标准的Shamrock

Comments

@shirakun
Copy link

描述 Bug

无法发送语音消息,log显示文件不存在

复现 Bug

post请求接口/send_group_msg,内容如下

{"group_id":123456,"access_token":"","message":"[CQ:record,file=https:\/\/dds.dui.ai\/runtime\/v1\/synthesize?voiceId=hchunf_ctn&text=%E6%82%A8%E5%A5%BD%E4%B8%96%E7%95%8C&speed=1&volume=100&audioType=mp3]"}

日志如下

[11:23:44] INFO 群消息(group = 聊天群(12345678), uin = 123456789, id = 123456789, seq = 13049, msg = !v)
[11:23:46] ERROR java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.tencent.mobileqq/Tencent/Shamrock/tmpfiles/tmp_932bf880-9f5d-4e9e-a239-426c24708714 (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:231)
	at java.io.FileInputStream.<init>(FileInputStream.java:165)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion.$r8$lambda$XgnKz7L6tCWRUaIAa7SVURwtFE4(Unknown Source:0)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion$$ExternalSyntheticLambda1.run(Unknown Source:2)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:764)

[11:23:46] ERROR java.lang.IllegalStateException: 消息合成失败,请查看日志或者检查输入。
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda$1$lambda$0(NettyApplicationEngine.kt:296)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion.$r8$lambda$XgnKz7L6tCWRUaIAa7SVURwtFE4(Unknown Source:0)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion$$ExternalSyntheticLambda1.run(Unknown Source:2)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:764)

此外本次是通过LSPatch运行的,之前在LSPosed+其它版本的qq以及尝试在android x86环境下测试也有相同的问题
最初怀疑是语音文件的url问题,但通过浏览器打开后可以正常播放

系统信息

  • Shamrock 版本: 1.0.9.r405.2ac0003
  • Android 版本: android 9
  • LSPosed 框架版本: 1.9.2 (7024)
  • 设备的制造商和型号: 移动云 云手机基础版(是移动云的,不是38/月的那个
  • 设备的 CPU 架构: arm64
@shirakun shirakun added the bug Something isn't working label Mar 12, 2024
@whitechi73 whitechi73 added the Onebot 针对OneBot11标准的Shamrock label Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Onebot 针对OneBot11标准的Shamrock
Projects
None yet
Development

No branches or pull requests

2 participants