Web App
Client (Flutter)
Options — pick one
Section titled “Options — pick one”Nothing to install — runs in any modern browser (desktop or mobile).
- Start your server (Docker / binary / cargo)
- Open Web App —
https://lutgaru.github.io/Sinsajo/app/ - Settings → set Server IP (e.g.
192.168.1.100:8765) → tap mic → speak
The Web App on GitHub Pages is built from sinsajo_client via:
flutter build web --release --base-href /Sinsajo/app/In CI it is merged into docs-site/dist/app/ for a single Pages deploy. Preview locally:
cd docs-site && npm run build# PowerShell: Copy-Item -Recurse -Force ../sinsajo_client/build/web/* dist/app/# Bash: cp -r ../sinsajo_client/build/web/* dist/app/For Android phones/tablets — distribute via link or QR without recompiling.
Install:
- Download
app-release.apkfrom client-latest - Enable Install unknown apps on Android → install → open → Settings → set server IP
Build yourself (optional):
cd sinsajo_clientflutter pub getflutter build apk --releaseBuilt automatically on every client/v* tag via GitHub Actions. Do not commit APKs to git — link to the Release or generate a QR.
Minimum: Android device meeting Flutter 3.x requirements.
For any platform meeting client requirements (Flutter 3.x): Android, iOS, Linux, macOS, Windows, Web.
git clone https://github.com/lutgaru/Sinsajo.gitcd Sinsajo/sinsajo_clientflutter pub getflutter run # runs on connected device/emulator/desktop# or target a platform:flutter build apk --releaseflutter build ios --releaseflutter build linux --releaseflutter build web --release --base-href /Sinsajo/app/Configure the default server URL in code (overridden in Settings UI):
const String kWsUrl = 'ws://192.168.1.100:8765';Other in-app settings are described below. They persist across restarts (shared_preferences; localStorage on Web).
Settings
Section titled “Settings”The Settings screen has two tabs — Client and Server — and every change is persisted across app restarts.
Client tab
Section titled “Client tab”- Microphone gain —
0.0–3.0×slider. - Audio source (Android) — Default, Voice recognition, Camcorder, Microphone, Voice communication, or Unprocessed.
- Save audio on this device — desktop/mobile only. Writes the VAD speech of each session to one WAV file (16 kHz mono) so you can listen back to what was transcribed. The last saved path is shown in Settings.
- Record session audio (Web) — Web only. Records the full microphone stream with the browser’s
MediaRecorder(WebM/Opus, MP4 fallback) and downloads the file when you stop. This is independent of the server recording and requires a browser withMediaRecordersupport. - Voice Activity Detection (VAD) — frame size, positive/negative thresholds, redemption frames, pre-speech padding, minimum speech frames and end-speech padding, plus Reset defaults. Changes apply to the next recording.
Server tab
Section titled “Server tab”- Connection — server address plus Apply & reconnect. Changing the address is disabled while recording; the client reconnects with exponential backoff and shows the live connection state.
- Active server model — the loaded model and the languages it advertises.
- Server audio saving — toggle plus
WAV/OGGformat. The server writes the recording torecords/when the session is cleaned. - Target language — the full language picker. Options the active model does not advertise are disabled.
- Model manager — lists every model compiled into the server, marks installed/active entries, and lets you Download, Load/Reload or Delete models. Downloads show a segmented progress bar (one section per file) plus aggregate bytes. Only one model operation runs at a time, and the active model cannot be deleted.
See Supported Models for flags, languages and feature gates, and Protocol for the underlying messages.
Voice Activity Detection
Section titled “Voice Activity Detection”Defaults live in lib/providers/settings_provider.dart and are passed to VadHandler.startListening() in lib/services/audio_service.dart:
await _vadHandler.startListening( model: 'v5', // Silero VAD v5 frameSamples: 512, // 32 ms positiveSpeechThreshold: 0.45, // start speech negativeSpeechThreshold: 0.35, // end speech redemptionFrames: 7, // silence frames to close an utterance preSpeechPadFrames: 8, minSpeechFrames: 8, endSpeechPadFrames: 3,);Tuning:
- Lower
positiveSpeechThresholdto0.3for quiet voices - Lower
negativeSpeechThresholdto0.2to keep segments longer - Increase
redemptionFramesto12to avoid cutting pauses - Package:
vad(pub.dev) — Silero VAD v5 via ONNX Runtime
You can change all of these from Settings → Client → Voice Activity Detection; no rebuild is needed.
State & Protocol
Section titled “State & Protocol”Riverpod 2.x manages the WebSocket lifecycle, transcription state and the server model list:
transcription_provider.darthandlestranscription,partial,finalandmodel_infoserver_models_provider.darthandlesmodel_list,model_actionandmodel_download_progresssettings_provider.dartpersists client settings
See Protocol for the full WebSocket spec.
Choosing quickly
Section titled “Choosing quickly”APK
From source