One-liner clone
Pass a reference WAV and the text to synthesize. Get a buffer back.
One-liner clone
Pass a reference WAV and the text to synthesize. Get a buffer back.
Manual job flow
Submit, poll, and download separately when you need finer control over a fleet of jobs.
Minute-based quotas
Track how many voice minutes are left on your API key with client.getUsage().
Typed errors
AuthenticationError, QuotaExceededError, JobFailedError, JobTimeoutError — discriminate cleanly.
import { VyonicaClient } from 'vyonica';import fs from 'fs';
const client = new VyonicaClient({ apiKey: 'nvsk_...' });const audio = await client.clone( fs.readFileSync('reference.wav'), { text: 'Hello world', language: 'en' });fs.writeFileSync('output.wav', audio);