Overview
An easy-to-install Swift package for connecting to Omi devices. Get started in seconds with local Whisper-based transcription - no cloud API required.Swift Package
Native iOS/macOS support
Local Transcription
Whisper runs on-device
Simple API
Connect in minutes
Installation
1
Create a New Project
Open Xcode → File → New Project → iOS → App
Make sure to select Storyboard as the Interface option.
2
Add the Swift Package
- Navigate to File → Swift Packages → Add Package Dependency…
- Select your project
- Paste the repository URL:
https://github.com/BasedHardware/omi - Click Next
3
Add Bluetooth Permission
Go to Targets → Your Project → Info and add this permission:
Quick Start
Get transcription working in 2 minutes:1
Copy This Code
Replace your
ViewController.swift with:2
Build and Run
- Select your development team
- Connect your iPhone via cable (simulators don’t support Bluetooth)
- Run the project
3
Test It
- Turn on your Omi device
- The app should connect automatically
- Speak - you’ll see transcription in the Xcode console
There’s no UI in this example - transcription appears in the Xcode logs.
API Reference
TheOmiManager class provides all device interaction methods:
Device Scanning
Connection Management
Live Data
- Live Transcription
- Live Audio
OmiManager Methods
| Method | Description |
|---|---|
startScan(callback) | Start scanning for Omi devices |
endScan() | Stop scanning |
connectToDevice(device) | Connect to a discovered device |
connectionUpdated(callback) | Monitor connection state changes |
getLiveTranscription(device, callback) | Receive real-time transcription |
getLiveAudio(device, callback) | Receive audio file URLs |