Liu-Bot24/liusheng-subtitles
About
流声字幕:基于 ASR 与 LLM 生成、翻译流媒体视频字幕的 Chrome 扩展。 / Chrome extension for ASR + LLM subtitles on streaming videos.
Design & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-en.md
OriginalLiusheng Subtitles - Streaming Video Subtitle Generation and Translation with ASR and LLM

Liusheng Subtitles is a Chrome extension for generating and translating subtitles for web videos. It is designed for streaming videos that have no subtitles, incomplete subtitles, or foreign-language subtitles that need to be translated into the selected target language.
After opening a video page, Liusheng Subtitles shows available media sources in the side panel. Configure an ASR provider and an LLM translation provider, then generate original subtitles, translated subtitles, or bilingual subtitles and display them on the page.
0.1.7 Updates
- Subtitle edits are more reliable: they survive closing and reopening the side panel, a failed transcript read is retried, and old edits no longer overwrite the result of a new translation or recognition run.
- When saving settings fails, the panel now says which settings were not saved.
- Stricter hallucination filtering: lines are filtered even when the ASR provider returns no quality data, and confidently repeated hallucinations are no longer let through.
- Clearer translation errors: account, key, and billing failures are no longer reported as content moderation.
- The media source list stays intact across background restarts and page reloads, and subtitles from a previous page are no longer loaded after you navigate away.
- Bilibili segments no longer inherit the whole page's duration.
- Less page reading: X and Bilibili APIs are queried only on the page where you opened the side panel, and every read of page data is size-capped.
- Faster playback and VTT/SRT export for long subtitles, especially with tens of thousands of cues.
- The privacy statement now matches what the extension does, and license and source notices for the bundled FFmpeg build are included.
Features
- Discover video sources on the current web page.
- Support local video files opened directly in the browser.
- Generate original subtitles and translate them into the selected target language.
- Switch between translated text, original text, and bilingual display.
- Show subtitles as a page overlay or in the side-panel subtitle list.
- Edit translated cues, adjust subtitle timing, and delete incorrect subtitle segments.
- Import SRT, VTT, ASS/SSA, and JSON files that contain source or translated subtitles.
- Export subtitles as SRT.
- Cache subtitles locally so the same page can load existing subtitles later.
- Support OpenAI Whisper, Groq Whisper, xAI Grok, Fun-ASR, and custom ASR endpoints.
- Support OpenAI-compatible, Anthropic-compatible, and custom LLM translation endpoints.
Demo Screenshots

Bilibili Video / Settings Interface

TED Video / Main Interface

X / Full Subtitles
![]()
NicoNico Video / Fullscreen Playback
Installation
Install From Chrome Web Store
The recommended installation method is the Chrome Web Store:
After installation, open a web video page and use Liusheng Subtitles from the browser side panel.
Load From Source
- Open
chrome://extensionsin Chrome. - Turn on Developer mode.
- Click Load unpacked.
- Select the
extension/directory in this repository.
Usage
- Open a web video page.
- Open the Liusheng Subtitles side panel.
- Configure speech recognition and translation providers in Settings.
- In Tasks & Subtitles, select a media source and the original audio language.
- Click Start Extraction and wait for subtitles to be generated.
- After generation, switch between translated, original, or bilingual display, or export the subtitle file.
If a task is interrupted, use Continue or Retry Failed. To translate again while keeping existing ASR results, use Retranslate Subtitles. Use Re-ASR only when the original transcription needs to be regenerated.
Privacy
API keys, model profiles, and subtitle caches are stored in the local browser. The extension does not send web videos, subtitle caches, or API keys to the Liusheng Subtitles developer's server. Audio and subtitle text are sent only to the ASR and translation services configured by the user (with Fun-ASR, audio is uploaded to the temporary storage address that service assigns); translation requests also include the page address, title, description, and similar page details as context. Subtitle caches record the original page and media addresses from when the task ran.
See Privacy Notice for details.
Notes
Liusheng Subtitles is intended for web video content that the user is allowed to access and process. Please follow copyright rules, website terms of service, and platform policies.
Some encrypted, cross-origin restricted, or platform-specific media sources may not be processable.
Open Source Credits
Thanks to cat-catch for browser media-sniffing practices. Browser-side audio processing uses ffmpeg.wasm. Subtitle timing and silence-handling ideas reference public approaches from faster-whisper, WhisperX, stable-ts, and Speaches.
License
This project is released under the MIT License. Third-party components shipped in the extension keep their own licenses: the FFmpeg WebAssembly build is licensed under GPL version 2 or later, and Mediabunny under MPL-2.0. License texts and source locations are in the third-party notices.
Explore related projects
Loading…