{
 "slug": "speecht5-tts",
 "name": "SpeechT5 TTS",
 "author": "Microsoft",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "MIT-licensed English TTS fine-tuned on LibriTTS; the voice is set by a speaker x-vector embedding.",
 "category": {
  "slug": "voiceover",
  "name": "Voiceover (text-to-speech)"
 },
 "tags": [
  "Open source"
 ],
 "styles": [],
 "logo_url": "https://agentgid.com/media/avatars/microsoft.png",
 "logo_letter": "S",
 "links": {
  "repo": "https://github.com/microsoft/SpeechT5",
  "website": "https://huggingface.co/microsoft/speecht5_tts",
  "api_docs": null,
  "open_model": null
 },
 "preview": {
  "kind": "image_grid",
  "src": "https://agentgid.com/assets/speecht5-tts/demo.jpg",
  "alt": "The waveforms of two short sentences spoken by SpeechT5 on a Mac CPU, each with a different speaker voice from the CMU ARCTIC voice set.",
  "caption": "Made by AgentGid with microsoft/speecht5_tts + microsoft/speecht5_hifigan with transformers 5.23.0, torch 2.15.0, datasets 5.2.0 (Python 3.12, CPU). The model and vocoder are MIT licensed and the speaker codes come from the MIT-licensed Matthijs/cmu-arctic-xvectors set; the sentences and the waveform picture are ours."
 },
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Open weights, free to download; self-hosted.",
   "source": {
    "label": "huggingface.co/microsoft/speecht5_tts",
    "url": "https://huggingface.co/microsoft/speecht5_tts"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Yes",
   "status": "yes",
   "sub": "MIT",
   "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction",
   "note": "MIT allows use in paid products without a fee.",
   "source": {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": "Keep the notice in code copies",
   "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
   "note": "No credit on screen. Keep the license notice inside the code you ship.",
   "source": {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "Download",
   "status": "info",
   "sub": "Files by hand",
   "quote": null,
   "note": "There is no package or API. Files are downloaded by hand from the official site.",
   "source": {
    "label": "github.com/microsoft/SpeechT5",
    "url": "https://github.com/microsoft/SpeechT5"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "MIT",
  "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE",
  "summary": "License, so you may use, change and sell products with it. Keep the copyright and license notice if you share the model files. The license says nothing special about the audio you make.",
  "pages_read": 1,
  "rules": [
   "Keep the MIT copyright and permission notice when you redistribute the model."
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "Yes",
    "status": "yes",
    "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "Can ship inside your app",
    "status": "yes",
    "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "With conditions",
    "status": "cond",
    "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
    },
    "note": "You may share or re-host the weights with the MIT notice kept."
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-10-25",
  "commercial_use_page": "https://agentgid.com/assets/speecht5-tts/commercial-use/"
 },
 "overview": {
  "heading": "SpeechT5 TTS: free text-to-speech model from Microsoft",
  "body": "SpeechT5 TTS is a free speech model from Microsoft that turns short written text into spoken audio. It runs on your own computer through the Hugging Face Transformers library, so no account or paid service is needed. The voice comes from a voice code you choose, and you may use it in paid products under the MIT license."
 },
 "uses": [
  {
   "title": "Spoken messages in an app",
   "text": "Turn short lines like \"Your order has shipped\" into a sound file your app or website can play, made on your own server instead of a paid voice service.",
   "idea": false,
   "image": "https://agentgid.com/assets/speecht5-tts/demo.jpg"
  },
  {
   "title": "A different voice per character",
   "text": "Give each character, bot or announcement its own voice by passing a different voice code, for example in a game, a story app or a language lesson.",
   "idea": false,
   "image": null
  },
  {
   "title": "Speech with no cloud service",
   "text": "Make spoken audio on your own machine, for example for a private tool or an offline kiosk, so the text never goes to an outside company.",
   "idea": false,
   "image": null
  },
  {
   "title": "Teach it a new language or voice",
   "text": "Train the model further on your own recordings to get a new language or a new voice. The model page links a ready notebook for this.",
   "idea": false,
   "image": null
  },
  {
   "title": "Audio for short tips and notes",
   "text": "Add a listen button to short help tips, flash cards or product notes, made once and stored as small audio files.",
   "idea": true,
   "image": null
  },
  {
   "title": "Placeholder voice for prototypes",
   "text": "Try out a talking assistant or a voice menu with a free voice before paying for a more natural one.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "In a Python 3.11+ virtual environment, install transformers, sentencepiece, datasets, soundfile and torch, load microsoft/speecht5_tts with the microsoft/speecht5_hifigan vocoder, read speaker x-vector 7306 from Matthijs/cmu-arctic-xvectors with revision=\"refs/convert/parquet\", and save each sentence as a 16 kHz WAV.",
  "install": null,
  "install_note": null,
  "code": [
   {
    "tab": "Step 1",
    "intro": "Install the libraries the model page lists (Transformers, sentencepiece and the datasets library for the voice codes), plus PyTorch.",
    "source": "pip install --upgrade pip\npip install --upgrade transformers sentencepiece datasets[audio]"
   },
   {
    "tab": "Step 2",
    "intro": "Load the model, the separate HiFi-GAN vocoder and a voice code, then turn text into a 16 kHz waveform.",
    "source": "processor = SpeechT5Processor.from_pretrained(\"microsoft/speecht5_tts\")\nmodel = SpeechT5ForTextToSpeech.from_pretrained(\"microsoft/speecht5_tts\")\nvocoder = SpeechT5HifiGan.from_pretrained(\"microsoft/speecht5_hifigan\")\n\ninputs = processor(text=\"Hello, my dog is cute.\", return_tensors=\"pt\")"
   },
   {
    "tab": "Step 3",
    "intro": "Save the result as a WAV file at 16 kHz.",
    "source": "sf.write(\"speech.wav\", speech.numpy(), samplerate=16000)"
   }
  ]
 },
 "mistakes": [
  {
   "dont": "load_dataset(\"Matthijs/cmu-arctic-xvectors\", split=\"validation\") exactly as on the model page",
   "fix": "load_dataset(\"Matthijs/cmu-arctic-xvectors\", revision=\"refs/convert/parquet\", split=\"validation\")",
   "why": "The voice set still uses a loading script, and datasets 4.0 removed scripts; in our run it stopped with \"Dataset scripts are no longer supported\".",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Copying the pipeline example from the model page as is",
   "fix": "Add import torch at the top",
   "why": "The example calls torch.tensor without importing torch, so it fails with a NameError.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "model.generate_speech(input_ids, speaker_embeddings) and saving the result as audio",
   "fix": "Pass vocoder=vocoder (SpeechT5HifiGan from microsoft/speecht5_hifigan) to get a waveform",
   "why": "Without the vocoder the model returns a spectrogram, not sound.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Saving the waveform at 22050 or 44100 Hz",
   "fix": "sf.write(path, speech.numpy(), samplerate=16000)",
   "why": "The output is always 16 kHz; another rate makes the voice too fast or too slow.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Sending a whole article in one call",
   "fix": "Split long text into sentences, make one clip per sentence and join them",
   "why": "The model's text input has 600 positions (characters), so long text does not fit in one call.",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": false,
  "self_serve_text": null,
  "install": null,
  "repo": "https://github.com/microsoft/SpeechT5",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_files": null,
  "formats": [],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": "Speech made with SpeechT5 (Microsoft, MIT License)",
  "rules_text": "- SpeechT5 TTS (Voiceover (text-to-speech)). MIT-licensed English TTS fine-tuned on LibriTTS; the voice is set by a speaker x-vector embedding. Price: free; commercial use OK; no credit needed.\n  Connect: download from https://huggingface.co/microsoft/speecht5_tts (no API).\n  Rule: Keep the MIT copyright and permission notice when you redistribute the model.\n  License: https://github.com/microsoft/SpeechT5/blob/main/LICENSE (checked 2026-10-25; details: https://agentgid.com/assets/speecht5-tts/)",
  "agent_md": "https://agentgid.com/assets/speecht5-tts/agent.md",
  "card_json": "https://agentgid.com/assets/speecht5-tts/card.json"
 },
 "popularity": {
  "gid_score": 12,
  "stars": 1448,
  "downloads_7d": null,
  "downloads_7d_label": null,
  "downloads_change_4w_pct": null,
  "eco": null,
  "package": null,
  "repo": "microsoft/SpeechT5",
  "agent_projects": null,
  "agent_projects_total": null,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [],
   "stars": [
    [
     "2026-11-07",
     1451
    ],
    [
     "2026-11-08",
     1451
    ],
    [
     "2026-11-09",
     1451
    ],
    [
     "2026-11-10",
     1451
    ],
    [
     "2026-11-11",
     1451
    ],
    [
     "2026-11-12",
     1450
    ],
    [
     "2026-11-13",
     1449
    ],
    [
     "2026-11-14",
     1449
    ],
    [
     "2026-11-15",
     1449
    ],
    [
     "2026-11-16",
     1449
    ],
    [
     "2026-11-17",
     1449
    ],
    [
     "2026-11-18",
     1449
    ],
    [
     "2026-11-19",
     1449
    ],
    [
     "2026-11-20",
     1448
    ],
    [
     "2026-11-21",
     1448
    ],
    [
     "2026-11-22",
     1447
    ],
    [
     "2026-11-23",
     1447
    ],
    [
     "2026-11-24",
     1447
    ],
    [
     "2026-11-25",
     1447
    ],
    [
     "2026-11-26",
     1448
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-26"
 },
 "alternatives": [
  {
   "slug": "speecht5-tts",
   "name": "SpeechT5 TTS",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "chatterbox",
   "name": "Chatterbox",
   "why": "Pick Chatterbox for an MIT model that can copy a voice from a short sample in 23 languages, with a built-in watermark.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "PyPI"
  },
  {
   "slug": "piper",
   "name": "Piper",
   "why": "Pick Piper for a fast local speech engine with many ready voices, each under its own license.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "PyPI"
  },
  {
   "slug": "mms-tts",
   "name": "Meta MMS-TTS",
   "why": "Pick Meta MMS-TTS when you need speech in one of over 1,100 languages, with one small model per language.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Non-commercial",
    "status": "no"
   },
   "access": "Download"
  },
  {
   "slug": "voicestudio",
   "name": "VoiceStudio",
   "why": "Local desktop app for voice cloning, voice design, video dubbing, dictation and transcription in 646 languages, with a local API and an MCP server for agents.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "MCP, API"
  },
  {
   "slug": "vibevoice",
   "name": "VibeVoice",
   "why": "Long-form multi-speaker TTS for podcast-style dialogue, up to 90 minutes and 4 speakers, in English and Chinese.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "Download"
  }
 ],
 "faq": [
  {
   "q": "Can I use the generated speech in a paid app?",
   "a": "The model is MIT licensed, which allows commercial use; the license does not add rules for the audio you make."
  },
  {
   "q": "How do I change the voice?",
   "a": "Pass a different speaker embedding, a list of 512 numbers that describes a voice; the example uses voice 7306 from the CMU ARCTIC set."
  },
  {
   "q": "What audio format comes out?",
   "a": "A mono waveform at 16 kHz, which you save as WAV with soundfile."
  },
  {
   "q": "Can it speak other languages?",
   "a": "Not out of the box as far as the model page says; it links a notebook to train it on a new language or dataset."
  },
  {
   "q": "Is there an online demo?",
   "a": "Yes, the model page links a demo on Hugging Face Spaces."
  }
 ],
 "at_a_glance": {
  "latest_version": "5.23.0",
  "last_commit": "2024-04-24",
  "runtime": "Python 3.11+ for transformers 5.23.0; our run also used torch 2.15.0, datasets 5.2.0, sentencepiece and soundfile. The model needs the separate microsoft/speecht5_hifigan vocoder.",
  "key_needed": false
 },
 "good_to_know": [
  "You need two downloads plus a voice code. The speech model alone is a file of about 585 MB, and a separate vocoder turns its output into sound.",
  "The voice depends on the voice code you pass. The model page uses one from a public voice set, and any code of the same kind should work.",
  "It was trained on the LibriTTS recordings and the model page does not list languages. For another language you train it further yourself.",
  "The same text can sound a little different on each run, because the model adds small random changes on purpose.",
  "The model page was written by Hugging Face, not by the Microsoft team, and its sections on risks and limits are empty."
 ],
 "stack_snippets": [],
 "claims": [],
 "checked": {
  "license_read": "2026-10-25",
  "overview_checked": "2026-11-19",
  "numbers_updated": "2026-11-26",
  "sources": [
   {
    "label": "huggingface.co/microsoft/speecht5_tts",
    "url": "https://huggingface.co/microsoft/speecht5_tts"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/microsoft/speecht5_tts/raw/main/README.md"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/microsoft/speecht5_tts/raw/main/config.json"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/api/models/microsoft/speecht5_tts"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/api/models/microsoft/speecht5_tts/tree/main"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/microsoft/speecht5_hifigan/raw/main/README.md"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/api/datasets/Matthijs/cmu-arctic-xvectors"
   },
   {
    "label": "huggingface.co/blog/speecht5",
    "url": "https://huggingface.co/blog/speecht5"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/docs/transformers/model_doc/speecht5"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/microsoft/SpeechT5/blob/main/LICENSE"
   },
   {
    "label": "README on GitHub",
    "url": "https://github.com/microsoft/SpeechT5/blob/main/README.md"
   },
   {
    "label": "github.com/huggingface/datasets/releases/tag/4.0.0",
    "url": "https://github.com/huggingface/datasets/releases/tag/4.0.0"
   },
   {
    "label": "pypi.org",
    "url": "https://pypi.org/pypi/transformers/5.23.0/json"
   }
  ],
  "unverified": "The license does not address commercial use of generated audio, so youtube is left empty. The Hugging Face page is a Transformers port; the original weights are linked from it (mechanicalsea/speecht5-tts)."
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/speecht5-tts/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
