Translation
After recognition (and optional AI polishing) finishes, BiBi Keyboard can translate the final text into a target language before inserting it — useful for cross-language input.
Overview
Translation is part of the text-processing stage; the keyboard, floating ball, external calls, and system speech recognition share the same text-processing flow:
- When translation fails, that result is not inserted; the status bar shows "Translation failed" and the history entry is marked as failed.
- The AI edit panel and history re-polish do not go through translation, so existing text is never translated twice.
Enabling and configuring
Path: Settings → Smart → Translation Settings.
- Turn on "Enable translation"
- Choose an offline or online service under "Service"
- Pick the "Input language" and "Target language"; the swap button in the middle exchanges them
- Tap "Test translation" to verify the service and language packs
Offline translation (Foxlet)
Foxlet translates on-device and never uploads your text, but the language packs for each direction must be downloaded first.
- Device requirements: Android 9 or later and a 64-bit ARM device. The settings page warns when the device is unsupported.
- Language packs: packs are downloaded per direction; the settings page shows which packs are missing, then "Language packs ready" when complete.
- English pivot: when a direction has no direct model, translation goes through English, e.g. Japanese → Chinese uses the Japanese → English and English → Chinese packs.
- Input language: "Auto-detect" is not available offline; pick the input language explicitly.
- Manage language packs: view and delete downloaded packs; one pack may be shared by several directions.
- Preload models: when enabled, models load as recording starts instead of when translation begins.
- Model unload policy: unload right after translation, keep for 5 / 15 / 30 minutes, or keep loaded.
Online translation
Online services need no API key, but the pre-translation text is sent to the selected provider:
| Service | Notes |
|---|---|
| Microsoft Edge Translate | Microsoft Translator endpoint, no key required |
| Tencent Transmart | Tencent translation endpoint |
| Volcengine Translate | Volcengine translation endpoint |
| Bilibili Index-Translate | Bilibili translation endpoint |
| Google Translate | Google Translate endpoint |
All online services support "Auto-detect" as the input language, which helps when the spoken language is mixed or uncertain.
Privacy
Online translation sends the recognized text to the selected provider. Use Foxlet offline translation for sensitive content.
Keyboard shortcuts
- Translation toggle (extension button): the same switch as "Enable translation" in settings. Add it to the keyboard to toggle quickly; when on, the icon is highlighted and a toast confirms "Translation enabled".
- "Translate" key in the Recording layout: enables translation for the current recording only. The inserted text is the translation; the next recording follows the setting again. Add it in the "Recording" panel of
Settings → Input → UI Settings → Keyboard UI → Custom keyboard layout. - Undo translation: after inserting, the status bar offers "Undo translation" to restore the untranslated recognition text.
Configuration
| Option | Default | Description |
|---|---|---|
| Enable translation | Off | Master switch for all voice input paths |
| Service | Foxlet offline translation | Foxlet offline or an online translation service |
| Input language | Simplified Chinese | Required offline; "Auto-detect" is available online |
| Target language | English | Language of the translated text |
| Preload models | Off | Foxlet only; preload models when recording starts |
| Model unload policy | 5 minutes | Foxlet only; how long models stay loaded after translation |
FAQ
The translation was not inserted
- Check whether the status bar shows "Translation failed". A failed translation submits nothing; run "Test translation" first to verify the service and packs.
- Offline translation needs every pack for the current direction. The settings page lists the missing packs and their size.
Offline translation is reported as unsupported
Foxlet requires Android 9 or later and a 64-bit ARM device. Switch to any online service otherwise.
Related
- Voice Input Basics - recognition and insertion flow
- AI Post-processing - optional polish that runs before translation
- Keyboard Layout & Buttons - add the translation toggle and recording translate key