ABR SDK
Python bindings for the Applied Brain Research on-device speech SDK: low-latency automatic speech recognition (ASR) and text-to-speech (TTS) that run entirely on the local device, with no network calls at inference time.
This package does not contain the speech models or the native engine; it loads an ABR SDK application package that you obtain separately and drives it through a small, Pythonic API.
Full documentation: https://docs.appliedbrainresearch.com/sdk Customer portal with application packages: https://dev.appliedbrainresearch.com
Installation
Use any of the following to install abr-sdk and incorporate it into your
project.
pip install abr-sdk
uv add abr-sdk
The package is dependency-free and supports Python 3.10+. To run it you also need an ABR SDK application package for your platform and a license, both provided by Applied Brain Research.
Quickstart
Activate the library once per device. This is the only step that needs network access; inference is fully offline:
abr-sdk activate path/to/library.so --key-file license.key
Recognize speech from 16 kHz mono signed-16-bit little-endian PCM. A chunk may replace trailing text, so apply each one to a running buffer:
from abr_sdk.asr import Asr, AsrChunk
buf = bytearray()
def on_chunk(chunk: AsrChunk) -> None:
chunk.update(buf) # apply correction in place
print(buf.decode("utf-8"))
with Asr("path/to/libasr.so") as asr:
while (data := audio_source.read(3200)): # ~100 ms of PCM
asr.push(data, on_chunk=on_chunk)
asr.wait_for_completion() # flush and wait for final chunks
Synthesize speech to 16 kHz mono signed-16-bit little-endian PCM:
from abr_sdk.tts import Tts
with Tts("path/to/libtts.so") as tts:
tts.push(b"Hello from Applied Brain Research.", on_pcm=audio_sink.write)
tts.wait_for_completion()
See the full documentation for activation options, full end-to-end examples, and the complete API.
License
Proprietary. Copyright (c) Applied Brain Research. Use of this package and the ABR SDK libraries it loads is governed by your agreement with Applied Brain Research.
Release files for abr-sdk 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| abr_sdk-0.3.1.tar.gz | 39.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abr_sdk-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.7 kB
Release files / abr_sdk-0.3.1.tar.gz
| Download URL | abr_sdk-0.3.1.tar.gz |
|---|---|
| Size | 39.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40f630c98e9432d26f1eb33dc82ec7e2e8d8ab54c471df4d6c050d3850cfd62b
|
|
BLAKE2b-256 checksum How to use checksums |
0415d357a3f00ba2ba5c4820ba0efbdb10db35ade67df4c3877fe339e9abce58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / abr_sdk-0.3.1-py3-none-any.whl
| Download URL | abr_sdk-0.3.1-py3-none-any.whl |
|---|---|
| Size | 46.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a68999abc83575a22bb6ae6339915ac5cdad3af13c7ecb43a5f13960ab640ca4
|
|
BLAKE2b-256 checksum How to use checksums |
19e1c03978ed00cdc468b31f7cdea674341c4609fcc16840310ae16e0fdffeb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|