Open-source real-time speech translation and API solutions from VUI Labs, with live captions, translated audio, and open-source Web and iOS community clients.
No. 1 in multiple GitHub topics for simultaneous translation
README · English · 简体中文
Product welcome · English · 简体中文
Self-host the community edition · iOS source and build guide · Browse solutions · Interpretation v3 API (Chinese) · Regional access
In Real-time, one voice, every language.
Follow a talk in another language, present an idea to listeners who speak different languages, or take turns in a face-to-face conversation. Luna Translator provides source captions, translated text and speech, then saves the session for replay and sharing.
This repository includes a self-hosted Web frontend, Go backend, and iOS community client. Both clients can connect to the same workspace. They use external APIs for recognition and translation, so the deployment needs no local GPU.
This repository provides open-source clients and a self-hosted backend. We plan to open-source more simultaneous interpreting solutions with integration examples, configuration guides, and validation steps.
| Client | Status | Community edition scope |
|---|---|---|
| Web | Open source | Solo interpreting, Chinese–English turn-taking, history, replay, and sharing. Browse the Web source or self-hosting guide. |
| iOS | Open source | The first version supports solo Quick Interpreting with microphone input, live captions, and translated audio. See the iOS source and Xcode build guide. |
| Android | Next | Start with Quick Interpreting on a self-hosted workspace. Verify capture, captions, and audio playback on the emulator and a physical device. |
| macOS | Planned | Prepare a desktop community client with a standalone build. Verify microphone permissions and audio output before releasing source. |
Web and iOS run in simulation mode without a model API key. Live recognition and translation require a provider configured on the community backend.
| Scenario | Available today | Planned open-source work |
|---|---|---|
| Face-to-face conversation | Web supports Chinese–English turn-taking on one device. | Publish a standalone two-way conversation example with speaker switching, bilingual captions, and translated audio. |
| Livestream interpreting (OBS) | The guide covers a single-stream interpreting workflow and a reference OBS integration. | Publish examples and configuration for OBS caption overlays and a separate translated audio track. |
| Meeting interpreting | Web handles one presenter audio stream. A multiparty reference architecture is available. | Publish a multiparty integration example showing audio inputs and delivery of captions and translated audio in each listener’s selected language. |
| Classes and lectures | A runnable Go v3 example includes sample audio and live translation validation. | Add an integration example for distributing captions and audio to multiple classroom or lecture listeners. |
| Call interpreting | A reference architecture covers two-way call integration. | Publish a two-stream integration example that routes captions and translated audio to each caller. |
Detailed client plan (Chinese) · Current solution guides
Watch the community Web recording (MP4): start a simulated session from a WAV file and see the captions and saved session. The sample captions are generated in simulation mode, not translated from the input.
- 2026-12-04 · v0.1.4 · Community security maintenance release with updated WebSocket dependencies and Go toolchain. Release notes
- 2026-12-03 · v0.1.3 · The release package now includes the iOS community source. Community Web saves and sorts history by recording start time, exports transcripts as TXT, and shows notices for speech recognition interruptions and upstream connection failures. Release notes
- 2026-11-29 · main · The self-hosted Web app uses “Luna 同传” in the Chinese browser title, sign-in screen, and shared-session link. The iOS community app also updates its Simplified Chinese workspace branding.
- 2026-11-27 · main · The community Web app keeps source captions updating after ASR reconnects and updates the Chinese brand names on the Welcome page. The Go backend's Luna Bearer adapter uses structured terminology pairs with VAD off by default. Provider configuration and protocols
- 2026-11-24 · v0.1.2 · Based on the history-loading improvements in iOS 1.0.11 (131) and Android build 87, the community Web app shows saved history while retrying pending browser checkpoints in the background. History details can retry missing audio tracks and keep playable tracks available. Late checkpoints no longer replace finalized records. The community Web app follows the iOS 1.0.11 (128) design.
- 2026-11-23 · v0.1.1 · Four bilingual solution guides and a Go Quickstart. The classroom example includes real Chinese-to-English text and speech. The published package passed a clean Docker Compose startup, WAV input, and browser playback. Validation record
- 2026-10-30 · v0.1.0: First Web + Go community release with Docker Compose startup, Luna / Model Studio adapters, persistent history and audio, revocable sharing, and public CI.
| Scenario | Workflow |
|---|---|
| Solo translation | Choose input and target languages, read captions and play translated speech; select up to three targets. |
| Face-to-face conversation | Alternate between Chinese and English speakers, switching the active side and viewing captions on both panels. |
| Session replay | Open history, read the saved transcript, and play or download source and translated WAV audio. |
| Sharing | Create an expiring snapshot link, viewable without the workspace password, and revoke it when needed. |
| Development | Exercise the simulated flow without credentials, or send PCM16 WAV input at real-time speed. |
- Live captions and speech: Chinese / English input, with up to three target languages supported by the Luna public API.
- Solo and turn-taking modes: Preserve both speakers' transcripts and audio tracks.
- Persistent sessions: Browse, replay, download and delete history stored in a local Docker volume.
- Revocable links: Share snapshots for up to 30 days; revoking a link or deleting its source record makes it unavailable.
- Provider adapters: Integrate Luna translation, Model Studio ASR and Embedding through application-level clients.
- Independent deployment: Two containers, one data volume and an automatically generated workspace password; no external database or SMS service required.
Provider credentials stay in the backend. The browser captures and plays audio; the backend coordinates services and persists data. See architecture and data and provider contracts for details. The extended guides are currently in Chinese.
The community edition runs locally in simulation mode without a model API key. If you only need the API, start with the Go API quickstart: the example calls mainland China v3 with
X-API-Key. The community edition connects to your model service through its Bearer provider adapter.
Install Docker Engine / Docker Desktop with Compose, then clone:
git clone https://github.com/VUILabsAI/Luna-Translator.git
cd Luna-TranslatorAlternatively, download and extract a ZIP or tar.gz from Releases. SHA-256 checksums are provided alongside the archives.
macOS / Linux:
sh ./start.shWindows PowerShell:
./start.ps1The script builds the Web and backend images, waits for health checks, and prints the workspace password. Open http://localhost:8088 and sign in.
The first build needs access to public container images and npm / Go dependency registries. Docker deployment does not require Node.js or Go on the host. For ports, remote HTTPS, backups and upgrades, see the deployment guide.
Default simulation produces fixed sample captions and a tone. It does not recognize or translate your speech. Simulated audio goes to your local backend; real mode sends audio to the configured providers.
Choose input and target languages, start translation, complete the audio authorization flow, and speak. You can instead select an uncompressed PCM16 WAV file, which is sent at real-time speed. After completion, browse history, replay audio or generate a share link. Use the conversation mode for Chinese–English turn-taking.
Configure only the capabilities you need:
| Capability | Recommended service | Requirements | Purpose |
|---|---|---|---|
| Translation | Luna public API | Luna API key | Live translated text and synthesized speech; a fixed voice, with cloning disabled by default. |
| Optional translation provider | Model Studio Qwen LiveTranslate | API key, workspace and region | Chinese, English, German, Spanish, Italian, Swedish, French, Dutch and Danish input for single-speaker Web sessions. |
| Source transcription | Model Studio qwen3-asr-flash-realtime |
API key, workspace and region | Source captions alongside the Luna stream. |
| Vector scoring | Model Studio text-embedding-v4 |
API key and full Embedding endpoint | A backend API for whole-utterance similarity scoring and developer extensions. |
Copy .env.example to .env (cp .env.example .env on macOS / Linux, or Copy-Item .env.example .env in PowerShell), then edit:
# Real translation. Luna alone provides translated text and speech.
DEMO_MODE=false
LUNA_API_KEY=your-own-luna-key
# Optional Model Studio source transcription. Set true to enable LiveTranslate too.
ENABLE_BAILIAN_TRANSLATE=false
DASHSCOPE_API_KEY=your-own-model-studio-key
DASHSCOPE_WORKSPACE_ID=your-workspace-id
DASHSCOPE_REGION=cn-beijing
# Optional vector-scoring API. Use your own workspace endpoint.
DASHSCOPE_EMBEDDING_URL=https://your-workspace-id.cn-beijing.maas.aliyuncs.com/compatible-mode/v1/embeddingsRun the startup script again to apply the configuration. For the Luna Bearer connection, VAD defaults to off. Set LUNA_ENABLE_VAD and LUNA_HOTWORDS to configure VAD and structured terminology pairs. See hotwords and VAD. Without Model Studio ASR, Luna translated text and speech remain available, but source captions are unavailable. Accounts, costs, regions and concurrency limits are controlled by each provider. Each target language opens a separate upstream call and consumes quota.
To use the extended input languages in the Web workspace, set ENABLE_BAILIAN_TRANSLATE=true and restart. Open the single-speaker workspace, select Qwen LiveTranslate under 翻译服务 (Translation service) in settings if both providers are ready, then choose an input language. See Model Studio setup.
Select LunaLT Flash v3 to translate Chinese or English into Cantonese. The Web picker indicates which supported outputs offer captions and translated audio. Cantonese audio is available from saved sessions. See provider language support.
The community UI pairs text by whole utterance or speaking turn. Embeddings score similarity; they do not provide validated sentence-level alignment. See configuration and protocols for more options. Keep your .env and credentials out of commits and public Issues.
Requires Node.js 22.12+ and Go 1.26.11+. Install dependencies from the repository root:
npm ciOn macOS / Linux, start a simulated backend in one terminal:
DATA_DIR="$PWD/data" DEMO_MODE=true go -C backend run .Start the frontend in another terminal:
npm run dev --workspace webOpen http://localhost:5173. The generated workspace password is in data/admin-password. Vite proxies application requests to the local backend on port 8080.
Build and check:
npm run build
npm test
go -C backend test -race ./...
python3 scripts/check-public-content.py| Directory | Contents |
|---|---|
web/ |
Web pages, audio interaction, history and sharing. |
ios/ |
SwiftUI client, native audio, and simulator tests. |
packages/core/, packages/ui-shared/ |
Shared text state, protocols and browser audio logic. |
backend/community/ |
Standalone workspace API, session coordination and persistence. |
backend/providers/ |
External model-service client adapters. |
solutions/ |
Integration guides and scope for meetings, classrooms, livestreams, and calls. |
examples/quickstart/ |
Runnable Go example for the mainland China interpretation v3 API. |
docs/ |
Architecture, deployment, provider setup, validation and roadmap. |
The community edition is a single-workspace deployment. Everyone with its password shares history and model quota. Use separate deployments for separate users. Remote microphone access requires valid HTTPS.
Validation covers synthetic-speech Chinese–English translation in both directions, browser history and sharing, container startup and public CI. Physical microphone capture, headphones / echo behavior, Safari / Edge, Windows hardware and long-session load have not completed acceptance testing. See the validation record.
Next priorities include physical-device iOS audio and live provider validation, along with Web compatibility, accessibility, and provider adapters. See the repository roadmap for client and solution plans.
| Region | Product welcome | Official Web app |
|---|---|---|
| International entry point | English | Open the international Web app |
| US (North America) | English (North America) | Open the North America Web app |
| Mainland China | 简体中文 | Open the Mainland China Web app |
The official Web app and self-hosted workspaces use separate accounts and data. The international and North America Web apps require sign-in. For the official service's capabilities and protocol, see the Mainland China interpretation API reference (in Chinese).
These screenshots show the official iOS and Android apps. The Android screenshot shows build 1.0.11 (90). The official iOS app is available from the mainland China App Store. The iOS community guide has a screenshot and instructions for the self-hosted client.
- Can I run it without an API key? Yes. Simulation mode needs no provider credentials and lets you try captions, history, and sharing. For actual translation, see model setup.
- Startup fails or the port is in use? Check
docker compose logsand changePORTin.envif needed. See the deployment troubleshooting guide for more. - Microphone not available? Check browser permissions. Remote browser access requires HTTPS for microphone capture. You can also test with an uncompressed PCM16 WAV file.
Trendshift’s official achievements page lists these ranks for Luna.
| Leaderboard | Rank | First achieved |
|---|---|---|
| TypeScript daily | #1 | 2026-11-29 |
| All languages daily | #12 | 2026-11-29 |
| TypeScript weekly | #19 | Week 48, 2026 |
The rankings section below lists separately timestamped live leaderboard peaks and GitHub Topic rankings.
The official Trendshift achievement appears first. Each leaderboard shows its best verified rank. For the same rank, all-language boards come first, followed by the newest results. GitHub topics are sorted by total stars.
Source data in docs/rankings.json. Ranking maintenance (Chinese)
Use Issues to report problems, discuss use cases and suggest features. Pull requests are welcome, especially for browser compatibility, accessibility, provider adapters, documentation and alignment strategies.
- Contributing: Development checks and submission guidelines.
- Security: Private reporting for credentials, recordings and vulnerabilities.
- Third-party notices: Dependency, font and asset licenses.
Application code is licensed under Apache License 2.0; third-party components retain their own licenses. This repository does not distribute ASR, translation or Embedding alignment model weights, training code, training data or private inference implementations. Model services have their own usage terms.


