Back to Home

API Documentation

Integrate 1Voice.ai's powerful translation capabilities into your applications.

Quick Start

Installation
npm install @1voice/sdk

Initialize the Client

import { OneVoice } from '@1voice/sdk';

const client = new OneVoice({
  apiKey: process.env.ONEVOICE_API_KEY
});

Start a Translation Session

const session = await client.createSession({
  sourceLanguage: 'en',
  targetLanguage: 'es',
  voiceCloning: true
});

session.on('translation', (result) => {
  console.log(result.translatedText);
  console.log(result.audioUrl);
});

await session.start();

REST API Endpoints

POST/v1/sessions

Create a new translation session

GET/v1/sessions/:id

Get session details and status

POST/v1/translate

Translate audio in real-time

GET/v1/languages

List all supported languages

Need Help?

Our developer support team is here to help you integrate.

Contact Support