Create realistic, human-like speech and transcribe audio with a unified API that works with leading AI providers like OpenAI, ElevenLabs and AssemblyAI.
npm i orate
Plug and play your favorite AI provider
Text to speech
Convert your text into lifelike speech using our simple API that integrates seamlessly with many leading AI providers.
import { speak } from 'orate';
import { elevenlabs } from 'orate/elevenlabs';
const speech = await speak({
model: elevenlabs.tts('multilingual_v2', 'aria'),
prompt: 'Friends, Romans, countrymen, lend me your ears;'
});
Speech to text
Transform spoken words into meaningful text with unparalleled accuracy, speed and reliability; powered by leading AI providers.
import { transcribe } from 'orate';
import { assembly } from 'orate/assembly';
const text = await transcribe({
model: assembly.stt('nano'),
audio: await fetch('/audio.wav').then((res) => res.arrayBuffer()),
});
Install and use in seconds
Install Orate with your favorite package manager and start speaking and transcribing audio in seconds.
npm i orate