Text to speak
{text.length.toLocaleString()} / 1,000 characters
Model
{#if modelDropdownOpen}
{#each models as model}
{/each}
{/if}
~$0.025 per generation • Billing ⤴
Voice
L
Lily
P
Pirate
🎤
Your cloned voice
🎤
Clone your voice
None
More
More stable
More variable
{#if showLoginPrompt}
(showLoginPrompt = false)}
class="absolute top-2 right-2 text-gray-400 hover:text-gray-600 transition-colors"
aria-label="Dismiss"
>
{/if}
(mode = 'api')}
>
API
(mode = 'local')}
>
Local
Copy all
Deploy as Space
copyToClipboard(setupCode)}
class="p-1 hover:bg-blue-100 rounded transition-colors"
title="Copy setup code"
>
copyToClipboard(pythonCode)}
class="p-1 hover:bg-amber-100 rounded transition-colors"
title="Copy Python code"
>
{#if audioUrl}
Download
{#if isPlaying}
{:else}
{/if}
{#if audioUrl}
{/if}
{/if}
Hugging Face PRO
Sign in to with your Hugging Face PRO account to get started with $2 of free API credits per month. You can add a billing method for additional pay-as-you-go usage ⤴
Results & Live Documentation
The code below will update as you adjust the UI ✨
Install in Terminal
{#key codeUpdateCounter}
{@html Prism.highlight(setupCode, Prism.languages.bash, 'bash')}
{/key}
Python Code
Live
{#key codeUpdateCounter}
{@html Prism.highlight(pythonCode, Prism.languages.python, 'python')}
{/key}
Generated Audio
{#if generationTime > 0 && mode !== 'local'}
(took {generationTime.toFixed(1)}s)
{/if}
{audioTitle}
{selectedVoice} • {formatTime(duration)}
{formatTime(currentTime)}
{formatTime(duration)}