voiceclone
v0.0.1
Published
Universal voice cloning SDK - unified API for ElevenLabs, OpenAI TTS, Fish Audio and more.
Maintainers
Readme
voiceclone
Universal voice cloning SDK for Node.js.
Unified API for ElevenLabs, OpenAI TTS, Fish Audio and more.
🚧 Under active development. Star the repo to stay updated!
Planned Features
- Voice Cloning — Clone voices from audio samples
- Text-to-Speech — Generate speech with cloned or preset voices
- Multi-Provider — Switch between providers with one line of code
- Streaming — Real-time audio streaming support
- TypeScript — Full type support out of the box
Install
npm install voicecloneQuick Start (Preview)
import { VoiceClone } from "voiceclone";
const vc = new VoiceClone({
provider: "elevenlabs",
apiKey: process.env.ELEVENLABS_API_KEY,
});
// Clone a voice from audio samples
const voice = await vc.clone({
name: "My Voice",
files: ["./sample1.mp3", "./sample2.mp3"],
});
// Generate speech with the cloned voice
const audio = await vc.synthesize({
voiceId: voice.id,
text: "Hello from my cloned voice!",
});License
MIT
