MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    ♿otto-hzys - 电棍の活字印刷插件♿

    插件发布
    java plugin
    8
    26
    2755
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Travellerr
      Travellerr last edited by Travellerr

      otto-hzys

      顾名思义,专门用于制作活字印刷音频的插件

      如果有任何问题请优先前往github提issues!论坛回复可能不及时

      指令

      指令 权限节点 功能
      /活字印刷 cn.travellerr.otto-hzys:command.hzys 活字印刷

      配置

      音频处理配置在 ./config/cn.travellerr.otto-hzys/config.yml 中

      # ffmpeg目录路径
      ffmpegPath: ''
      

      不填默认使用Mirai Silk Converter进行音频转换,否则使用填入的ffmpeg进行转换

      <br>

      主配置在 data/cn.travellerr.otto-hzys/ysddTable.json 下

      是枚举!我用了枚举(雾

      {
       "mi yu shuo de dao li": "miyu",
       "a mi yu shuo de dao li": "miyu",
       "da jia hao a": "djha",
       "wo shi shuo de dao li": "wssddl",
       "jin tian lai dian da jia xiang kan de dong xi": "jtlaidian",
       "jin tian lai dian er da jia xiang kan de dong xi": "jtlaidian",
       "shuo de dao li": "sddl",
       "bo bi shi wo die": "bobi",
       "a ma bo bi shi wo die": "bobi",
       "wo cao bing": "wcb",
       "wo cao ^ bing": "wcb",
       "xuan gou": "xg",
       "a mi nuo si": "amns",
       "a ^ er cha shu mei la": "ecs",
       "a er cha shu mei la": "ecs",
       "ao li an fei ^ ei ai lou ai lou ^ ai ng": "alaf",
       "ao li an fei ei ai lou ai lou ^ ai ng": "alaf",
       "ao li an fei": "alaf",
       "bie zhui la": "bzl",
       "bie zhui le": "bzl",
       "bu ke yi": "bky",
       "bu shi ni ma e xin ren ni you ge du": "bsnmexrnygd",
       "bu shi ni e xin ren ni ye you ge du": "bsnmexrnygd",
       "bu shi ni ta ma e xin ren ye you ge du": "bsnmexrnygd",
       "bu shi ni ma e xin ren ni ye you ge du": "bsnmexrnygd",
       "cao ni ma ^ ni zhei zhong di fen gou zai zhe tai gang ni": "cnmnzzdfgzztgn",
       "cao ni ma ni zhei zhong di fen gou zai zhe tai gang ni": "cnmnzzdfgzztgn",
       "chi ning meng kai da a": "cnmkd",
       "chi ning meng kai da": "cnmkd",
       "cao ni ma kai da a": "cnmkd",
       "cao ni ma kai da": "cnmkd",
       "chao ni ma kai da a": "cnmkd",
       "chao ni ma kai da": "cnmkd",
       "chong ci": "cc",
       "dao li": "dl",
       "ha ha ha ha": "hhhh",
       "du du du": "ddd",
       "dui you ne ^ jiu yi xia a": "dynjyxa",
       "dui you ne ^ jiu yi xia ": "dynjyxa",
       "dui you ne jiu yi xia a": "dynjyxa",
       "dui you ne jiu yi xia": "dynjyxa",
       "e^ ni zen me si le ^": "enzmsl",
       "ei ni zen me si le ^": "enzmsl",
       "e^ ni zen me si le": "enzmsl",
       "ei ni zen me si le": "enzmsl",
       "ji lao zi si ^": "glzs",
       "gei lao zi si ^": "glzs",
       "ji lao zi si": "glzs",
       "gei lao zi si": "glzs",
       "ha bi xia": "hbx",
       "hao e xin a ^": "hexa",
       "hao e xin a": "hexa",
       "ji bai": "jb",
       "kai da a ^": "kda",
       "kai da a": "kda",
       "ma shei han jian ^": "mshj",
       "ma shei han jian": "mshj",
       "mei shou guo zhei me da wei qu ^ cong xiao dao da ^": "msgzmdwqcxdd",
       "mei shou guo zhei me da wei qu cong xiao dao da ^": "msgzmdwqcxdd",
       "mei shou guo zhei me da wei qu ^ cong xiao dao da": "msgzmdwqcxdd",
       "mei shou guo zhei me da wei qu cong xiao dao da": "msgzmdwqcxdd",
       "mei shou guo zhe me da wei qu ^ cong xiao dao da ^": "msgzmdwqcxdd",
       "mei shou guo zhe me da wei qu cong xiao dao da ^": "msgzmdwqcxdd",
       "mei shou guo zhe me da wei qu ^ cong xiao dao da": "msgzmdwqcxdd",
       "mei shou guo zhe me da wei qu cong xiao dao da": "msgzmdwqcxdd",
       "nei wo que de zhei ge ying yang ^ shei ji wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai ^ shei ji wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai shei ji wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai ^ shei ji wo bu a": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai shei ji wo bu a": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang shei ji wo bu a": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang ^ shei gei wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai ^ shei gei wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai shei gei wo bu a ^": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai ^ shei gei wo bu a": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang zhei kuai shei gei wo bu a": "nwqdzgyyzksgwba",
       "nei wo que de zhei ge ying yang shei gei wo bu a": "nwqdzgyyzksgwba",
       "ni bu xu shuo ta ^": "nbxst",
       "ni bu xu shuo ta": "nbxst",
       "ni xi huan wo ^": "nxhw",
       "ni xi huan wo": "nxhw",
       "ou nei de shou ^ hao han ^": "ondshh",
       "ou nei de shou ^ hao han": "ondshh",
       "ou nei de shou hao han ^": "ondshh",
       "ou nei de shou hao han": "ondshh",
       "sa bi": "sb",
       "sha bi": "sb",
       "ta shi wo die ^": "tswd",
       "ta shi wo die": "tswd",
       "wei shen me ya": "wsmy",
       "wo cao ni ma ^": "wcnm",
       "wo cao ni ma": "wcnm",
       "wo chao ni ma ^": "wcnm",
       "wo chao ni ma": "wcnm",
       "wo xi huan ni ^": "wxhn",
       "wo xi huan ni": "wxhn",
       "wo cao si ni de ma": "wcsndm",
       "wo chao si ni de ma": "wcsndm",
       "wo chong shi ni de meng": "wcsndm",
       "yi de ge la mi": "ydglm",
       "yuan zi dan": "yzd",
       "zhu bi ba ^ zhei zen me zhei me cai a": "zbbzzmzmca",
       "zhu bi ba zhei zen me zhei me cai a": "zbbzzmzmca",
       "zhu bi ba zhe zen me zhei me cai a": "zbbzzmzmca",
       "zhu bi ba zhei zen me zhe me cai a": "zbbzzmzmca",
       "zhu bi ba zhe zen me zhe me cai a": "zbbzzmzmca",
       "wa ao ^": "wa",
       "wa ao": "wa",
       "wo cao ^": "wc",
       "wo cao": "wc",
       "ha li lu da xuan feng ^": "hlldxf",
       "ha li lu da xuan feng": "hlldxf"
      }
      

      键 为触发文字的拼音
      值 为出发后替换的音频文件名称(不带后缀)

      原声大碟的音频请全部放置于data/cn.travellerr.otto-hzys/ysddSource 内,其余拼接音频请放置于data/cn.travellerr.otto-hzys/source 内


      食用方法

      下载Release中的插件与 resource.zip,将插件放入plugins文件夹后,将resource.zip解压在路径./data/cn.travellerr.otto-hzys 下,构造如下

      data/
      └─ cn.travellerr.otto-hzys/
         │
         ├─ ysddTable.json
         │
         ├─ ysddSources/
         │  └─ 原声大碟文件.wav
         │
         └─ sources/
            └─ 音频文件.wav
      

      请配置ffmpeg路径或搭配Mirai Silk Converter使用!


      本插件灵感与部分资源均来源于Github上的开源项目HUOZI

      1 Reply Last reply Reply Quote 2
      • mckyby
        mckyby 摸鱼 last edited by

        我充实你的梦()

        1 Reply Last reply Reply Quote 0
        • AkinoowariQMJ
          AkinoowariQMJ last edited by

          好好好好好

          1 Reply Last reply Reply Quote 0
          • AkinoowariQMJ
            AkinoowariQMJ last edited by

            image.png大佬你好,请问我配置里输入了ffmpeg的路径且data文件里已经解压过资源包并确认内部音频文件可以正常使用多媒体播放之后,mcl仍然出现了这样的问题,该怎么办?

            1 Reply Last reply Reply Quote 0
            • AkinoowariQMJ
              AkinoowariQMJ last edited by

              2024-08-07 12:35:48 I/otto-hzys: 阿洛娜杂项-活字印刷
              2024-08-07 12:35:48 I/stdout: result:我喜欢你
              2024-08-07 12:35:48 I/stdout: [wxhns]
              2024-08-07 12:35:48 I/otto-hzys: 阿洛娜杂项-Failed to load audio file: wxhns in F:\Mirai\data\cn.travellerr.otto-hzys/sources/wxhns.wav, starting to try ysddSources
              2024-08-07 12:35:48 W/otto-hzys: Exception in executing command [mirai:source:ids=[132548], internalIds=[-398579210], from group 2321269643 to 223424038 at 1723005340]/活字印刷 我喜欢你
              command owned by otto-hzys v1.0.0 with NormalMember(2321269643)
              java.lang.RuntimeException: java.io.IOException: Failed to load audio file: wxhns in F:\Mirai\data\cn.travellerr.otto-hzys/ysddSources/wxhns.wav
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.Hzys.gen(Hzys.java:127)
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.Hzys.info(Hzys.java:40)
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.command.GenerateHzys.useVoice(CommandUtil.kt:21)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.base/java.lang.reflect.Method.invoke(Unknown Source)
              at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
              at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
              at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
              at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
              at kotlin.reflect.jvm.internal.KCallableImpl.callBy(KCallableImpl.kt:112)
              at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1$invokeSuspend$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23)
              at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
              at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
              at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
              at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
              at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
              at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
              at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
              at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
              at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
              Caused by: java.io.IOException: Failed to load audio file: wxhns in F:\Mirai\data\cn.travellerr.otto-hzys/ysddSources/wxhns.wav
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.Hzys.loadAudioInputStream(Hzys.java:203)
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.Hzys.gen(Hzys.java:62)
              ... 23 more
              Caused by: java.io.FileNotFoundException: F:\Mirai\data\cn.travellerr.otto-hzys\ysddSources\wxhns.wav (系统找不到指定的 文件。)
              at java.base/java.io.FileInputStream.open0(Native Method)
              at java.base/java.io.FileInputStream.open(Unknown Source)
              at java.base/java.io.FileInputStream.<init>(Unknown Source)
              at java.desktop/com.sun.media.sound.SunFileReader.getAudioInputStream(Unknown Source)
              at java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
              at otto-hzys-1.0.0.mirai2.jar//cn.travellerr.Hzys.loadAudioInputStream(Hzys.java:199)
              ... 24 more

              Travellerr 1 Reply Last reply Reply Quote 0
              • Travellerr
                Travellerr @AkinoowariQMJ last edited by

                @AkinoowariQMJ 我好像设置结尾时用的"^s"结尾,但替换原声大碟时实际上替换的是"[拼音]^",所以导致后面留下了一个"s"。最新版已修复
                https://github.com/Travellerrr/mirai-otto-hzys/releases/tag/v1.0.1

                AkinoowariQMJ 1 Reply Last reply Reply Quote 1
                • Small-Cat
                  Small-Cat last edited by Small-Cat

                  一个报错 ()
                  不清楚是LLOnebot造成的还是插件报错

                  2024-08-07 22:16:53 I/otto-hzys: 阿洛娜杂项-Failed to load audio file: sb in D:\Bot\with-overflow\data\cn.travellerr.otto-hzys/sources/sb.wav, starting to try ysddSources
                  2024-08-07 22:16:53 W/Onebot: 请求失败: [send_group_msg] 请求失败: app=LLOneBot v3.27.3, message=语音转换失败, 请检查语音文件是否正常, retJson={"status":"failed","retcode":1200,"data":null,"message":"语音转换失败, 请检查语音文件是否正常","wording":"语音转换失败, 请检查语音文件是否正常","echo":7}。如果你认为这是 Overflow 的问题,请带上 logs/onebot 中的日志来反馈。
                  2024-08-07 22:16:53 V/Bot.[QQ号]: Group(QQ群) <- [overflow:audio,file=base64://IyFBTVItV0IKRJVGS4HNv1L... (amr, about 3.40 KB)]
                  2024-08-07 22:16:53 W/stderr: Exception in thread "Thread-18" java.lang.IllegalStateException: 消息发送失败,详见网络日志 (logs/onebot/*.log) 和 Onebot 实现 (LLOneBot v3.27.3) 的日志
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.utils.TransformerUtilsKt.safeMessageIds(TransformerUtils.kt:97)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.contact.GroupWrapper.sendMessage(GroupWrapper.kt:176)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.contact.GroupWrapper$sendMessage$1.invokeSuspend(GroupWrapper.kt)
                  2024-08-07 22:16:53 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
                  2024-08-07 22:16:53 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:178)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.ResumeAwaitOnCompletion.invoke(JobSupport.kt:1413)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.JobSupport.completeStateFinalization(JobSupport.kt:318)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.JobSupport.tryFinalizeSimpleState(JobSupport.kt:295)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:856)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.JobSupport.makeCompleting$kotlinx_coroutines_core(JobSupport.kt:806)
                  2024-08-07 22:16:53 W/stderr:   at kotlinx.coroutines.CompletableDeferredImpl.complete(CompletableDeferred.kt:92)
                  2024-08-07 22:16:53 W/stderr:   at cn.evolvefield.onebot.client.util.ActionSendRequest.onCallback(ActionSendRequest.kt:80)
                  2024-08-07 22:16:53 W/stderr:   at cn.evolvefield.onebot.client.handler.ActionHandler.onReceiveActionResp(ActionHandler.kt:41)
                  2024-08-07 22:16:53 W/stderr:   at cn.evolvefield.onebot.client.connection.IAdapter$DefaultImpls.onReceiveMessage(IAdapter.kt:27)
                  2024-08-07 22:16:53 W/stderr:   at cn.evolvefield.onebot.client.connection.WSClient.onReceiveMessage(WSClient.kt:19)
                  2024-08-07 22:16:53 W/stderr:   at cn.evolvefield.onebot.client.connection.WSClient.onMessage(WSClient.kt:51)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:661)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:986)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.drafts.Draft_6455.processFrame(Draft_6455.java:910)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:397)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.WebSocketImpl.decode(WebSocketImpl.java:229)
                  2024-08-07 22:16:53 W/stderr:   at top.mrxiaom.overflow.internal.deps.websocket.client.WebSocketClient.run(WebSocketClient.java:544)
                  2024-08-07 22:16:53 W/stderr:   at java.base/java.lang.Thread.run(Unknown Source)
                  
                  Travellerr 1 Reply Last reply Reply Quote 0
                  • Travellerr
                    Travellerr @Small-Cat last edited by

                    @Small-Cat 请问语音转换使用的是ffmpeg还是Mirai Silk Converter?

                    Small-Cat 1 Reply Last reply Reply Quote 0
                    • Small-Cat
                      Small-Cat @Travellerr last edited by

                      @Travellerr ffmpeg

                      Travellerr 1 Reply Last reply Reply Quote 0
                      • Travellerr
                        Travellerr @Small-Cat last edited by

                        @Small-Cat 貌似是插件的问题,明天我会修复

                        1 Reply Last reply Reply Quote 0
                        • Small-Cat
                          Small-Cat last edited by

                          好的,麻烦作者了 o.0

                          Travellerr 1 Reply Last reply Reply Quote 0
                          • AkinoowariQMJ
                            AkinoowariQMJ @Travellerr last edited by

                            @Travellerr 好的,谢谢

                            1 Reply Last reply Reply Quote 0
                            • Travellerr
                              Travellerr @Small-Cat last edited by

                              @Small-Cat 最新版已修复,这里还是推荐使用Mirai Silk Converter 进行音频转换,这样发出来的音频全平台都可以播放

                              1 Reply Last reply Reply Quote 0
                              • F
                                fantasygyp last edited by

                                java.lang.RuntimeException: 执行失败!java.lang.Process$PipeInputStream@1885d3cc
                                        at otto-hzys-1.0.2.mirai2.jar//cn.travellerr.Hzys.gen(Hzys.java:102)
                                        at otto-hzys-1.0.2.mirai2.jar//cn.travellerr.Hzys.info(Hzys.java:40)
                                        at otto-hzys-1.0.2.mirai2.jar//cn.travellerr.command.GenerateHzys.useVoice(CommandUtil.kt:21)
                                        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
                                        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                        at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
                                        at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
                                        at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
                                        at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:159)
                                        at kotlin.reflect.jvm.internal.KCallableImpl.callBy(KCallableImpl.kt:112)
                                        at net.mamoe.mirai.console.internal.command.CommandReflector$findSubCommands$6$1$invokeSuspend$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23)
                                        at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
                                        at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
                                        at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
                                        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                        at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
                                        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
                                        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
                                        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)```
                                

                                code_text

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fantasygyp last edited by

                                  使用ffmpeg就报上面错 用Silk Converter发出的语音无法接收

                                  Travellerr 1 Reply Last reply Reply Quote 0
                                  • Travellerr
                                    Travellerr @fantasygyp last edited by Travellerr

                                    @fantasygyp 请问mirai主目录下的temp文件夹里有没有音频文件?配置文件下的ffmpeg路径填的什么?

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fantasygyp @Travellerr last edited by

                                      @Travellerr # ffmpeg地址
                                      ffmpegPath: 'E:\ffmpeg-master-latest-win64-gpl\bin\ffmpeg.exe'

                                      这个路径是这样填的吗

                                      temp生成了文件
                                      QQ截图20240811083903.png

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fantasygyp last edited by

                                        载入插件时有这条报错

                                        2024-08-11 13:21:57 E/Silk Converter: java.lang.NoSuchMethodError: 'void net.mamoe.mirai.spi.AudioToSilkService$Companion.setService(net.mamoe.mirai.spi.AudioToSilkService)'
                                        java.lang.NoSuchMethodError: 'void net.mamoe.mirai.spi.AudioToSilkService$Companion.setService(net.mamoe.mirai.spi.AudioToSilkService)'
                                                at mirai-silk-converter-0.0.5-all.jar//net.mamoe.mirai.silkconverter.MiraiSilkConverterConsolePlugin.onLoad(ConsolePluginMode.kt:49)
                                                at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnLoad$mirai_console(JvmPluginInternal.kt:388)
                                                at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:371)
                                                at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:40)
                                                at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt)
                                                at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt:54)
                                                at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadPluginNoEnable(PluginManagerImpl.kt:100)
                                                at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAllPluginsUsingBuiltInLoaders$mirai_console(PluginManagerImpl.kt:164)
                                                at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:303)
                                                at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:512)
                                                at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:182)
                                                at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:181)
                                                at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:59)
                                                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
                                                at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                                                at org.itxtech.mcl.Utility.bootJars(Utility.java:86)
                                                at org.itxtech.mcl.Utility.bootJars(Utility.java:76)
                                                at org.itxtech.mcl.Utility.bootMirai(Utility.java:98)
                                                at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113)
                                                at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123)
                                                at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196)
                                                at org.itxtech.mcl.Loader.tryCatching(Loader.java:151)
                                                at org.itxtech.mcl.Loader.start(Loader.java:196)
                                                at org.itxtech.mcl.Loader.main(Loader.java:84)
                                        
                                        2024-08-11 13:21:57 E/Silk Converter: Configuration location: E:\A2\data\net.mamoe.mirai-silk-converter
                                        
                                        Travellerr 1 Reply Last reply Reply Quote 0
                                        • Travellerr
                                          Travellerr @fantasygyp last edited by

                                          @fantasygyp 关于ffmpeg的问题具体我不太清楚,这几天我会再调整一下,关于Silk Converter报错的问题可以看 https://github.com/project-mirai/mirai-silk-converter/issues/7

                                          cssxsh created this issue in project-mirai/mirai-silk-converter

                                          closed mirai 2.15 下 有 ABI 变动 #7

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            fantasygyp last edited by

                                            好的 感谢

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact