OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Anira documentation

Anira is a library for integrating neural-network inference into real-time audio applications. It provides model, execution-contract, context, pipeline and handler components, and supports multiple inference engines, including custom engines.

Independent OpenViST project profile, based on linked sources.

Anira documentation — Real-time audio applications using a supported neural inference engine
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Anira when building an audio application that needs neural inference within its processing path and you need documented controls for model configuration, execution planning and process-level inference threads.

Who it is for

  • Developers building real-time audio software that needs neural-network inference.
  • C++ developers integrating an inference pipeline into an audio host.
  • Web developers exploring the documented WebAssembly package for audio applications.

Documented uses

  • Add a neural-network inference stage to an audio-processing pipeline.
  • Configure model, execution contract and process context separately.
  • Prepare an inference handler and inspect its plan and latency before audio processing.
  • Select among supported inference engines for documented model formats.
Before you choose

Requirements & limits

The documentation is in English and describes C++ and WebAssembly integration routes.

  • Choose the engine according to the model format: the guide lists .onnx and .ort for ONNX Runtime, TorchScript formats for LibTorch, .tflite for LiteRT or TensorFlow Lite, and .pte programs for ExecuTorch.
  • LiteRT and TensorFlow Lite are mutually exclusive options for the same runtime; LiteRT is the documented default.
  • Native setup requires CMake 3.18 or later and C++20 for the C++ interface; C headers support C11 and C++17.
  • The documented pre-release has host-only contexts and specified unsupported paths, including asynchronous contracts and device tensors.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up Anira in a CMake C++ project

Add the Anira library to a CMake project using the documented submodule route.

Before you start

  • CMake 3.18 or later; CMake 3.25 for presets.
  • A C++20 compiler for the C++ interface.
  • Anira repository and a model format supported by the selected inference engine.

Steps

  1. Add the Anira repository as a Git submodule at modules/anira.

  2. Add modules/anira as a subdirectory in the project’s CMake configuration.

  3. Link the application target to anira::anira.

  4. If application code directly calls an inference engine, also link its corresponding Anira engine target.

Expected outcome

The CMake target is configured to use Anira; the usage guide covers the subsequent model, contract, context and pipeline stages.

Guide limitations

  • This setup recipe does not cover running a model in an audio callback.
  • Engine availability depends on the Anira build configuration and target platform.
Source-based practical guide

Prepare an inference handler for audio processing

Follow the documented C++ sequence for preparing an Anira handler before audio-thread processing.

Before you start

  • An installed or otherwise integrated Anira C++ library.
  • Model and contract files in the documented formats.
  • A C++20 compiler for anira/anira.hpp.

Steps

  1. Load the model configuration and contract from their files and create a context.

  2. Add the model’s inference stage to a pipeline and construct an inference handler.

  3. Set the host’s block range and sample rate in a hard contract, then prepare the handler off the audio thread.

  4. Inspect the plan report and set host latency from the handler before calling handler.process from the audio callback.

Expected outcome

The documented flow prepares a plan and processes audio through the inference handler; the host can check the plan’s real-time verdict before proceeding.

Guide limitations

  • The guide’s described context is host-only.
  • The listed pre-release does not support asynchronous contracts, device blocks or device tensors in the specified paths.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
Anira documentationAdd a neural-network inference stage to an audio-processing pipeline.The documentation is in English and describes C++ and WebAssembly integration routes.
ErgoCreate a project with separate data-preparation, model and training scripts.CLI
Llama2LangTranslate an instruction dataset into a target language and combine translation checkpoints.The repository is public and identified as open source under the Apache-2.0 license.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 November 2026