Skip to content

Client (Flutter)

Nothing to install — runs in any modern browser (desktop or mobile).

  1. Start your server (Docker / binary / cargo)
  2. Open Web App — https://lutgaru.github.io/Sinsajo/app/
  3. 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:

Terminal window
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:

Terminal window
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/

The Settings screen has two tabs — Client and Server — and every change is persisted across app restarts.

  • 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 with MediaRecorder support.
  • 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.
  • 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 / OGG format. The server writes the recording to records/ 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.

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 positiveSpeechThreshold to 0.3 for quiet voices
  • Lower negativeSpeechThreshold to 0.2 to keep segments longer
  • Increase redemptionFrames to 12 to 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.

Riverpod 2.x manages the WebSocket lifecycle, transcription state and the server model list:

  • transcription_provider.dart handles transcription, partial, final and model_info
  • server_models_provider.dart handles model_list, model_action and model_download_progress
  • settings_provider.dart persists client settings

See Protocol for the full WebSocket spec.

Web App

Fastest to try or share — no install, just a URL. Needs server IP reachable via ws/wss.

APK

Best for testers on Android — one file, no store. Share Release link/QR.

From source

For developers or other platforms (iOS/Desktop/Web) — compile with Flutter on any supported OS/arch.