MiraiForum

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

    如何获取bot发送语音后语音的下载链接

    开发交流
    3
    8
    595
    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.
    • 4o4E
      4o4E last edited by

      如题,据我所知想要获得下载链接就必须要拿到OnlineAudio。而通过MessagePostSendEvent监听bot发送的语音,拿到的是OfflineAudio。所以想问一下有没有办法拿到bot发送语音的OnlineAudio。

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        为什么想要下载链接呢。既然是bot发送的那应该已经有了文件

        4o4E 1 Reply Last reply Reply Quote 0
        • 4o4E
          4o4E @RainChan last edited by

          @rainchan 可以理解为想白嫖tx的储存

          RainChan 1 Reply Last reply Reply Quote 0
          • RainChan
            RainChan 摸鱼 @4o4E last edited by

            @4o4e 没用的,可能和图片过期一个道理,建议群文件

            4o4E 1 Reply Last reply Reply Quote 0
            • 4o4E
              4o4E @RainChan last edited by

              @rainchan 好吧,感谢解答

              1 Reply Last reply Reply Quote 0
              • W
                wangzhengyr last edited by

                想问一下,,下载链接获取的文件好像有点问题呢,无法播放,下载的也没有后缀。。

                4o4E 1 Reply Last reply Reply Quote 0
                • 4o4E
                  4o4E @wangzhengyr last edited by

                  @wangzhengyr https://github.com/kn007/silk-v3-decoder
                  或者
                  https://github.com/mzdluo123/silk4j
                  语音需要自行解码

                  1 Reply Last reply Reply Quote 0
                  • W
                    wangzhengyr last edited by

                    好的 非常感谢

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