Skip to content
Top-DimensionPublic

About

TypeSub is a typing-style caption app for livestreams. It reveals captions one character at a time as you speak and can show pinyin above Chinese characters. TypeSub 是给直播用的打字字幕软件:说话时让字幕一个字一个字地出现,还能把拼音放在汉字上面

Resources

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

TypeSub

English | Chinese

TypeSub Logo

TypeSub is in early development. The downloads below are pre-release builds.

Download for Linux Download for Windows Version Windows: WinUI 3 Linux: Electron Engine Migration License: MIT

macOS: The macOS client has been optimized as a separate native SwiftUI frontend. We are not providing a macOS installer yet for project-side release and signing reasons. You can build it from source using the steps below. typesub_macos is the macOS frontend only; it is not the Windows or Linux application.

TypeSub recognizes speech from your microphone and displays live captions one character at a time in an OBS Browser Source.

The Windows desktop app has moved to WinUI 3. Linux continues to use Electron. The Windows installer bundles a Node.js service for live captions. Both platforms use the Rust engine for caption timing.

The interface is available in English and Chinese. Use the language selector in the top bar or on the first-run screen; TypeSub remembers your choice.

Features

  • Click "Try it" in the workspace to preview captions driven by the Rust engine. Punctuation adds a brief pause, the animation catches up when it falls behind, and text revisions preserve unchanged parts.
  • Choose horizontal or vertical layout with left, center, or right alignment. Adjust pinyin, tones, fonts, colors, outlines, backgrounds, and typing intervals.
  • Start with a gaming/entertainment, voice-room, or vertical teaching preset. Settings are saved automatically for the next launch.
  • On Windows, closing the window keeps captions running in the background. Reopen the window from the system tray. On Linux, minimize the window to keep live captions running.

Getting started

To run from source, install Node.js, npm, and Rust. Windows also requires the .NET 8 SDK and Visual Studio 2022 with Windows App SDK build tools. Windows builds use the Rust MSVC toolchain; Linux x64 builds use the native GNU toolchain and produce an AppImage.

npm install
npm start

npm start builds the Rust engine and the Windows WinUI interface when running on Windows. It then opens WinUI on Windows or Electron on Linux. Keep TypeSub running on the same PC as OBS. Copy the URL from the studio, add a Browser source in OBS, and paste the URL into the source properties. Set the source's Width and Height to the area you want to use. Captions reflow to the source dimensions and advance by complete lines or columns as they fill the available space.

If TypeSub cannot find a local model, click Download model (134 MB) under Input to download the Zipformer model for Mandarin and English. On Windows, the same button is available under Components. Choose a microphone under Input → Microphone and click Start recognition to transcribe offline. Pause recognition to switch devices, and click Refresh devices if your microphone is missing from the list. Click Try it to check the overlay with sample text.

Run npm run dist:linux on Linux x64 to build the AppImage and Debian package in release/. On Ubuntu or Debian, install typesub_<version>_amd64.deb with sudo apt install ./release/typesub_<version>_amd64.deb, substituting the release version. The package configures Electron's sandbox for systems that restrict unprivileged user namespaces.

To use the AppImage, make it executable with chmod +x and launch it as a regular user. If FUSE is unavailable, launch it with --appimage-extract-and-run. Installing the speech model requires tar with bzip2 support. Use the Debian package if Ubuntu reports a Chromium sandbox error when launching the AppImage.

On Windows x64, install Inno Setup 6 and run npm run dist:windows to build release/TypeSub-Setup-<version>-x64.exe. The WinUI 3 installer includes the WebView2 Runtime installer. Download the speech model from TypeSub after installation if needed.

macOS (build from source)

The macOS frontend is a native SwiftUI app in typesub_macos/. It uses the sherpa-onnx Swift package for local speech recognition and does not use Siri or Apple Speech. An installer is not currently provided; build and run it with Xcode:

  1. Install Xcode and open typesub_macos/typesub_macos.xcodeproj.

  2. In Xcode, choose File → Packages → Resolve Package Versions and wait for sherpa-onnx and onnxruntime-libs to finish resolving. The first resolution requires network access.

  3. Select the typesub_macos scheme and My Mac, then choose Product → Run. Alternatively, from the repository root:

    xcodebuild -resolvePackageDependencies -project typesub_macos/typesub_macos.xcodeproj -scheme typesub_macos
    xcodebuild -project typesub_macos/typesub_macos.xcodeproj -scheme typesub_macos -configuration Debug -sdk macosx build
    

When the app opens, it automatically starts its local OBS overlay output service inside the app and displays the generated URL in the interface. There is no separate backend process for users to launch. To begin transcription, open Input, download the approximately 134 MB speech model on first use, allow microphone access when macOS asks, then click Start recognition. The model runs locally after installation. Copy the OBS URL into an OBS Browser source.

If Xcode reports Missing package product 'sherpa-onnx', resolve package versions again and check that GitHub is reachable; then build again. If package resolution fails with a cache permission error, quit Xcode and run the xcodebuild -resolvePackageDependencies command from Terminal under the same macOS account, or fix write permissions for Xcode's DerivedData and SwiftPM cache. If recognition cannot start, allow microphone access in System Settings → Privacy & Security → Microphone, install the model from Input, and retry. If OBS shows a blank page, confirm TypeSub remains open and copy the current URL shown in the app. App data and the downloaded speech model are stored under ~/Library/Application Support/TypeSub/. If the issue persists, include the exact error and the relevant Xcode build output when reporting it.

Optional AI correction

Under AI correction, enter an API key and model name. Leave Base URL empty to use the default endpoint, or enter a service that supports Chat Completions. TypeSub displays the raw recognition result immediately and sends the final text of each utterance for correction. The raw subtitle stays visible if the API is unconfigured, fails, or takes longer than two seconds. Choose a fast model with little or no reasoning. TypeSub disables or reduces reasoning where it knows how to configure the provider.

After changing the main process in development, quit the old process from the tray before running npm run dev.

To run the application and Rust engine tests:

npm run test:engine
npm run test:app

License

MIT. See LICENSE.

If you encounter a problem, please open an issue or contact: contact@tpdsite.com

About

TypeSub is a typing-style caption app for livestreams. It reveals captions one character at a time as you speak and can show pinyin above Chinese characters. TypeSub 是给直播用的打字字幕软件:说话时让字幕一个字一个字地出现,还能把拼音放在汉字上面

Resources

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages