--- 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.