From b2ae9e9a53aeb53723787a58a2569f1171e21520 Mon Sep 17 00:00:00 2001
From: Majjcom <55314301+Majjcom@users.noreply.github.com>
Date: Sun, 18 Jan 2026 23:29:26 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E8=A7=86=E9=A2=91?=
=?UTF-8?q?=E6=B5=81AI=E5=8E=9F=E5=A3=B0=E7=BF=BB=E8=AF=91=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Added 'cur_language' and 'language' fields for AI voice translation support.
---
docs/video/videostream_url.md | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/docs/video/videostream_url.md b/docs/video/videostream_url.md
index 6ac54d4..a888125 100644
--- a/docs/video/videostream_url.md
+++ b/docs/video/videostream_url.md
@@ -124,6 +124,7 @@
| platform | str | | 非必要 | pc:web播放(默认值,视频流存在 referer鉴权)
html5:移动端 HTML5 播放(仅支持 MP4 格式,无 referer 鉴权可以直接使用`video`标签播放) |
| high_quality | num | 是否高画质 | 非必要 | platform=html5时,此值为1可使画质为1080p |
| try_look | num | 未登录高画质 | 非必要 | 为 `1` 时可以不登录拉到 `64` 和 `80` 清晰度 |
+| cur_language | str | 使用AI原声翻译 | 非必要 | 可以填写`en`、`ja`等参数。
不填写时,默认拉取原音频。填写后,音频链接替换为指定的AI语音 |
**json回复:**
@@ -159,6 +160,8 @@
| high_format | null | (?) | |
| last_play_time | num | 上次播放进度 | 毫秒值 |
| last_play_cid | num | 上次播放分P的 cid | |
+| cur_language | str | 当前的AI原声翻译语言 | `en`、`ja`等 |
+| language | obj | 视频的AI原声翻译信息 | 视频不支持时,不存在此字段 |
`data`中的`accept_description`数组:
@@ -203,6 +206,36 @@
| 1 | str | 例子:avc1.640034 | 使用AVC编码 |
| 2 | str | 例子:hev1.1.6.L153.90 | 使用HEVC编码 |
+`data`中的`language`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ------------- | ------- | -------------------------- | ---- |
+| support | boolean | 视频是否支持AI原声? | |
+| items | array | 支持的原声翻译列表 | |
+| open_toast | str | 启用AI原声翻译时的提示? | |
+| close_toast | str | 关闭AI原声翻译时的提示? | |
+| default_title | str | (?) | |
+| bubble | obj | (?) | |
+
+`language`中的`items`数组:
+
+| 项 | 类型 | 内容 | 备注 |
+| --- | ---- | ---------------- | ---- |
+| 0 | obj | AI原声信息1 | |
+| n | obj | AI原声信息(n+1) | |
+| ... | obj | ... | |
+
+`items`数组中的对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ------------------------ | ------- | ------------------- | ----------------------- |
+| lang | str | AI原声翻译的语言值 | 可用于cur_language参数 |
+| title | str | 语言显示文本 | 如:`English` |
+| subtitle_lang | str | (?) | |
+| video_detext | boolean | (?) | |
+| video_mouth_shape_change | boolean | (?) | |
+| production_type | num | 产品类型? | |
+
由于 MP4 / ~~FLV~~ 与 DASH 格式的返回结构不同,以下内容需要分类讨论`durl`与`dash`字段的内容