v0.1.0
SonusLab SDK
Clip audio, generate speech, and clone voices — all from one package.
bun add sonuslabQuick example
import { SonusLab } from 'sonuslab'
const sonus = new SonusLab('sl_live_...')
const { clip, error } = await sonus.clips.create({
url: 'https://example.com/episode.mp3',
start: 0,
end: 10,
name: 'intro',
})
if (error) throw error
console.log(clip.audioUrl)Capabilities
Audio Clips
Extract audio clips from 16 supported platforms.
Learn more
Text to Speech
Generate natural speech from text with multiple providers.
Learn more
Voice Cloning
Create custom voice clones from audio samples.
Learn more
Authentication
All requests require an API key. Generate one from your dashboard.
import { SonusLab } from 'sonuslab'
const sonus = new SonusLab('sl_live_...')
const client = new SonusLab({
apiKey: 'sl_live_...',
baseUrl: 'https://api.sonuslab.dev',
})API key format
Keys start with
sl_live_ and are shown only once at creation. Store them securely — you can't retrieve a key after it's been created.