Shisu-ko 作者: multysquid
Live Japanese subtitles for YouTube, transcribed on your own computer by Whisper. The lines are real text that Yomitan can scan; hovering pauses the video, and a picture plus the sentence audio go into the Anki card you just made.
5 个用户5 个用户
扩展元数据
关于此扩展
Shisu-ko shows live Japanese subtitles on YouTube in Firefox. A small server on your own computer transcribes the video's audio with OpenAI's Whisper a little ahead of where you are watching, and the extension draws the result over the player as ordinary page text. Nothing about you is sent to anyone, except, if you allow it, your browser's YouTube cookies to YouTube (and its GitHub cookies to GitHub, with the server option --allow-remote-ejs): the server runs on your machine, and the only network traffic is the video's audio from YouTube (and, for a mined card's picture, a frame of its video stream), the one-time model download and a look at GitHub for a newer release, by the server once a day and by its launcher before each start (see Privacy below).
What you get
You need the companion server
The extension does nothing on its own. Download the server from the project page, start it, and the extension finds it at http://127.0.0.1:8790:
Requirements: Python 3.11 or newer, Deno 2.3+ or Node.js 22+ (yt-dlp needs a JavaScript runtime for YouTube), and a GPU for the large models: an NVIDIA card with about 4 GB of free VRAM, or any Apple Silicon Mac, where the server decodes on the Mac's own GPU with large-v3-turbo. On Windows and Linux the server can use a recent AMD graphics card instead, experimental and not yet tested on AMD hardware by the maintainer: Radeon RX 7000 and 9000, on Linux also RX 6800 and 6900, and the graphics of Ryzen AI 300 (Radeon 890M, 880M) and Ryzen AI Max; setup offers it when it finds one. Without any of them, pick the small model at setup and run on the CPU. Optional: Yomitan for lookups, Anki with the AnkiConnect add-on for mining and the word colours.
Shortcuts
Privacy
The extension talks to the server on your own computer and, once you allow it for the Start server button, to the launcher that the server's setup registers, and to nothing else there; mining and the word colours' deck are the server's, which talks to Anki itself. It makes no remote request at all: the server looks at GitHub for the newest release, anonymously, once a day, and the extension reads the answer from it (the server's start scripts, run.cmd and run.sh, also look before each start, and install a newer version unless started with --no-update). It has no account, no analytics and no remote code. The server sends YouTube the cookies of your YouTube sign-in with its downloads only if you allow it (setup asks, for when YouTube refuses downloads without one); started with --allow-remote-ejs as well, it also sends GitHub that browser's GitHub cookies when yt-dlp fetches its challenge-solver script there. The privacy policy on this page lists exactly what is exchanged with those programs.
Shisu-ko is free software under the Apache License 2.0. Source code, setup guide, server options and troubleshooting: https://github.com/Multysquid/shisu-ko
What you get
- Subtitles a few seconds after a video opens. The server keeps transcribing ahead of the playhead and caches every line, so seeking back or rewatching is instant. Live streams work too.
- Text a dictionary can read. Subtitles are real page text, so Yomitan or any popup dictionary scans them. Hovering a line pauses the video, the dictionary popup keeps it paused, and moving back over the video resumes it.
- A transcript panel with every line so far. A timestamp jumps there, a pickaxe mines it.
- Sentence mining without pressing anything. Seconds after Yomitan adds a card, the Shisu-ko server puts an MP3 clip of the line you were reading and a picture of the video at that line into it, through AnkiConnect, in the fields the card left empty. The pickaxe on a line, or Alt+Shift+M, does the same on demand, into the newest card. Mining needs Anki with AnkiConnect.
- Word colours, if you want them. With Anki running, every word of a line that has a card in your deck is coloured by the card's state (green learned, yellow learning, orange suspended, red new), and can carry an overbar in the colour of its pitch accent, read from the card's pitch accent field. Switches in the popup, off by default, colour particles and katakana words green and names and Latin text blue, and a list of your own known words shows green (Alt+Shift+K adds the word under the pointer). The server reads the deck, which follows your mining, a verb is found in its conjugations, and the text stays scannable. Both colourings are off by default.
- Your hardware, your model. Whisper large-v3 or small, chosen and downloaded at setup, on an NVIDIA GPU, a recent AMD one (experimental), an Apple Silicon GPU through MLX, or the CPU; a Mac is offered large-v3-turbo instead of large-v3, which does not fit in the GPU memory beside the browser. The popup switches to the Japanese-specialised kotoba-whisper (about 6x faster) or to any other faster-whisper model, without restarting the server (with the AMD engine on Windows, a switch restarts it).
- Your fonts. The subtitle font is a preset (gothic, rounded, mincho) or any font installed on your computer, with position, colour, box and outline adjustable.
- A Start button for the server. When the server is not running, the popup starts it for you; Firefox asks once for permission to talk to the small launcher that the server's setup registers.
- Updates without leaving the browser. The popup tells you when a newer release is out, and one click makes the server update itself and restart; the extension itself is updated by Firefox from this listing.
You need the companion server
The extension does nothing on its own. Download the server from the project page, start it, and the extension finds it at http://127.0.0.1:8790:
- Windows: run
server\setup.cmdonce, thenserver\run.cmd. - Linux and macOS:
bash server/setup.shonce, thenserver/run.sh. - Also available as a Nix flake and as a Docker image with GPU support.
Requirements: Python 3.11 or newer, Deno 2.3+ or Node.js 22+ (yt-dlp needs a JavaScript runtime for YouTube), and a GPU for the large models: an NVIDIA card with about 4 GB of free VRAM, or any Apple Silicon Mac, where the server decodes on the Mac's own GPU with large-v3-turbo. On Windows and Linux the server can use a recent AMD graphics card instead, experimental and not yet tested on AMD hardware by the maintainer: Radeon RX 7000 and 9000, on Linux also RX 6800 and 6900, and the graphics of Ryzen AI 300 (Radeon 890M, 880M) and Ryzen AI Max; setup offers it when it finds one. Without any of them, pick the small model at setup and run on the CPU. Optional: Yomitan for lookups, Anki with the AnkiConnect add-on for mining and the word colours.
Shortcuts
- Alt+Shift+S turns Shisu-ko on or off (the switch in the popup header).
- Alt+Shift+L toggles the transcript panel.
- Alt+Shift+M mines the current sentence.
- Alt+Shift+K marks the word under the pointer as known, or takes it off your known words again.
- Alt+Shift+H hides the status badge on the video, or shows it again.
- Left and Right jump to the previous or next subtitle (can be turned off).
Privacy
The extension talks to the server on your own computer and, once you allow it for the Start server button, to the launcher that the server's setup registers, and to nothing else there; mining and the word colours' deck are the server's, which talks to Anki itself. It makes no remote request at all: the server looks at GitHub for the newest release, anonymously, once a day, and the extension reads the answer from it (the server's start scripts, run.cmd and run.sh, also look before each start, and install a newer version unless started with --no-update). It has no account, no analytics and no remote code. The server sends YouTube the cookies of your YouTube sign-in with its downloads only if you allow it (setup asks, for when YouTube refuses downloads without one); started with --allow-remote-ejs as well, it also sends GitHub that browser's GitHub cookies when yt-dlp fetches its challenge-solver script there. The privacy policy on this page lists exactly what is exchanged with those programs.
Shisu-ko is free software under the Apache License 2.0. Source code, setup guide, server options and troubleshooting: https://github.com/Multysquid/shisu-ko
评分 0(1 位用户)
权限与数据
必要权限:
- 下载文件和读取与修改浏览器的下载历史
- 向您显示通知
- 获取浏览器标签页
- 访问您在 www.youtube.com 的数据
- 访问您在 m.youtube.com 的数据
- 访问您在 youtube.com 的数据
可选权限:
- 与 Firefox 之外的其他程序交换信息
- 访问您在 www.youtube.com 的数据
- 访问您在 m.youtube.com 的数据
- 访问您在 youtube.com 的数据
- 访问您在 127.0.0.1 的数据
- 访问您在 localhost 的数据
收集的数据:
- 开发者称此扩展无需收集数据。
更多信息