One app with everything Oriel does, built from the same src/main.zig and
web/ for Linux, Windows, macOS, Android and iOS.
| Tab | What it shows |
|---|---|
| Dictate | Voice to text (oriel.dictation): whisper on the CPU or the GPU, or the system recognizer; live text, file transcription, "dictate anywhere" |
| Chat | A local LLM (oriel.chat, llama.cpp): streamed replies, Stop, KV-cache reuse, Compare GPU and CPU, a mic that dictates the message, Read aloud on replies |
| Speak | Text to speech (oriel.tts, Kokoro 82M): Speak/Stop, voices by language or Auto (guessed from the text), speed, Markdown read as prose, model and voice downloads, and per utterance the first-audio time, real-time factor, chunks, backend and gaps |
| Notes | SQLite (oriel.sql) and deep links (oriel-showcase://note/<text>); Read aloud on each note |
| Files | Open and save dialogs, photos (oriel.camera: image inputs and capturePhoto), transcribing a WAV file |
| System | Clipboard, notifications, keyboard shortcuts; the tray, menus and typing into other apps on desktops; the Quick Settings tile and the keyboard on Android |
| App | Windows, IPC, events from a worker thread, device info |
Models are not in the app: the Dictate, Chat and Speak tabs download them on first use (or copy them into the folder the App tab shows under "Data").
The build enables .kokoro = true (next to whisper and llama, whose ggml it
shares). Synthesis is Kokoro 82M through kokoro.cpp, on the GPU where ggml
has one (-Dggml_cuda, -Dggml_vulkan, Metal) and else on the CPU (the
Speak tab's CPU/GPU choice); the text is cut into chunks and sound starts
after the first. On its first visit the Speak tab warms the engine up
(tts_warm_up: loads the model and voice and, on a GPU, compiles the
pipelines), so the first sentence starts sooner. Phones read on the CPU;
low-end ones synthesize slower than real time, so speech comes with pauses
between chunks. The Speak tab downloads the model
(Q8_0, 135 MB, or F16, 156 MB) and voices (0.5 MB each: English, Spanish,
French, Portuguese, Italian, Japanese, Chinese, Hindi), checked against their
SHA-256. "Read aloud" on chat replies (as Markdown) and notes uses the same
command with the voice picked from the text's language.
Where the files live:
| Platform | Model and voices (models/) |
espeak-ng phoneme data (bundled by the build) |
|---|---|---|
| Linux | ~/.local/share/dev.oriel.Showcase/models/ |
espeak-ng-data/ next to the executable (zig-out/bin/, the deb/rpm's /usr/lib/<app>/, the AppImage) |
| Windows | %LOCALAPPDATA%\dev.oriel.Showcase\models\ |
espeak-ng-data\ next to the .exe (the installer copies it) |
| macOS | ~/Library/Application Support/dev.oriel.Showcase/models/ |
Oriel Showcase.app/Contents/Resources/espeak-ng-data |
| Android | /sdcard/Android/data/dev.oriel.Showcase/files/models/ (adb can write there) |
APK assets (zig-out/android-assets), extracted to the app's files dir on first start |
| iOS | the app's data directory, models/ |
Oriel Showcase.app/espeak-ng-data |
The models are named as in the catalog: kokoro-82m-q8_0.gguf,
kokoro-voice-af_heart.gguf, kokoro-voice-ef_dora.gguf... An
espeak-ng-data/ in the models folder, or $KOKORO_ESPEAK_DATA_PATH, takes
precedence over the bundled copy. More in docs/tts.md.
- Zig 0.16.
- Optionally the
orielCLI, which wraps the commands below and finds or sets up the platform tools: from the repository root,zig build cliwriteszig-out/bin/oriel.
Run every command in this directory (examples/showcase). Plain
zig build works everywhere too; the CLI adds packaging, devices and
signing.
Without options, whisper and llama run on the CPU (on Macs and iPhones, on
Metal). Add these to any zig build or oriel build/package command:
| Option | Where | Needs |
|---|---|---|
-Dggml_vulkan |
Linux, Windows, Android | Linux: glslc and the Vulkan headers (Debian/Ubuntu: libvulkan-dev spirv-headers glslc; Arch: vulkan-headers spirv-headers vulkan-icd-loader shaderc). Windows: the Vulkan SDK. Android: nothing, the NDK has it |
-Dggml_cuda |
Linux with an NVIDIA GPU | The CUDA toolkit (-Dcuda_path, default $CUDA_PATH or /opt/cuda); -Dcuda_arch=86,89 to pick GPUs, -Dcuda_static to need only the driver at runtime |
-Dggml_opencl |
Android (Adreno GPUs) | Nothing extra |
-Dggml_arm=i8mm |
Android | Faster CPU kernels for Armv8.6+ phones (the default, dotprod, runs on any recent phone) |
The app picks the GPU or the CPU per model on its own; Compare (in Dictate and Chat) measures both and remembers the faster one.
Build dependencies (Debian/Ubuntu names):
sudo apt install pkg-config libgtk-4-dev libwebkitgtk-6.0-dev libpulse-dev \
libwayland-dev libx11-dev libxtst-dev libxkbcommon-devFedora: gtk4-devel webkitgtk6.0-devel pulseaudio-libs-devel wayland-devel libX11-devel libXtst-devel libxkbcommon-devel. Arch: gtk4 webkitgtk-6.0 libpulse wayland libx11 libxtst libxkbcommon.
zig build run # build and run (Debug)
zig build -Doptimize=ReleaseFast # release: zig-out/bin/oriel-showcase
oriel package # .deb, .rpm and .AppImage in zig-out/package/
./install-local.sh # build with CUDA and install the AppImage for this userPackaging needs nfpm (deb, rpm), mksquashfs (AppImage) and
desktop-file-validate. The AppImage uses the system's GTK 4 and
WebKitGTK 6.0, so the target machine needs them installed.
Headless checks, no window:
zig-out/bin/oriel-showcase --download qwen2.5-0.5b
zig-out/bin/oriel-showcase --chat "Hello" # a reply and a follow-up, with tokens/s
zig-out/bin/oriel-showcase --compare qwen2.5-0.5b # GPU against CPU
zig-out/bin/oriel-showcase --transcribe talk.wav # needs a whisper model downloaded
zig-out/bin/oriel-showcase --tts-download kokoro-82m-q8_0 # the voice model; then a voice:
zig-out/bin/oriel-showcase --tts-download af_heart
zig-out/bin/oriel-showcase --say "Hello from Oriel." # read aloud; prints first audio, RTF, chunks, gapsNatively on Windows (Windows 10 or 11 with the WebView2 runtime, which Windows 11 includes):
oriel setup webview2 # caches WebView2Loader.dll
oriel setup nsis # NSIS, for the installer
oriel build -Doptimize=ReleaseFast # zig-out/bin/oriel-showcase.exe
oriel package # zig-out/package/oriel-showcase-<version>-setup.exeOr cross-compiled from Linux (needs makensis, the nsis package):
oriel package -Dtarget=x86_64-windowsThe installer installs per user (no administrator), adds Start Menu
shortcuts and checks for the WebView2 runtime. With -Dggml_vulkan the
shaders are compiled into the executable (about 55 MB more; the installer
compresses it), and the app falls back to the CPU on machines without a
Vulkan driver.
On a Mac with Xcode or the command line tools (xcode-select --install):
zig build run # build and run
oriel build # zig-out/Oriel Showcase.app
oriel package # zig-out/package/Oriel Showcase.app and the .dmgwhisper and llama run on Metal. The build targets macOS 13 and later. For
the microphone (Dictate), run the .app rather than the bare executable:
macOS grants it per app bundle. Signing and notarization: see the
README's "macOS bundles" section (-Dmacos-sign-identity,
-Dmacos-notarize-profile).
Needs a JDK 17, the Android SDK (platform-tools, Gradle 8.9+) and the NDK
($ANDROID_NDK_HOME, or $ANDROID_HOME/ndk/<version>). The Gradle project
is already in android/.
oriel android dev --abi arm64 # debug build on the connected phone (x86_64 for the emulator)
oriel android build --abi arm64 --apk # release APK: android/app/build/outputs/apk/release/
adb logcat -s Oriel chromium # logsoriel android dev/build forward Zig -D options. Enable the native
renderer or GPU backends directly:
oriel android dev --abi arm64 -Dnative_ui
oriel android build --abi arm64 --apk -Dnative_ui -Dggml_vulkan -Dggml_openclRelease builds are stripped and minified (R8). The APK is unsigned unless
$ORIEL_ANDROID_KEYSTORE, $ORIEL_ANDROID_KEYSTORE_PASSWORD,
$ORIEL_ANDROID_KEY_ALIAS and $ORIEL_ANDROID_KEY_PASSWORD are set; to try
an unsigned one, sign it with your debug key (apksigner sign --ks ~/.android/debug.keystore). oriel android build --aab makes the bundle
for Google Play.
On the phone, "dictate anywhere" works from the Quick Settings tile ("Dictate anywhere"), the Oriel keyboard (enable it in the system's keyboard settings) and the headset button. More in docs/android.md.
Needs Apple's iOS SDK: on a Mac, Xcode; on Linux,
xtool, which extracts the SDK from
Xcode.xip (download it from Apple's developer site). oriel ios setup
sets xtool and the SDK up, asking first.
oriel ios build --simulator # zig-out/ios/Oriel Showcase.app for the simulator (on a Mac)
oriel ios install --simulator # into the booted simulator
oriel ios build --ipa # for a device: the .app and zig-out/Oriel Showcase.ipa
oriel ios install # signs with your Apple ID and installs over USB or Wi-FiWith Zig alone: zig build -Dtarget=aarch64-ios -Dapple_sdk=<iPhoneOS.sdk>
(aarch64-ios-simulator for the simulator). Dictation keeps running in the
background (background audio), and the system engine is Apple's speech
recognizer. More in docs/ios.md.




