Metabox-Nexus-WesingCap
    • SSE
      • lyric_update-SSE
        GET
      • song_info-SSE
        GET
    • ws
    • health-check
      GET
    • service-status
      GET
    • all_lyrics
      GET
    • lyric_update
      GET
    • status_update
      GET
    • song_info
      GET

      lyric_update

      开发中
      正式环境
      localhost:8765
      正式环境
      localhost:8765
      GET
      /lyric_update

      4. /lyric_update - 当前歌词(最新一条)#

      正常响应(播放中):
      {
        "code": 0,
        "msg": "success",
        "data": {
          "line_index": 5,
          "text": "君に嘘をついていた",
          "timestamp": 9.0,
          "play_time": 9.15,
          "progress": 0.4167
        }
      }
      说明:
      line_index - 歌词行号
      timestamp - 歌词时间戳(秒)
      play_time - 实际播放时间(秒);根据偏移量调整后的时间
      progress - 播放进度(0-1)
      无歌词时(歌曲未开始播放 / K歌窗口已关闭):
      {
        "code": 0,
        "msg": "success",
        "data": {}
      }

      请求参数

      无

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'localhost:8765/lyric_update'

      返回响应

      🟢200成功
      application/json
      Body

      示例
      {
          "code": 0,
          "msg": "success",
          "data": {
              "line_index": 5,
              "text": "君に嘘をついていた",
              "timestamp": 9.0,
              "play_time": 9.15,
              "progress": 0.4167
          }
      }
      修改于 2026-03-19 17:04:58
      上一页
      all_lyrics
      下一页
      status_update
      Built with