Swift SDK
Omi Swift Library
An easy to install package to get started with the omi dev kit 1 in seconds.
Installation
- Open Xcode => File => New Project => Ios => App => Create project (Interface: storyboard
- In Xcode navigate to File → Swift Packages → Add Package Dependency…
- Select a project
- Paste the repository URL (https://github.com/BasedHardware/omi) and click Next.
If you aren’t being asked to add the package to your target, click on “add Package” again, then “Add to Target” and choose your project
- install Requirement
Go to “Targets => your project => Info” and add this permission:
Run in 2 minutes
- Copy this code into ViewController.swift
-
Select your team, connect the phone (we suggest via cable), and run the project
-
turn on omi device - the app should connect automatically
Speak. You will not see any UI on the mobile app, but you should see transcription in logs. Transcription runs locally using whisper
Other Usage
The core interface for interacting with the Omi device is the OmiManager.swift. The OmiManager abstracts things like scanning, connecting, and reading bluetooth data into a few simple function calls.
Looking for a device
Connecting / Reconnecting to a device
Getting Live Data
Licensing
Omi’s Swift SDK is available under MIT License