mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
docs: add video transcription guide and consolidate changelog (#565)
This commit is contained in:
+5
-8
@@ -10,16 +10,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
|
|
||||||
- **sessions**: See total tokens and estimated cost in the session logs footer, with a breakdown of input, output, and cached tokens.
|
- **sessions**: See total tokens and estimated cost in the session logs footer, with a breakdown of input, output, and cached tokens.
|
||||||
- **projects**: Middle-click or Command/Ctrl-click a project to open it in a new tab. Use **Open in new tab** in a file or folder's context menu to keep your current view open.
|
- **projects**: Middle-click or Command/Ctrl-click a project to open it in a new tab. Use **Open in new tab** in a file or folder's context menu to keep your current view open.
|
||||||
- **video**: Update your local embedding server to v0.1.3 to generate video transcripts. Choose a language or detect it automatically, then open the transcript in the video player to switch languages, follow playback, search the text, jump to a segment, or edit its text.
|
- **video**: Introduce video transcription to generate timestamped transcripts directly in Shumai. Start transcription from a video's menu or the video player with automatic language detection or a searchable language picker, then follow playback, jump to any segment, search transcript text, or edit segments inline.
|
||||||
- **video**: Search for languages when generating video transcripts. You can save and edit Simplified and Traditional Chinese versions on the same video.
|
|
||||||
- **video**: Open the transcript panel directly from the video player even when a video does not have a transcript yet (when transcription is enabled and you have edit permission), start transcript generation from the panel, and see live generating status until the transcript appears.
|
|
||||||
- **integrations**: Set and test an embedding server URL under **Team Settings → Integrations**. A URL set through environment variables appears read-only. Once the server is configured, enable the Transcript Agent to generate video transcripts and receive an internal comment if a job fails. The updated embedding and full Docker Compose files create and enable the agent automatically with a distinct avatar.
|
|
||||||
|
|
||||||
For an existing deployment, create and enable the Transcript Agent under **Team Settings → Agents**, or add this line to the Shumai service’s `environment` block in your Compose file.
|
Video transcription runs locally on the same Embedding Server used for semantic search (which can also be configured and tested under **Team Settings → Integrations**):
|
||||||
|
- **New deployments**: Already enabled out of the box when using the Embedding (`docker-compose.embedding.yaml`) or Full (`docker-compose.full.yaml`) Docker Compose templates.
|
||||||
|
- **Existing deployments**: Update to the latest `shumaione/embedding-server` image (`v0.1.3` or newer) and enable the Transcript Agent by adding `ENABLE_TRANSCRIPTION_AGENT: 'true'` to your Shumai environment configuration (or by creating and enabling the Transcript Agent under **Team Settings → Agents**).
|
||||||
|
|
||||||
```yaml
|
See the [Video Transcription guide](https://docs.shumai.one/using-shumai/transcription) for setup and usage details.
|
||||||
ENABLE_TRANSCRIPTION_AGENT: 'true'
|
|
||||||
```
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
"using-shumai/version-stack",
|
"using-shumai/version-stack",
|
||||||
"using-shumai/sort-and-search",
|
"using-shumai/sort-and-search",
|
||||||
"using-shumai/semantic-search",
|
"using-shumai/semantic-search",
|
||||||
|
"using-shumai/transcription",
|
||||||
"using-shumai/team-project-management",
|
"using-shumai/team-project-management",
|
||||||
"using-shumai/notifications",
|
"using-shumai/notifications",
|
||||||
"using-shumai/metadata",
|
"using-shumai/metadata",
|
||||||
@@ -144,6 +145,7 @@
|
|||||||
"zh/using-shumai/version-stack",
|
"zh/using-shumai/version-stack",
|
||||||
"zh/using-shumai/sort-and-search",
|
"zh/using-shumai/sort-and-search",
|
||||||
"zh/using-shumai/semantic-search",
|
"zh/using-shumai/semantic-search",
|
||||||
|
"zh/using-shumai/transcription",
|
||||||
"zh/using-shumai/team-project-management",
|
"zh/using-shumai/team-project-management",
|
||||||
"zh/using-shumai/notifications",
|
"zh/using-shumai/notifications",
|
||||||
"zh/using-shumai/metadata",
|
"zh/using-shumai/metadata",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Docker Compose is the fastest way to get Shumai running. You do not need to clon
|
|||||||
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
|
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
- **With Embedding Server (Suggested RAM: 4 GB+)**: Adds local multimodal semantic search powered by `shumaiOne/embedding-server` (`EmbeddingGemma 2 740M`).
|
- **With Embedding Server (Suggested RAM: 4 GB+)**: Adds local multimodal semantic search and [video transcription](/using-shumai/transcription) powered by `shumaiOne/embedding-server` (`EmbeddingGemma 2 740M`).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.embedding.yaml
|
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.embedding.yaml
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: Embedding Server Setup (EmbeddingGemma 2)
|
title: Embedding Server Setup (EmbeddingGemma 2)
|
||||||
description: Run local, offline multimodal vector embeddings for semantic search using shumaiOne/embedding-server.
|
description: Run local, offline multimodal vector embeddings for semantic search and video transcription using shumaiOne/embedding-server.
|
||||||
---
|
---
|
||||||
|
|
||||||
Shumai supports local, self-hosted multimodal vector embeddings for semantic search through [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) — a standalone Docker service powered by Google AI Edge's **LiteRT-LM** and **EmbeddingGemma 2 740M**.
|
Shumai supports local, self-hosted multimodal vector embeddings for semantic search and local [Video Transcription](/using-shumai/transcription) (`v0.1.3+`) through [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) — a standalone Docker service powered by Google AI Edge's **LiteRT-LM** and **EmbeddingGemma 2 740M**.
|
||||||
|
|
||||||
The embedding server provides a unified 768-dimensional vector space across text, images, and video frames with an OpenAI-compatible HTTP API (`/v1/embeddings`). Because the model weights are pre-baked directly into the Docker image, the server operates completely offline and air-gapped without requiring external network access or third-party cloud API keys.
|
The embedding server provides a unified 768-dimensional vector space across text, images, and video frames with an OpenAI-compatible HTTP API (`/v1/embeddings`). Because the model weights are pre-baked directly into the Docker image, the server operates completely offline and air-gapped without requiring external network access or third-party cloud API keys.
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ Open **Team Settings → Integrations → Embedding Server**. Enter the URL as r
|
|||||||
|
|
||||||
`EMBEDDING_PROVIDER` takes precedence over automatic provider selection. When `GEMMA_EMBEDDING_OPENAI_BASE_URL` is set, that URL takes precedence and the field is read-only. The embedding server accepts unauthenticated requests. [Embedding server source](https://github.com/shumaiOne/embedding-server/blob/main/serve.py)
|
`EMBEDDING_PROVIDER` takes precedence over automatic provider selection. When `GEMMA_EMBEDDING_OPENAI_BASE_URL` is set, that URL takes precedence and the field is read-only. The embedding server accepts unauthenticated requests. [Embedding server source](https://github.com/shumaiOne/embedding-server/blob/main/serve.py)
|
||||||
|
|
||||||
Enable the **Embedding Agent** for semantic search. Enable the **Transcript Agent** for video transcription and internal comments on failed jobs. Both agents are available in **Team Settings → Agents**.
|
Enable the **Embedding Agent** for semantic search. Enable the **Transcript Agent** for [video transcription](/using-shumai/transcription) and internal comments on failed jobs. Both agents are available in **Team Settings → Agents**.
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,111 @@
|
|||||||
|
---
|
||||||
|
title: Video Transcription
|
||||||
|
description: Generate, search, follow, and edit timestamped video transcripts locally using Shumai's embedding server.
|
||||||
|
---
|
||||||
|
|
||||||
|
Shumai supports local, offline **Video Transcription** so your team can read, search, jump through, and refine spoken dialogue directly inside the video player.
|
||||||
|
|
||||||
|
Transcription runs on [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) — the same self-hosted Docker service used for [Semantic Search](/using-shumai/semantic-search). All processing stays on your own infrastructure with no external cloud API keys required.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Setup & Enabling Transcription
|
||||||
|
|
||||||
|
### New Deployments (Docker Compose)
|
||||||
|
|
||||||
|
If you deploy Shumai with either the **Embedding** (`docker-compose.embedding.yaml`) or **Full** (`docker-compose.full.yaml`) Docker Compose template (including the Aliyun variants), video transcription is **already enabled out of the box**:
|
||||||
|
|
||||||
|
- `shumaione/embedding-server:latest` is included in the stack.
|
||||||
|
- `EMBEDDING_PROVIDER` and `GEMMA_EMBEDDING_OPENAI_BASE_URL` are pre-configured.
|
||||||
|
- `ENABLE_TRANSCRIPTION_AGENT: 'true'` automatically creates and enables the **Transcript Agent** on startup.
|
||||||
|
|
||||||
|
### Existing Deployments
|
||||||
|
|
||||||
|
To enable video transcription on an existing Shumai deployment:
|
||||||
|
|
||||||
|
1. **Update the Embedding Server image**: Pull and recreate your `embedding-server` container using `shumaione/embedding-server:latest` (**v0.1.3 or newer** is required for transcription).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose pull embedding-server
|
||||||
|
docker compose up -d embedding-server
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Verify your Embedding Server connection**:
|
||||||
|
- **Environment variables**: Make sure `EMBEDDING_PROVIDER: gemma-embedding-2-openai` and `GEMMA_EMBEDDING_OPENAI_BASE_URL` (for example, `http://embedding-server:9379/v1`) are set on the Shumai service, **or**
|
||||||
|
- **Web UI**: Open **Team Settings → Integrations → Embedding Server**, enter the server URL reachable from Shumai, click **Test Connection**, and save.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When `GEMMA_EMBEDDING_OPENAI_BASE_URL` is configured through environment variables, it takes precedence and appears read-only in **Team Settings → Integrations**.
|
||||||
|
|
||||||
|
3. **Enable the Transcript Agent** using one of the following methods:
|
||||||
|
- **Via environment variable**: Add the following line to the Shumai service's `environment` block in your Docker Compose file and restart Shumai:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
ENABLE_TRANSCRIPTION_AGENT: 'true'
|
||||||
|
```
|
||||||
|
|
||||||
|
Setting `ENABLE_TRANSCRIPTION_AGENT` (`true` or `false`) manages the agent automatically and makes its toggle read-only in team settings.
|
||||||
|
|
||||||
|
- **Via Team Settings**: As a **Team Owner**, open **Team Settings → Agents**, then create and enable the **Transcript Agent**.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> For standalone Docker commands, memory sizing (4 GB+ RAM recommended), and concurrency settings (`CONCURRENCY_AGENT=1`), see the [Embedding Server Setup Guide](/using-shumai/embedding-server).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Generating Transcripts
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
- You must have **Edit** permission on the project or asset.
|
||||||
|
- The video must have completed transcoding with a full video proxy and contain an audio track.
|
||||||
|
- **Archived videos** can still be transcribed as long as their full video proxy is available.
|
||||||
|
- For **version stacks**, transcription runs on the currently active version.
|
||||||
|
|
||||||
|
### How to Start Transcription
|
||||||
|
|
||||||
|
You can generate a transcript in two ways:
|
||||||
|
|
||||||
|
1. **From the File Browser**: Right-click a video and select **Generate Transcripts**.
|
||||||
|
2. **From the Video Player**: Open the video and click the **Show transcript** (captions) button in the player control bar. Even if the video does not have a transcript yet, the panel opens with a **Generate Transcripts** button whenever transcription is enabled and you have edit permission.
|
||||||
|
|
||||||
|
### Choosing a Language
|
||||||
|
|
||||||
|
In the **Generate Transcripts** dialog:
|
||||||
|
|
||||||
|
- Leave the language on **Auto** to detect the spoken language automatically, or open the language picker and **search for a specific language**.
|
||||||
|
- **Chinese script support**: Choose **Chinese (Simplified)** or **Chinese (Traditional)** explicitly, or use **Auto** to detect the script automatically. You can generate, save, and edit both Simplified and Traditional Chinese transcripts on the same video.
|
||||||
|
- **Multiple languages**: You can generate and keep transcripts in multiple languages for the same video.
|
||||||
|
|
||||||
|
### Progress & Failure Notifications
|
||||||
|
|
||||||
|
- While a job is queued or running, Shumai displays a live transcribing indicator in both the file browser and the transcript panel, and loads the transcript automatically as soon as it finishes.
|
||||||
|
- If no speech is detected in the audio track, Shumai notifies you without saving an empty transcript.
|
||||||
|
- If a transcription job fails (for example, the video has no audio track, does not have a completed full video proxy, or the audio exceeds the embedding server's upload limit), the **Transcript Agent** posts an **internal comment** on the video explaining why it failed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Viewing, Searching, and Editing Transcripts
|
||||||
|
|
||||||
|
Click the **Show transcript** (captions) button in the video player controls to open or close the transcript panel. On desktop, drag the panel border to resize it; on mobile, open it from the video detail view.
|
||||||
|
|
||||||
|
- **Switch Languages**: When a video has transcripts in more than one language, use the language dropdown at the top of the panel to switch between them.
|
||||||
|
- **Follow Playback & Seek**:
|
||||||
|
- As the video plays, Shumai highlights the active segment and scrolls smoothly to keep it in view.
|
||||||
|
- Click any segment to jump directly to its timestamp. Selecting text to copy it will not trigger a seek.
|
||||||
|
- If you scroll away manually, auto-follow pauses and a **Sync to playback** button appears at the bottom of the panel so you can jump back at any time.
|
||||||
|
- **Search Within a Transcript**: Click the search icon in the panel header to find text across segments. Matching terms are highlighted with a match counter (`current / total`). Use the previous/next arrows or press `Enter` / `Shift+Enter` to step through matches, and press `Esc` to close search.
|
||||||
|
- **Edit Segments Inline**: Users with **Edit** permission can click the edit (pencil) icon on any segment to pause playback and correct the text inline. Click **Save** to apply your changes or **Cancel** (`Esc`) to discard them.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Permissions & Availability
|
||||||
|
|
||||||
|
| Action | Required Permission |
|
||||||
|
| :---------------------------------------- | :------------------ |
|
||||||
|
| View, follow, and search transcripts | **Read** |
|
||||||
|
| Generate transcripts & edit segment text | **Edit** |
|
||||||
|
| Configure Embedding Server & manage Agent | **Team Owner** |
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Video transcripts are available inside project views and are not shown on public share links.
|
||||||
@@ -27,7 +27,7 @@ Shumai 提供三种安装方式。对于大多数管理员,推荐使用 **Dock
|
|||||||
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
|
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
- **含向量模型服务版(建议内存 4 GB+)**:引入基于 `shumaiOne/embedding-server`(`EmbeddingGemma 2 740M`)的本地多模态语义搜索能力。
|
- **含向量模型服务版(建议内存 4 GB+)**:引入基于 `shumaiOne/embedding-server`(`EmbeddingGemma 2 740M`)的本地多模态语义搜索与[视频转录](/zh/using-shumai/transcription)能力。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.embedding.yaml
|
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.embedding.yaml
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
title: 向量模型服务部署 (EmbeddingGemma 2)
|
title: 向量模型服务部署 (EmbeddingGemma 2)
|
||||||
description: 使用 shumaiOne/embedding-server 本地离线运行多模态向量嵌入,赋能语义搜索。
|
description: 使用 shumaiOne/embedding-server 本地离线运行多模态向量嵌入与视频转录。
|
||||||
---
|
---
|
||||||
|
|
||||||
Shumai 支持通过 [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) 在本地私有化部署多模态向量模型服务以赋能语义搜索。该独立 Docker 服务由 Google AI Edge 的 **LiteRT-LM** 与 **EmbeddingGemma 2 740M** 强力驱动。
|
Shumai 支持通过 [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) 在本地私有化部署多模态向量模型服务以赋能语义搜索,同时支持本地离线[视频转录](/zh/using-shumai/transcription)(需 `v0.1.3` 及以上版本)。该独立 Docker 服务由 Google AI Edge 的 **LiteRT-LM** 与 **EmbeddingGemma 2 740M** 强力驱动。
|
||||||
|
|
||||||
该向量模型服务为文本、图片与视频关键帧提供了统一的 768 维向量空间,并对外暴露兼容 OpenAI 标准的 HTTP API 接口(`/v1/embeddings`)。由于模型权重已预先打包至 Docker 镜像内,该服务完全支持离线和物理隔离(Air-gapped)环境运行,无需访问外网或依赖第三方云厂商 API 密钥。
|
该向量模型服务为文本、图片与视频关键帧提供了统一的 768 维向量空间,并对外暴露兼容 OpenAI 标准的 HTTP API 接口(`/v1/embeddings`)。由于模型权重已预先打包至 Docker 镜像内,该服务完全支持离线和物理隔离(Air-gapped)环境运行,无需访问外网或依赖第三方云厂商 API 密钥。
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ services:
|
|||||||
|
|
||||||
已设置的 `EMBEDDING_PROVIDER` 优先于自动选择。设置 `GEMMA_EMBEDDING_OPENAI_BASE_URL` 后,环境变量中的地址优先生效,集成页面的地址字段为只读。向量模型服务接受未经身份验证的请求。[向量模型服务源码](https://github.com/shumaiOne/embedding-server/blob/main/serve.py)
|
已设置的 `EMBEDDING_PROVIDER` 优先于自动选择。设置 `GEMMA_EMBEDDING_OPENAI_BASE_URL` 后,环境变量中的地址优先生效,集成页面的地址字段为只读。向量模型服务接受未经身份验证的请求。[向量模型服务源码](https://github.com/shumaiOne/embedding-server/blob/main/serve.py)
|
||||||
|
|
||||||
在 **团队设置 → 智能体** 中启用 **嵌入智能体** 后可使用语义搜索。启用 **转录智能体** 后可生成视频转录,转录失败时会在视频中发布内部评论。
|
在 **团队设置 → 智能体** 中启用 **嵌入智能体** 后可使用语义搜索。启用 **转录智能体** 后可生成[视频转录](/zh/using-shumai/transcription),转录失败时会在视频中发布内部评论。
|
||||||
|
|
||||||
### 环境变量
|
### 环境变量
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,109 @@
|
|||||||
|
---
|
||||||
|
title: 视频转录
|
||||||
|
description: 使用 Shumai 向量模型服务在本地离线生成、搜索、跟随播放并编辑带时间戳的视频转录。
|
||||||
|
---
|
||||||
|
|
||||||
|
Shumai 支持本地离线 **视频转录(Video Transcription)**,团队成员可直接在视频播放器中阅读字幕文本、搜索关键词、点击跳转时间点并在线校对修改。
|
||||||
|
|
||||||
|
视频转录运行在 [shumaiOne/embedding-server](https://github.com/shumaiOne/embedding-server) 上——与 [语义搜索](/zh/using-shumai/semantic-search) 共用同一个私有化 Docker 服务。全部语音识别过程均在本地基础设施内完成,无需外网或第三方云端 API 密钥。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 部署与启用转录
|
||||||
|
|
||||||
|
### 新部署用户(Docker Compose)
|
||||||
|
|
||||||
|
如果你使用 **含向量模型服务版**(`docker-compose.embedding.yaml`)或 **完整版**(`docker-compose.full.yaml`)Docker Compose 模板(含阿里云镜像版本),视频转录功能已**默认开箱即用**:
|
||||||
|
|
||||||
|
- 模板已内置 `shumaione/embedding-server:latest` 服务。
|
||||||
|
- 已预配置 `EMBEDDING_PROVIDER` 与 `GEMMA_EMBEDDING_OPENAI_BASE_URL`。
|
||||||
|
- 已配置 `ENABLE_TRANSCRIPTION_AGENT: 'true'`,启动时会自动创建并启用 **转录智能体(Transcript Agent)**。
|
||||||
|
|
||||||
|
### 已有部署用户升级启用
|
||||||
|
|
||||||
|
如果你已有运行中的 Shumai 部署,按以下步骤启用视频转录:
|
||||||
|
|
||||||
|
1. **升级向量模型服务镜像**:拉取并更新 `embedding-server` 容器至 `shumaione/embedding-server:latest`(需要 **v0.1.3 及以上版本** 才支持转录接口)。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose pull embedding-server
|
||||||
|
docker compose up -d embedding-server
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **确认向量模型服务已连接**:
|
||||||
|
- **环境变量方式**:确认 Shumai 服务已设置 `EMBEDDING_PROVIDER: gemma-embedding-2-openai` 与 `GEMMA_EMBEDDING_OPENAI_BASE_URL`(例如 `http://embedding-server:9379/v1`);**或**
|
||||||
|
- **Web 界面方式**:进入 **团队设置 → 集成 → 向量模型服务**,填写 Shumai 可访问的服务地址,点击 **测试连接** 并保存。
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> 当通过环境变量设置了 `GEMMA_EMBEDDING_OPENAI_BASE_URL` 时,环境变量优先生效,且 **团队设置 → 集成** 中的地址字段会显示为只读。
|
||||||
|
|
||||||
|
3. **启用转录智能体(Transcript Agent)**(任选其一):
|
||||||
|
- **环境变量方式**:在 Docker Compose 文件中 Shumai 服务的 `environment` 下添加以下配置并重启 Shumai:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
ENABLE_TRANSCRIPTION_AGENT: 'true'
|
||||||
|
```
|
||||||
|
|
||||||
|
设置 `ENABLE_TRANSCRIPTION_AGENT`(`true` 或 `false`)会自动管理转录智能体状态,并使团队设置页面中的开关呈只读状态。
|
||||||
|
|
||||||
|
- **团队设置方式**:以 **团队所有者(Team Owner)** 身份进入 **团队设置 → 智能体**,创建并启用 **转录智能体**。
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> 如需独立 Docker 启动命令、内存建议(推荐 4 GB+ RAM)及并发设置(`CONCURRENCY_AGENT=1`),请参阅 [向量模型服务部署指南](/zh/using-shumai/embedding-server)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 生成视频转录
|
||||||
|
|
||||||
|
### 前置条件
|
||||||
|
|
||||||
|
- 你需要拥有该项目或资产的 **编辑(Edit)** 权限。
|
||||||
|
- 视频已完成转码并具备完整视频代理文件,且包含音轨。
|
||||||
|
- **已归档的视频**只要仍保留完整视频代理文件,同样支持生成转录。
|
||||||
|
- 针对 **版本堆叠(Version Stack)**,转录会作用于当前激活的版本。
|
||||||
|
|
||||||
|
### 发起转录的两种方式
|
||||||
|
|
||||||
|
1. **从文件浏览器发起**:右键点击视频文件,选择 **生成转录**。
|
||||||
|
2. **从视频播放器发起**:打开视频并点击播放控制栏中的 **显示转录**(字幕图标)按钮。即使当前视频尚未生成转录,只要系统已启用转录且你具备编辑权限,也可直接在空面板中点击 **生成转录**。
|
||||||
|
|
||||||
|
### 选择语言
|
||||||
|
|
||||||
|
在 **生成转录** 弹窗中:
|
||||||
|
|
||||||
|
- 保持默认 **自动检测** 以自动识别说话语言,或打开语言选择器**搜索并指定目标语言**。
|
||||||
|
- **中文简繁支持**:可直接选择 **中文(简体)** 或 **中文(繁体)**,也可以在 **自动检测** 模式下自动识别简繁体。同一个视频可同时保存并分别编辑简体与繁体中文转录。
|
||||||
|
- **多语言并存**:同一个视频可生成并保存多种语言的转录版本。
|
||||||
|
|
||||||
|
### 进度展示与失败通知
|
||||||
|
|
||||||
|
- 转录任务排队或处理期间,文件浏览器与转录面板会实时展示正在转录状态,完成后自动加载转录内容。
|
||||||
|
- 如果音频中未检测到语音,Shumai 会给出提示,不会保存空白转录。
|
||||||
|
- 若转录任务失败(例如视频无音轨、缺少完整视频代理、音频超过向量模型服务上传大小限制等),**转录智能体**会自动在该视频下发布一条**内部评论**说明失败原因。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 查看、搜索与编辑转录
|
||||||
|
|
||||||
|
点击视频播放控制栏中的 **显示转录**(字幕图标)即可打开或关闭转录面板。在桌面端可拖动面板边缘自由调整宽度;在移动端可在视频详情页中切换查看。
|
||||||
|
|
||||||
|
- **切换语言**:当视频拥有多份不同语言的转录时,可通过面板顶部的语言下拉框快速切换。
|
||||||
|
- **跟随播放与点击跳转**:
|
||||||
|
- 视频播放时,Shumai 会高亮当前正在播放的片段并平滑滚动跟随。
|
||||||
|
- 点击任意片段即可精准跳转到对应时间戳;划选复制文本不会误触发跳转。
|
||||||
|
- 手动滚动面板会暂停自动跟随,底部会出现 **同步到播放位置** 按钮,随时一键恢复同步。
|
||||||
|
- **转录内搜索**:点击面板顶部的搜索图标输入关键词,系统会高亮匹配文本并显示命中计数(`当前 / 总计`)。可通过上下箭头或 `Enter` / `Shift+Enter` 切换结果,按 `Esc` 退出搜索。
|
||||||
|
- **在线编辑校对**:拥有 **编辑** 权限的用户可点击任意片段上的编辑(铅笔)图标,播放将自动暂停,可直接修改片段文本并点击 **保存** 或 **取消**(`Esc`)。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 权限与可见范围
|
||||||
|
|
||||||
|
| 操作 | 所需权限 |
|
||||||
|
| :--------------------------- | :--------------- |
|
||||||
|
| 查看、跟随播放与搜索已有转录 | **读取(Read)** |
|
||||||
|
| 生成转录与编辑片段文本 | **编辑(Edit)** |
|
||||||
|
| 配置向量模型服务与管理智能体 | **团队所有者** |
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> 视频转录仅在项目视图内可见,不会在公开分享链接中显示。
|
||||||
Reference in New Issue
Block a user