Speech Translate Rev is a modern WebView-based speech transcription and translation desktop app.
CI Release License Python Platform Downloads
Speech Translate Rev product overview
Speech Translate Rev is a heavily modified desktop speech tool built around Whisper, faster-whisper, stable-ts, translation backends, and a WebView UI. It supports realtime microphone or speaker transcription, live translation, detached subtitle windows, and file transcription workflows.
This repository keeps the original speech_translate Python package name for compatibility, while presenting the application and distribution metadata as Speech Translate Rev.
- Realtime speech transcription from microphone or speaker input.
- Realtime translation with selectable source and target languages.
- Modern WebView frontend with a compact production-tool shell.
- File transcription workbench for audio and video batch processing.
- Model manager for checking, downloading, and loading Whisper models.
- Detached transcription and translation windows for subtitle-style display.
- Runtime/controller refactor for WebView bridge state, recording, models, settings, and imports.
- Interface language support for Simplified Chinese and English.
- Configurable text rendering, recording behavior, proxy settings, decoding options, and export paths.
| Realtime workspace | File transcription |
|---|---|
| Realtime transcription workspace | File transcription workbench |
| Model manager | Settings |
|---|---|
| Model manager and download table | Settings workbench |
- Python 3.14. Rev development and CI are validated against Python 3.14.
- Windows, macOS, or Linux for source installation.
- Windows 10 or newer is recommended for the current WebView-focused desktop experience.
- Optional CUDA-capable GPU for faster Whisper inference.
- Internet access is required only for model downloads and online translation providers.
Speaker loopback capture depends on the operating system and audio setup. On Windows it is available through supported host APIs; on other platforms you may need a virtual audio device.
Windows release downloads are published from the GitHub Releases page. Each release is built by the Release workflow and is expected to include a portable zip plus an Inno Setup installer.
Install from source:
git clone --recurse-submodules https://github.com/silverpoetry/speech-translate-rev.git cd speech-translate-rev python -m venv .venv314 .\.venv314\Scripts\Activate.ps1 pip install -r requirements-py314.txt
Older Python versions are not the primary Rev validation target. The last legacy dependency snapshot is archived at docs/legacy/requirements-py310.txt.
For CUDA builds, install the matching PyTorch packages for your machine before or alongside the requirements. See the official PyTorch installation guide for the correct index URL.
python Run.py
Alternative module entry point:
python -m speech_translateEditable install:
pip install -e . speech-translate-rev
The legacy speech-translate console command is kept as a compatibility alias.
Windows executable build:
.\.venv314\Scripts\python.exe build_windows.py build_exeThe build script uses cx_Freeze and outputs to build/SpeechTranslateRev <version> <environment>. The Inno Setup script in installer.iss can create an installer after the executable build succeeds. GitHub release assets are produced by .github/workflows/release.yml.
Most user settings are managed inside the app:
- Realtime input mode, host API, microphone and speaker devices.
- Model backend, model directory, model loading and cache state.
- Transcription and translation languages.
- Whisper decoding parameters and prompt options.
- Detached window size, position, opacity, colors, and click-through behavior.
- Proxy, logging, export, and runtime behavior.
User state is stored under speech_translate/_user/ during local development and is ignored by Git.
The Web UI currently supports:
- Simplified Chinese (
zh-CN) - English (
en-US)
The interface language can be changed from the settings page. Runtime strings that come from task state are normalized in the Web UI so the major panels can switch language without restarting the app.
Run the fast checks:
.\.venv314\Scripts\python.exe -m pip install -r requirements-dev.txt node --check speech_translate/web/app.js .\.venv314\Scripts\python.exe -m py_compile Run.py speech_translate/__main__.py speech_translate/webview_app.py speech_translate/web_bridge_api.py .\.venv314\Scripts\python.exe -m build .\.venv314\Scripts\python.exe -m unittest discover -s test -p app_tray_test.py .\.venv314\Scripts\python.exe -m unittest discover -s test -p app_startup_controller_test.py .\.venv314\Scripts\python.exe -m unittest discover -s test -p web_ui_preview_sync_test.py .\.venv314\Scripts\python.exe -m unittest discover -s test -p web_settings_contract_test.py .\.venv314\Scripts\python.exe -m unittest discover -s test -p runtime_registry_test.py
Useful project areas:
speech_translate/web/- WebView frontend, detached windows, tray panel, and UI preview.speech_translate/web_bridge_api.py- bridge API exposed to the frontend.speech_translate/app_runtime.pyand controller modules - runtime coordination.speech_translate/model_manager.py- model cache and loading state.test/- unit tests for controllers, runtime state, WebView contracts, and workflows.
Architecture overview: docs/architecture.md.
Speech Translate Rev is a heavily modified derivative of Dadangdut33/Speech-Translate, originally licensed under the MIT License.
The Rev project keeps the original MIT license notice and preserves attribution to the upstream author. Major changes in this derivative include:
- WebView frontend and modern shell UI work.
- Runtime/controller restructuring.
- File transcription workbench updates.
- Model manager and detached window improvements.
- Settings synchronization and color controls.
- Interface language support.
- Expanded tests around runtime, controller, and WebView behavior.
Third-party assets and submodules keep their own licenses. The bundled speech_translate/assets/silero-vad submodule comes from snakers4/silero-vad and includes its own license files.
This project is licensed under the MIT License. See LICENSE and NOTICE.md.