Skip to main content

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.

Download files

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

Source Distribution

abr_sdk-0.2.1.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

abr_sdk-0.2.1-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file abr_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: abr_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for abr_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2d2c278ad725cbb659253a1795b8e26e9e7f9077b7ddc93fca39ce31c65227c5
MD5 fc7ae53f6050a9c36c70cef53a2e47b3
BLAKE2b-256 1be0f8df4374eec72c3d2347501643dfe560c398474228d299429072015aaffc

See more details on using hashes here.

File details

Details for the file abr_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: abr_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for abr_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc61f3281ea8ea2f22cc21558fd762eab34f139940201ff9f36dda9774ef75a7
MD5 197ab20303bcb54e9ef418345588453d
BLAKE2b-256 dd006d6314d97a6067847b2f025bd6d4b20ac574cc980758ef46ae109857d1ca

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