Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

1.9 KB
Raw Blame
// A ready-to-run demo script for the Audiobook tab — click "Load sample" to drop
// it straight into the editor and hear every capability in one generate: `#`
// chapters, per-character `[voice:…]`, `[pause …]`, the SSML-lite tags
// (`[slow]`/`[fast]`/`[emphasis]`/`[spell]`), and reaction tags. Written as a
// real short story so it sounds good generated AND documents the syntax when read.
export const SAMPLE_AUDIOBOOK_SCRIPT = `# The Lighthouse at Wits' End

[voice:Narrator] The storm had been building for three days, and Mara knew — the way you know your own heartbeat — that tonight the old lamp would be tested. [pause 700ms] She climbed the spiral stair, counting each step out of habit. [slow]One hundred and one. One hundred and two.[/slow] [pause 500ms] At the top, the wind found her.

[voice:Mara] [emphasis]Not tonight.[/emphasis] [pause 400ms] You've flickered for forty years, and you'll hold for one more.

[voice:Narrator] The lamp answered with a cough of light, then steadied. Mara laughed — [laughter] — a short, surprised sound, the kind you make when something old and stubborn does exactly what you hoped.

# Chapter Two — The Radio

[voice:Narrator] Below, the radio crackled. A voice came through the static, fast and frightened.

[voice:Cole] [fast]Lighthouse, this is the Kestrel, we've lost our bearing, repeat, we've lost our bearing —[/fast] [pause 300ms] can anyone hear me?

[voice:Mara] Kestrel, this is Mara. [pause 500ms] Steady now. Give me your call sign, letter by letter.

[voice:Cole] [spell]KESTREL[/spell]. [pause 400ms] We can't see the shore.

[voice:Mara] You don't need to see the shore. [pause 600ms] You need to see me. [pause 800ms] Look for the light.

[voice:Narrator] And out beyond the black water, a small boat turned — [pause 500ms] slowly, then surely — toward a single, patient beam. [sigh] [pause 400ms] Some nights, that is the whole of the job: to be the thing that does not go out.
`;