Voice Cloner
Upload an audio sample, pick a target voice to clone and download the generated audio.
- The HTML/JS here is a frontend only. It expects two backend endpoints:
GET /api/voices
— returns JSON list of available voices:[{id, name, description}]
POST /api/clone
— acceptsmultipart/form-data
with fields:file
(audio),voiceId
,filename
(optional). Returns JSON:{ downloadUrl: '/generated/abc.wav' }
or directly returns the audio bytes.
- Do NOT ship API keys in client-side code. Your server should keep keys and call the voice-cloning provider (ElevenLabs, Google TTS, or open-source model) securely.