Giter Club home page Giter Club logo

Comments (9)

ikechan8370 avatar ikechan8370 commented on August 21, 2024

此外在android x86上发送语音会出现以下报错无法发送语音:

[23:49:28] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[23:49:28] INFO LoadExternalLibrary(name = avutil)
[23:49:28] INFO LoadExternalLibrary(name = swscale)
[23:49:28] INFO LoadExternalLibrary(name = swresample)
[23:49:28] INFO LoadExternalLibrary(name = avcodec)
[23:49:28] INFO LoadExternalLibrary(name = avformat)
[23:49:28] INFO LoadExternalLibrary(name = avfilter)
[23:49:28] INFO LoadExternalLibrary(name = avdevice)
[23:49:28] INFO LoadExternalLibrary(name = ffmpegkit)
[23:49:28] INFO LoadExternalLibrary(name = ffmpegkit_abidetect)
[23:49:28] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at moe.fuqiuluo.shamrock.utils.AudioUtils.audioToPcm(AudioUtils.kt:140)
	at moe.fuqiuluo.shamrock.utils.AudioUtils.audioToSilk$xposed_release(AudioUtils.kt:77)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker.createRecordElem-yxL6bBk(MessageMaker.kt:569)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker.access$createRecordElem-yxL6bBk(MessageMaker.kt:76)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker$createRecordElem$1.invokeSuspend(Unknown Source:19)
	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:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

[23:49:28] ERROR java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String com.arthenica.ffmpegkit.AbiDetect.getNativeAbi() (tried Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi and Java_com_arthenica_ffmpegkit_AbiDetect_getNativeAbi__)
	at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
	at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
	at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1318)
	at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)
	at moe.fuqiuluo.shamrock.utils.AudioUtils.audioToPcm(AudioUtils.kt:140)
	at moe.fuqiuluo.shamrock.utils.AudioUtils.audioToSilk$xposed_release(AudioUtils.kt:77)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker.createRecordElem-yxL6bBk(MessageMaker.kt:569)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker.access$createRecordElem-yxL6bBk(MessageMaker.kt:76)
	at moe.fuqiuluo.qqinterface.servlet.msg.MessageMaker$createRecordElem$1.invokeSuspend(Unknown Source:19)
	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:108)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

然后收到的消息就变成该消息只支持手机端查看

from openshamrock.

whitechi73 avatar whitechi73 commented on August 21, 2024

SILK编码的文件正常存在吗?

from openshamrock.

ikechan8370 avatar ikechan8370 commented on August 21, 2024

SILK编码的文件正常存在吗?

文件在的

from openshamrock.

whitechi73 avatar whitechi73 commented on August 21, 2024

SILK编码的文件正常存在吗?

文件在的

文件大小正常吗?

from openshamrock.

whitechi73 avatar whitechi73 commented on August 21, 2024
  • 下载 AudioLibrary 语音支持库,请下载对应架构的文件,否则可能无法运行。
  • 将全部文件解压到 Shamrock 主目录 下的 lib 文件夹中

AudioLibrary-Arm64
AudioLibrary-X64

from openshamrock.

ikechan8370 avatar ikechan8370 commented on August 21, 2024

SILK编码的文件正常存在吗?

文件在的

文件大小正常吗?

正常。根据debug日志的路径找过去的tmpfiles下的文件,mt管理器里可以打开播放。

from openshamrock.

ikechan8370 avatar ikechan8370 commented on August 21, 2024
  • 下载 AudioLibrary 语音支持库,请下载对应架构的文件,否则可能无法运行。
  • 将全部文件解压到 Shamrock 主目录 下的 lib 文件夹中

AudioLibrary-Arm64
AudioLibrary-X64

明白了。是我下错架构了。

from openshamrock.

ikechan8370 avatar ikechan8370 commented on August 21, 2024

是转换出来的SILK文件,正常吗(QQ语音格式是SILK)

才发现原来tmpfiles下面是原始文件。
然后根据代码去找到了amr文件,发现发送群聊和发送私聊时生成的amr文件完全相同,我是这么看的:

  1. 发送wav语音到群聊,ptt目录下出现amr文件,正常发送
  2. 删除刚才的amr
  3. 发送同一语音文件到私聊,ptt目录下出现amr文件,经对比文件名和哈希都和之前的一样。但是请求会卡住,只能手动取消http请求。

from openshamrock.

ikechan8370 avatar ikechan8370 commented on August 21, 2024

是转换出来的SILK文件,正常吗(QQ语音格式是SILK)

才发现原来tmpfiles下面是原始文件。
然后根据代码去找到了amr文件,发现发送群聊和发送私聊时生成的amr文件完全相同,我是这么看的:

  1. 发送wav语音到群聊,ptt目录下出现amr文件,正常发送
  2. 删除刚才的amr
  3. 发送同一语音文件到私聊,ptt目录下出现amr文件,经对比文件名和哈希都和之前的一样。但是请求会卡住,只能手动取消http请求。

可以把测试音频和这个问题提交到论坛吗?

好哦 我整理以下 咱也是洛守护

from openshamrock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.