Skip to main content
The Sanas Speech AI SDK is a C++ library that gives your application real-time access to the Sanas cloud speech processing platform. You stream audio in, processed audio comes back — along with optional live transcripts.
This SDK is the C++ counterpart of the Python SDK. It exposes the same class surface (IRemoteSDK, IAudioProcessor, InitParams, AudioParams, ProcessorState, and the result-code enums). This guide uses Language Translation as its worked example throughout, but the core integration pattern — lifecycle, audio format, state handling — is identical for all processing modes.

What the SDK supports

The SDK is a generic processing interface. Depending on your account entitlements (subscription plan), the same API can power three distinct processing modes:

What you get with Language Translation

  • Translated audio returned synchronously in the same call that sends the original audio.
  • Live transcript events for both the source language (what was spoken) and the target language (the translation), delivered asynchronously via callback.
  • The ability to switch source/target languages on an active stream without recreating the connection.

Key concepts

Four concepts cover everything you need to understand before writing your first integration.
One mode per processor. A processor is configured for exactly one processing mode — Language Translation or a named speech model. The mode is set at creation time and cannot be changed (though for LT you can switch the language pair on a live processor using UpdateLanguageConfig).

Architecture

Your application interacts only with the two SDK interfaces — IRemoteSDK and IAudioProcessor. All network communication, authentication, and processing is handled by the SDK and the Sanas cloud.

SDK properties at a glance

Next steps

Installation & Linking

Compile and link against the SDK on Linux, macOS, or Windows.

Quick Start

A complete end-to-end Language Translation program.

Configuration Reference

InitParams, AudioParams, LanguageConfig, and JitterParams.

Glossary

Definitions of SDK terms and concepts.