VoiceRouter

VoiceRouter SDK Documentation

Complete documentation for the VoiceRouter TypeScript SDK - a provider-agnostic transcription SDK

VoiceRouter SDK Documentation

VoiceRouter is a provider-agnostic TypeScript SDK that provides a unified interface for voice transcription services. Switch between providers like Gladia, Deepgram, Assembly AI, and more without changing your code.

Quick Start

npm install voice-router-dev
pnpm add voice-router-dev
yarn add voice-router-dev
bun add voice-router-dev
import { createRouter } from "voice-router-dev";

const router = createRouter({
  provider: "gladia", // or "deepgram", "assemblyai", etc.
  apiKey: process.env.TRANSCRIPTION_API_KEY,
});

const transcript = await router.transcribe({
  audio: audioBuffer,
  language: "en",
});

Documentation Sections

Transcription API

The Transcription API provides a unified interface for all transcription providers with streaming support.

Features

  • Provider Agnostic: Switch transcription providers without code changes
  • Type-safe API: Full TypeScript support with intelligent type inference
  • Unified Interface: Single SDK for Gladia, Deepgram, Assembly AI, and more
  • Resilient by Design: Built-in failover support for zero-downtime operations
  • Streaming Support: Real-time transcription with unified streaming API

Supported Providers

  • Gladia
  • Deepgram
  • Assembly AI
  • OpenAI Whisper
  • Speechmatics
  • Google Speech
  • Azure Speech

See Also

Looking for meeting recording? Check out the companion SDK:

Need Help?

On this page