OmniMind Protocol Python SDK for AIoT Devices
Project description
OmniMind Python SDK
OmniMind SDK is a high-performance communication library for AIoT devices using the OmniMind Protocol. It supports real-time voice streaming, text messaging, and hardware tool registration (MCP).
Installation
pip install omnimind-sdk
If you need audio support (optional):
pip install omnimind-sdk[audio]
Quick Start
from omnimind import OmniMindClient
def on_text(content, role):
print(f"[{role}] {content}")
client = OmniMindClient(
server_url="ws://127.0.0.1:8082/v1/ws",
sn="YOUR_DEVICE_SN",
token="YOUR_TOKEN"
)
client.set_text_callback(on_text)
client.connect()
client.send_text("Hello, who are you?")
Features
- Real-time Voice: Stream audio chunks using Opus/PCM.
- Tool Registration: Register hardware capabilities as tools for AI to call.
- Heartbeat: Automatic PING/PONG mechanism to keep connection alive.
- Protobuf: Efficient binary serialization.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
omnimind_sdk-1.0.1.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omnimind_sdk-1.0.1.tar.gz.
File metadata
- Download URL: omnimind_sdk-1.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7672faaf6131f3000fc3c8ff5b40645cc546d26d99a3686d00d8ee3493bc7272
|
|
| MD5 |
78aed9a01ae51191f794e78094dbf37f
|
|
| BLAKE2b-256 |
27709064c8ddb13392a8ba23f34e7ecf7abcb48018fa5967d423a414c361b42e
|
File details
Details for the file omnimind_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: omnimind_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83620f51f15fc94970e9f7fd1c39ed0aca4a49107a55bd6d86948f85883f7617
|
|
| MD5 |
a446c8f2cda18db76170e5dc63405cef
|
|
| BLAKE2b-256 |
93a88b5a66a8fc10a623ab89cbca87db99b2d2042102b8349960ef84c0bdd9c1
|