Skip to main content
The Audixa Node.js SDK provides a type-safe client for the Audixa text-to-speech API, with full TypeScript support and built-in error handling.

Installation

Quick Start

Configuration

API Reference

startTTS(payload, options?)

Starts an async TTS generation job. Returns immediately with a generation_id.
Parameters: Options:

getStatus(generationId, options?)

Check the status of a generation.
Returns: TTSResponse with status, audio_url, voice_id, model, etc.

generateTTS(payload, options?)

Convenience method: starts TTS and polls until completion. Returns the audio URL.
Additional Options (besides signal, customEndpointSlug):

getVoices(params?, options?)

List available voices with optional filtering.
Parameters:

getHistory(params?, options?)

Retrieve generation history.
Parameters:

TypeScript Types

The SDK exports all types for full type safety:

Key Type Definitions

Error Handling

The SDK provides typed errors for all API failures:

Error Codes

Request Cancellation

Use AbortSignal to cancel in-flight requests:

Custom Endpoints

Route TTS requests through a custom endpoint:

Environment Variables

Set your API key via environment variable instead of passing it directly: