Getting Started
Subtitle Insights relies on experimental Chrome built-in AI APIs. Follow these steps to set up your environment and install the extension.
Prerequisites
- Chrome Version: You must use Chrome 138 or higher.
- Hardware: For specific hardware requirements and supported devices, please refer to the official Chrome Prompt API documentation.
1. Enable Chrome Flags
You must enable several experimental flags to allow local AI processing:
- Open
chrome://flagsin your browser. - Search for and Enable the following flags:
#optimization-guide-on-device-model(Set toEnabled BypassPrefocals)#prompt-api-for-gemini-nano(Set toEnabled)#translation-api(Set toEnabled)
- Relaunch Chrome.
2. Install the Extension
Since Subtitle Insights is in active development, you must install it in developer mode:
- Download or clone the repository from GitHub.
- Build the extension:bash
npm install npm run build - Open
chrome://extensions. - Enable Developer mode (top right toggle).
- Click Load unpacked and select the
dist/directory from the project folder.
3. Configuration & Verification
- Configure your Profile: Navigate to any YouTube video and click the Subtitle Insights icon in the video control bar. Open Detailed Settings to configure your profile. By default, a Japanese-to-English prompt is provided. Refresh the YouTube page after creating or selecting a profile to apply the changes.
- AI Ready: Check the extension menu to confirm the AI status. "AI Ready" indicates the models are loaded and functional.
- Downloading Models: If you see "Downloading Models," Chrome is currently fetching the necessary AI components. This may take several minutes.
- Enable Captions: Make sure Closed Captions (CC) are enabled in the video player. Subtitle Insights scans these captions to provide the overlay, translations, and insights.