REST APIs, official SDKs, and WebSocket streaming for speech transcription, translation, text-to-speech, phrase matching, and conversational agents across 20+ African languages.
A comprehensive REST API for every speech intelligence capability. Authenticate with a bearer token and start building in minutes.
/v1/speech/transcribeConvert audio speech to text with speaker labels and timestamps. Supports 20+ African languages.
/v1/speech/translateTranslate spoken audio from one language to another in real time or from a recorded file.
/v1/tts/generateGenerate natural-sounding speech from text using authentic African voices.
/v1/phrase/matchMatch transcribed speech against your phrase library for intent detection and command matching.
/v1/agent/converseSend a message to a VoiceMaster agent and receive a conversational response.
/v1/phrase/libraryRetrieve your organization phrase library with fingerprints and categories.
Get started with the phrase match API in your language of choice. Copy, paste, and run.
import { VoiceMaster } from '@voicemaster/sdk';
const vm = new VoiceMaster({ apiKey: process.env.VM_API_KEY });
const result = await vm.phrase.match({
text: 'Ete sen?',
language: 'twi',
threshold: 0.85,
});
console.log(result.matches);
// [{ phrase_id: '1', text: 'Ete sen?', confidence: 0.94, category: 'Greetings' }]First-class SDKs for every major language and framework. Install with a single command.
npm install @voicemaster/sdknpm install @voicemaster/sdkpip install voicemastercomposer require voicemaster/sdkcomposer require voicemaster/laravelflutter pub add voicemasterimplementation "ai.voicemaster:sdk:1.0.0"implementation "ai.voicemaster:sdk:1.0.0"dotnet add package VoiceMaster.SDKcurl https://api.voicemaster.ai/v1/...For real-time use cases like live interpretation, meeting transcription, and conversational agents, VoiceMaster offers a WebSocket streaming API. Stream audio in chunks and receive incremental transcription, translation, and phrase match events as they happen — with sub-second latency.
const ws = new WebSocket('wss://stream.voicemaster.ai/v1/speech');
ws.onopen = () => {
ws.send(JSON.stringify({
action: 'start',
language: 'twi',
translate_to: 'english',
}));
// stream audio chunks...
ws.send(audioChunk);
};
ws.onmessage = (e) => {
const msg = JSON.parse(e.data);
// { type: 'transcript', text: 'Ete sen?', is_final: true }
// { type: 'translation', text: 'How are you?' }
// { type: 'phrase_match', phrase_id: '1', confidence: 0.94 }
};Subscribe to events and receive HTTP callbacks at your endpoint. All webhooks are signed with HMAC for verification.
phrase.matchedFired when a transcribed phrase matches a library entry.
conversation.completedFired when an agent conversation finishes.
harvest.completedFired when an audio/video harvest job finishes processing.
agent.escalatedFired when an agent escalates a conversation to a human.
statement.confirmedFired when a witness confirms a recorded statement.
tts.readyFired when a text-to-speech generation job completes.