Skip to main content

Install

Node 18 or later, Deno, Bun or Cloudflare Workers. Types are included. Then set your key:
Server-side only. Do not import this client in code that runs in a browser or a React Native app: the key would travel with it.

Quickstart

Usage

Text to speech

The key needs the converse scope.

Errors

Every error is a NamuError, with a class per status (the same as the Python library):

Retries and timeouts

Network errors, 429 rate_limited and 502/503/504 are retried up to 3 times (Retry-After, or 1, 2, 4 seconds); quota_exceeded and other 4xx never are. The default timeout is 5 minutes.

In an Express server

Configuration

Every response is typed: Transcription, Translation, ConverseTurn, Usage, VoiceInfo, Model.

Source

The library is open source (Apache 2.0): github.com/namu-ai-lab/namu-sdks. Changes are listed in its changelog.