Multilingual translation, TTS and ASR for Flutter — African languages (Fon, Yoruba, Hausa, Adja, Bariba) + 100 world languages. Offline-first with local translations support and automatic language detection.
# fonika_translate
**Multilingual translation, TTS and ASR for Flutter** — built by 229Langues.
Supports African languages (Fon, Yoruba, Hausa, Adja, Bariba) + 100+ world languages.
**Offline-first**: local keys → device cache → API, with automatic retry and exponential backoff.
---
## Features
| Feature | African languages | European / World languages |
| -------------------------------- | --------------------------------- | -------------------------------- |
| Text translation | ✅ API (100+ langs incl. Bariba) | ✅ Same API |
| Batch translation | ✅ | ✅ |
| TTS (audio synthesis) | ✅ API → Fon, Yoruba, Hausa | ✅ Platform TTS (flutter_tts) |
| ASR (speech-to-text) | ✅ API → Fon, Adja, Yoruba, Hausa | ✅ Platform ASR (speech_to_text) |
| Local translations (offline) | ✅ | ✅ |
| Device cache (SharedPreferences) | ✅ | ✅ |
| Retry with backoff | ✅ | ✅ |
| Flutter widgets | ✅ | ✅ |
| PDF translation | ✅ | ✅ |
| TXT file translation | ✅ | ✅ |
| PDF text extraction | ✅ | ✅ |
---
## Installation
```yaml
dependencies:
fonika_translate: ^0.2.1
```
### Android permissions
Add to `android/app/src/main/AndroidManifest.xml`:
```xml
```
### iOS permissions
Add to `ios/Runner/Info.plist`:
```xml
NSMicrophoneUsageDescription
Microphone access is needed for speech recognition.
NSSpeec …