Skip to content

About

iOS companion app and voice input keyboard for the OpenZilo ring, with on-device speech recognition

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OpenZilo ring

OpenZilo Input for iOS

On-device voice input keyboard and companion app for the OpenZilo smart ring.

iOS CI iOS 17+ Swift 5 MPL-2.0 Discord

Website · Get the Kit · Get started · Build · Community · 简体中文

Hold the button on your OpenZilo ring and speak — OpenZilo Input turns your voice into text in any iOS app with on-device speech recognition.

Built on the OpenZilo wearable platform and libopenzilo, this all-in-one iOS app combines OpenZilo Connect and OpenZilo Input into one companion app plus a keyboard extension:

  • Voice dictation keyboard — hold the ring button to speak in any app; Chinese & English stream live, final pass also supports Japanese, Korean, and Cantonese.
  • Ring management & OTA — background BLE reconnect, device info, and verified firmware updates.
  • Ring button & IMU gestures — single/double press actions and custom DTW IMU gestures (OpenZiloGesture).
  • Locate ring — ARKit + Bluetooth RSSI particle-filter compass to find a nearby ring (OpenZiloFind).
  • Live translator — two-sided conversation translation with Apple Translation and optional Doubao streaming ASR.

Get started

Requires an OpenZilo ring and an iPhone running iOS 17 or later.

  1. Ring tab: tap Find ring, pick your ring, and allow Bluetooth.
  2. Dictation tab: download the local speech models (~418 MiB), then enable OpenZilo Input and Allow Full Access in Settings › General › Keyboard › Keyboards.
  3. Switch to OpenZilo Input in any text field, hold the ring button to speak, and release to insert polished text at the cursor.

Recognition and privacy

  • 100% on-device dictation via sherpa-onnx (or optional Apple SpeechAnalyzer on iOS 26+) — no audio is uploaded and no audio or transcript history is stored.
  • Private fields protected — audio is only decoded while the keyboard is active in an eligible text field; password and sensitive fields are disabled.
  • The optional Translator tab only sends audio to Doubao ASR if you explicitly configure an API key and open that tab.

Build from source

Requires macOS with Xcode 16+, rustup, and XcodeGen (brew install xcodegen).

git clone https://github.com/ziloai/OpenZilo-Input-iOS.git
cd OpenZilo-Input-iOS
scripts/bootstrap.sh
open OpenZilo.xcodeproj

Create Config/Local.xcconfig (git-ignored) with your Apple signing team:

DEVELOPMENT_TEAM = ABCDE12345
// Optional overrides:
// OPENZILO_BUNDLE_ID = com.example.openzilo
// OPENZILO_APP_GROUP = group.com.example.openzilo
// DOUBAO_API_KEY =

Run unit tests:

cd OpenZiloKit
xcodebuild test -scheme OpenZiloKit-Package -destination 'platform=iOS Simulator,name=iPhone 16'
Architecture & differences from Android

iOS keyboard extensions cannot hold a BLE connection or load a ~400 MB speech model within their memory limit, so the iOS port combines Connect and Input into one app + keyboard extension communicating via App Group JSON files and Darwin notifications (DictationBridge).

App/                    SwiftUI app (Ring, Firmware, Dictation, Translator)
Keyboard/               OpenZilo Input keyboard extension
OpenZiloKit/
  Sources/OpenZiloShared     App <-> keyboard bridge, transcript polish, field policy
  Sources/OpenZiloCore       CoreBluetooth transport, RingSession, firmware catalog
  Sources/OpenZiloSpeech     sherpa-onnx recognition, model download & verification
  Sources/OpenZiloDictation  Live ring audio capture (libopenzilo Opus + live preview)
  Sources/OpenZiloFind       ARKit + RSSI particle filter for locating a nearby ring
  Sources/OpenZiloGesture    DTW gesture template matching on ring IMU streams
  Sources/LibOpenZilo        Generated UniFFI bindings (scripts/build-libopenzilo.sh)
scripts/                Native dependency and XcodeGen bootstrap scripts
Config/                 Shared xcconfig settings (override in Config/Local.xcconfig)

Key differences from Android:

  • No third-party AIDL API (iOS has no cross-app ring broker).
  • Live preview renders in the keyboard panel; polished text inserts on button release.
  • Up to 1 s of dropped BLE audio frames per recording is silence-filled instead of discarding the recording.
  • Local models warm on ring connect and unload after 10 min idle or on memory warning; iOS 26+ supports Apple's zero-app-memory SpeechAnalyzer.

OpenZilo Ecosystem

Community

License

Licensed under the Mozilla Public License 2.0. Third-party components retain their own licenses, including sherpa-onnx (Apache-2.0); see NOTICE.txt.

About

iOS companion app and voice input keyboard for the OpenZilo ring, with on-device speech recognition

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages