Skip to main content

Python SDK for OMI/Neo1 BLE wearable devices — audio streaming, button events, and device control

Project description

friend-lite-sdk

Python SDK for OMI / Friend Lite BLE wearable devices — audio streaming, button events, device control, and transcription.

Derived from the OMI Python SDK (MIT license, Based Hardware Contributors). See NOTICE for attribution.

Installation

pip install friend-lite-sdk

With optional transcription support:

pip install "friend-lite-sdk[deepgram]"   # Deepgram cloud transcription
pip install "friend-lite-sdk[wyoming]"    # Local ASR via Wyoming protocol
pip install "friend-lite-sdk[deepgram,wyoming]"  # Both

Features

  • BLE Audio Streaming — Connect to OMI/Friend Lite devices and stream Opus-encoded audio
  • Button Events — Subscribe to single tap, double tap, long press events
  • Haptic Control — Trigger haptic feedback patterns on supported devices
  • WiFi Sync — Configure and trigger WiFi-based audio sync
  • Storage Access — Read stored audio from device storage
  • Neo1 Support — Sleep/wake control for Neo1 devices
  • Transcription — Built-in Deepgram and Wyoming ASR integration

Quick Start

import asyncio
from friend_lite import OmiConnection, ButtonState, parse_button_event

async def main():
    async with OmiConnection("AA:BB:CC:DD:EE:FF") as conn:
        # Stream audio
        await conn.subscribe_audio(lambda _handle, data: print(len(data), "bytes"))

        # Listen for button events
        await conn.subscribe_button(
            lambda _handle, data: print("Button:", parse_button_event(data))
        )

        await conn.wait_until_disconnected()

asyncio.run(main())

Device Discovery

import asyncio
from friend_lite import print_devices

asyncio.run(print_devices())

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

friend_lite_sdk-0.3.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

friend_lite_sdk-0.3.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file friend_lite_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: friend_lite_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for friend_lite_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9aa495537fe676705ff555093a1f503f4911a6ea7fdac1fd858a5fa1add92de8
MD5 c17d31d62dfb5d59ff08a94f3f3a1530
BLAKE2b-256 bf34a42eabaf46116472ea8afa3ce480fb91b5ea72847a9b0f03b23ae17511b5

See more details on using hashes here.

File details

Details for the file friend_lite_sdk-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for friend_lite_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9114c8c06b8f084e1bdb434198fc02c73b9b6f1098819602931995bade77be3f
MD5 94d8370517361ef00bf990115f6f457c
BLAKE2b-256 cbf0891c2bd7cc9031c45bf8928ca12c719ad7b3964d362d32cba6c85fa123ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page