Repository navigation
addisai 0.3.0 — real-time voice streaming
Addis AI SDK 0.3.0 enables streaming speech through the existing public Voice API.
npm publication pending: the source and built SDK are available in this GitHub release, but npm still serves 0.2.0. The publishing workflow passes validation and is awaiting valid npm publish authorization.
voice.stream()andtextToSpeech.stream()yield MP3 phrases and expose final clip and usage metadata.realtime.createSession()andrealtime.connect()support persistent voice WebSocket sessions. Browsers can useconnectRealtime()with a scoped ticket issued by their application server.- Helpers support text buffering, cancellation, repeated spoken turns, and stable request IDs for recovery without a second charge. Started synthesis still completes billing after cancellation or disconnect.
- Voice language types now match the catalog; chat, transcription, and translation types include Tigrigna. Their request logic and billing rates are unchanged.
- Node 18 WebSocket support adds
ws8.22.0. The real-time voice guide covers Amharic, Afaan Oromo, and Tigrigna.
Install:
npm install https://github.com/Addis-AI-Org/addisai-js/releases/download/v0.3.0/addisai-0.3.0.tgzAfter npm publication completes, use npm install addisai@0.3.0.
Validation: 32 tests, typecheck, and ESM/CJS/declaration builds; CI on Node 18, 20, and 22. Shipped dependencies have zero reported vulnerabilities. Six existing development-tool audit findings remain in the repository. A live test against the shared public voice protocol verified a 0.084 ETB deduction for 1.008 seconds of audio, one ledger charge, and no additional charge for same-ID clip recovery.
This release updates the SDK and does not deploy changes to the gateway or wallet architecture.