Blog

ElevenLabs API is Now Available in Puter.js

On this page

We're excited to announce that Puter.js now supports ElevenLabs, giving developers free, scalable access to the world's most advanced text-to-speech and speech-to-speech (voice conversion) technology.

ElevenLabs: Premium Voice Synthesis

ElevenLabs brings professional-grade voice synthesis to Puter.js with multiple powerful capabilities:

  • Natural Voice Generation: Industry-leading text-to-speech with lifelike prosody and emotion
  • Multilingual Support: High-quality voice synthesis across 74 languages
  • Voice Conversion: Transform any audio recording into a different voice using speech-to-speech
  • Multiple Models: Choose from optimized models for quality (Multilingual V2), speed (Flash V2.5), or ultra-low latency (Turbo V2.5)
  • Flexible Formats: Output audio in various formats from standard MP3 to raw PCM

Through Puter.js, you get all of this completely free, no registration required, no API keys.

// Generate natural speech with ElevenLabs
puter.ai.txt2speech("Hello world! This is ElevenLabs text-to-speech.", {
    provider: "elevenlabs",
    voice: "21m00Tcm4TlvDq8ikWAM",
    model: "eleven_multilingual_v2"
}).then(audio => {
    audio.play();
});

Voice Conversion Made Easy

In this update we also bring you a new Puter.js function called puter.ai.speech2speech(), which allows you to convert an audio recording to a different voice, with ElevenLabs beign the first provider to support this functionality in Puter.js.

ElevenLabs' speech-to-speech technology lets you transform existing audio into different voices—perfect for content localization, voice dubbing, or creative audio projects.

// Convert an audio recording to a different voice
puter.ai.speech2speech("https://assets.puter.site/example.mp3", {
    voice: "21m00Tcm4TlvDq8ikWAM",
    model: "eleven_multilingual_sts_v2"
}).then(audio => {
    audio.play();
});

Get Started Now

Just add one script tag to your HTML file, either in the <head> or <body> section:

<script src="https://js.puter.com/v2/"></script>

That's it. No sign-ups, no API keys, no server setup. Start building voice-powered applications immediately with professional-quality synthesis. To learn more, check out the ElevenLabs Tutorial and the Puter.js Documentation.

Learn more:

Free, Serverless AI and Cloud

Start creating powerful web applications with Puter.js in seconds!

Get Started Now

Read the Docs Try the Playground