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.0.tar.gz (49.3 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.0-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: abr_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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.0.tar.gz
Algorithm Hash digest
SHA256 aaf651ae4ea9ebbd0b5a851041d798f184efa4f597db27f839e7f9540814c022
MD5 d389f3a1bf0c76a381ecd6f00adc4dd9
BLAKE2b-256 dd5b6a51a4c2aef37501ed87565551da5b3fe48df3fe3fd45c107ed7062ad202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: abr_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afb5f9f3ee6157b46a06b18f826dc8668dbc2cceaab1e380030030fee1628e86
MD5 d3dbc1ae02d8a29c7163055f4c4b8610
BLAKE2b-256 ab552099eaad49541fcc5311505e796abbb4fdcc53b70839ee3ab4bb07dfb85c

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