onnx library

ONNX Runtime backend for RunAnywhere Flutter SDK.

This module provides STT, TTS, and VAD capabilities via ONNX Runtime. It is a thin wrapper that registers the C++ backend with the service registry.

Architecture (matches Swift/Kotlin)

The C++ backend (RABackendONNX) handles all business logic:

  • Service provider registration
  • Model loading and inference for STT/TTS/VAD
  • Streaming transcription

This Dart module just:

  1. Calls rac_backend_onnx_register() to register the backend
  2. The core SDK handles all operations via component APIs

Quick Start

import 'package:runanywhere_onnx/runanywhere_onnx.dart';

// Register the module (matches Swift: ONNX.register())
await Onnx.register();

// Register models through RunAnywhere.models.
// The commons registry/router owns framework selection and routing.

Classes

Onnx
ONNX Runtime module for STT, TTS, and VAD services.