{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "swivid-f5-tts--generate-speech-from-the-command-line-with-f5-tts",
 "repo": "SWivid/F5-TTS",
 "repo_url": "https://github.com/SWivid/F5-TTS",
 "repo_slug": "swivid-f5-tts",
 "title": "Generate speech in a reference voice from the CLI",
 "page_title": "How to generate speech in a reference voice from the CLI with F5 TTS",
 "summary": "Install the package and run one command with your reference audio and the text you want spoken.",
 "who": "A developer adding narration to a script or a build pipeline.",
 "problem": "Hosted TTS costs per character and sends your text to someone else.",
 "outcome": "An audio file speaking your text in the reference voice.",
 "steps": [
  "Create an environment with `conda create -n f5-tts python=3.11` and `conda activate f5-tts`, then install FFmpeg with `conda install ffmpeg`",
  "Install PyTorch and torchaudio for your device as the README lists, then install the package with `pip install f5-tts`",
  "Run `f5-tts_infer-cli --model F5TTS_v1_Base` with `--ref_audio`, `--ref_text` and `--gen_text` set to your clip, its transcript and your text",
  "Leave --ref_text \"\" to have an ASR model transcribe the clip instead, at the cost of extra GPU memory"
 ],
 "agent_prompt": "Using SWivid/F5-TTS, set up the environment, install `pip install f5-tts` and run f5-tts_infer-cli with my reference clip and transcript to read <my script>, saving the audio.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Read the detailed inference guidance linked in the README before tuning quality.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "",
 "requirements": [
  "Python 3.10 or newer, for example a conda env created with `conda create -n f5-tts python=3.11`",
  "PyTorch and torchaudio matched to your device, plus FFmpeg",
  "A reference WAV clip of the voice you want, and its transcript if you do not want ASR to transcribe it",
  "A GPU for comfortable speed; the published benchmarks use a single L20"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "voice-cloning",
   "notice": "Only clone a voice you have permission to use."
  },
  {
   "tag": "platform",
   "notice": "The pre-trained models are licensed CC-BY-NC because of the Emilia training data, while the code is MIT."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/swivid-f5-tts/generate-speech-from-the-command-line-with-f5-tts/",
 "md": "https://dedupedai.com/use-cases/swivid-f5-tts/generate-speech-from-the-command-line-with-f5-tts/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/swivid-f5-tts--generate-speech-from-the-command-line-with-f5-tts.json",
 "api_version": "v1"
}
