v1.0: English base model, 590 voices (was TTS-English v2.3)
Browse filesFiles changed (5)
- README.md+20-7
- app.py+2-2
- infer.py+1-1
- tts_english/__init__.py+5-5
- tts_english/__main__.py+1-1
18 unmodified lines19202122232416 unmodified lines4142434445464748495051525354555657585960616263646515 unmodified lines8182838485868718 unmodified lines# mmmhusto TTS English**A 56 M-parameter English text-to-speech model that reads and talks.** Written and trained from scratch, smallenough to read in an afternoon, fast enough for a laptop GPU, and open about everything: code, data, training runs andthe experiments that failed.16 unmodified lines## ListenThe two-voice edition fine-tunes Studio 92 (Cori Samuel) and DailyTalk man. Listen to both voices or download the weights on the [English Duo model card](https://huggingface.co/mmmhusto/TTS-English-Duo).| | Voice 92 (female, default) | Voice 11697 (female) | Voice 8051 (female) ||---|---|---|---|| Reading a story | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/story_92.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/story_11697.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/story_8051.wav"></audio> |The same text in both styles ("Are you kidding me? We missed the train again? Okay, okay, I get it."):| | Reading | Conversational ||---|---|---|| Voice 92 | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/talk_92_reading.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/talk_92_conversational.wav"></audio> || Voice 11697 | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/talk_11697_reading.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/talk_11697_conversational.wav"></audio> |Numbers and fast mode (voice 92):| | ||---|---|| "Dr. Smith will see you at 9:30 on March 3rd; the visit costs $45.50, and the clinic is 2.5 km away." | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/numbers_92.wav"></audio> || The story above in fast mode (`fast=True`, 2 decoder passes instead of 20) | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-English/resolve/main/samples/fast_story_92.wav"></audio> |All clips are exactly what the code below produces with BigVGAN (voice 11697 conversational at `style_scale=1.0`).15 unmodified linesfrom huggingface_hub import snapshot_downloadimport sys, soundfile as sfpath = snapshot_download("mmmhusto/TTS-English")sys.path.insert(0, path)from tts_english import TTS, SAMPLE_RATE18 unmodified lines1920212223242526272829303132333435363716 unmodified lines5455565758596061626364656667686970717273747576777815 unmodified lines94959697989910018 unmodified lines# mmmhusto TTS English## VersionsOne repository, one model line. `main` is always the newest version; every release has a tag.| Version | What changed | Download ||---|---|---|| v1.0 | English base model: 590 voices, two speaking styles, fast mode, voice cloning (internal name v2.3) | `hf download mmmhusto/TTS-husto --revision v1.0` || v2.0 | Fine-tune of v1.0 on two voices: Studio 92 (Cori Samuel) and DailyTalk man | `hf download mmmhusto/TTS-husto --revision v2.0` || v3.0 | Fine-tune of v2.0 that adds Slovak: 5 voices (2 English, 3 Slovak), browser ONNX. Slovak is experimental. | `hf download mmmhusto/TTS-husto --revision v3.0` |**This page describes v1.0.****A 56 M-parameter English text-to-speech model that reads and talks.** Written and trained from scratch, smallenough to read in an afternoon, fast enough for a laptop GPU, and open about everything: code, data, training runs andthe experiments that failed.16 unmodified lines## ListenThe two-voice edition fine-tunes Studio 92 (Cori Samuel) and DailyTalk man. Listen to both voices or download the weights on the [English Duo model card](https://huggingface.co/mmmhusto/TTS-husto/tree/v2.0).| | Voice 92 (female, default) | Voice 11697 (female) | Voice 8051 (female) ||---|---|---|---|| Reading a story | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/story_92.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/story_11697.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/story_8051.wav"></audio> |The same text in both styles ("Are you kidding me? We missed the train again? Okay, okay, I get it."):| | Reading | Conversational ||---|---|---|| Voice 92 | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/talk_92_reading.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/talk_92_conversational.wav"></audio> || Voice 11697 | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/talk_11697_reading.wav"></audio> | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/talk_11697_conversational.wav"></audio> |Numbers and fast mode (voice 92):| | ||---|---|| "Dr. Smith will see you at 9:30 on March 3rd; the visit costs $45.50, and the clinic is 2.5 km away." | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/numbers_92.wav"></audio> || The story above in fast mode (`fast=True`, 2 decoder passes instead of 20) | <audio controls preload="none" src="https://huggingface.co/mmmhusto/TTS-husto/resolve/v1.0/samples/fast_story_92.wav"></audio> |All clips are exactly what the code below produces with BigVGAN (voice 11697 conversational at `style_scale=1.0`).15 unmodified linesfrom huggingface_hub import snapshot_downloadimport sys, soundfile as sfpath = snapshot_download("mmmhusto/TTS-husto", revision="v1.0")sys.path.insert(0, path)from tts_english import TTS, SAMPLE_RATE
12345696 unmodified lines103104105106107108109"""Local page to try the model: type any English text, pick a voice, tune pace and pauses, listen.python app.py --bigvgan BigVGAN | --vocoder vocos [--fast] [--repo mmmhusto/TTS-English] [--port 8790] [--device auto|mps|cuda|cpu]Open http://localhost:8790. Only the Python standard library is needed on top of the model's own requirements."""96 unmodified linesap.add_argument("--fast", action="store_true", help="distilled 2-step decoder, ~10x faster acoustic model")ap.add_argument("--vocoder", default="bigvgan", choices=["bigvgan", "vocos"],help="vocos: fast on a CPU and needs no BigVGAN clone")ap.add_argument("--repo", default="mmmhusto/TTS-English", help="Hub repo or local folder with the weights")ap.add_argument("--port", type=int, default=8790)ap.add_argument("--device", default="auto", help="auto picks cuda, then mps (Apple GPU), then cpu")a = ap.parse_args()12345696 unmodified lines103104105106107108109"""Local page to try the model: type any English text, pick a voice, tune pace and pauses, listen.python app.py --bigvgan BigVGAN | --vocoder vocos [--fast] [--repo mmmhusto/TTS-husto] [--port 8790] [--device auto|mps|cuda|cpu]Open http://localhost:8790. Only the Python standard library is needed on top of the model's own requirements."""96 unmodified linesap.add_argument("--fast", action="store_true", help="distilled 2-step decoder, ~10x faster acoustic model")ap.add_argument("--vocoder", default="bigvgan", choices=["bigvgan", "vocos"],help="vocos: fast on a CPU and needs no BigVGAN clone")ap.add_argument("--repo", default="mmmhusto/TTS-husto", help="Hub repo or local folder with the weights")ap.add_argument("--port", type=int, default=8790)ap.add_argument("--device", default="auto", help="auto picks cuda, then mps (Apple GPU), then cpu")a = ap.parse_args()
12 unmodified lines1314151617181912 unmodified linesap.add_argument("--fast", action="store_true", help="distilled 2-step decoder, ~10x faster acoustic model")ap.add_argument("--vocoder", default="bigvgan", choices=["bigvgan", "vocos"],help="vocos: fast on a CPU and needs no BigVGAN clone")ap.add_argument("--repo", default="mmmhusto/TTS-English", help="Hub repo or local folder with the weights")ap.add_argument("--seed", type=int, default=0)a = ap.parse_args()tts = TTS.from_pretrained(a.repo, a.bigvgan, vocoder=a.vocoder, fast=a.fast)12 unmodified lines1314151617181912 unmodified linesap.add_argument("--fast", action="store_true", help="distilled 2-step decoder, ~10x faster acoustic model")ap.add_argument("--vocoder", default="bigvgan", choices=["bigvgan", "vocos"],help="vocos: fast on a CPU and needs no BigVGAN clone")ap.add_argument("--repo", default="mmmhusto/TTS-husto", help="Hub repo or local folder with the weights")ap.add_argument("--seed", type=int, default=0)a = ap.parse_args()tts = TTS.from_pretrained(a.repo, a.bigvgan, vocoder=a.vocoder, fast=a.fast)
123456789101176 unmodified lines888990919293946 unmodified lines101102103104105106107"""mmmhusto TTS English: text -> 24 kHz speech.from tts_english import TTStts = TTS.from_pretrained("mmmhusto/TTS-English", bigvgan_dir="BigVGAN") # a clone of github.com/NVIDIA/BigVGANwav = tts("Good morning, and welcome.") # float32 numpy array, 24 kHztts = TTS.from_pretrained("mmmhusto/TTS-English", vocoder="vocos") # fast vocoder, no BigVGAN clone neededtts = TTS.from_pretrained("mmmhusto/TTS-English", vocoder="vocos", fast=True) # + 2-step decoder: fastestvoice = tts.clone_voice(recording, sample_rate) # a voice vector from 5-15 s of someone's speechwav = tts("Now I speak with that voice.", voice=voice)76 unmodified linesself._get, self._refenc = None, None # set by from_pretrained: where the optional files are@classmethoddef from_pretrained(cls, repo: str = "mmmhusto/TTS-English", bigvgan_dir: str | None = None, device: str = "cpu",vocoder_weights: str | None = None, vocoder: str | None = None,fast: bool = False) -> "TTS":"""``vocoder``: "bigvgan" (needs ``bigvgan_dir``, a clone of github.com/NVIDIA/BigVGAN) or "vocos" (fast,6 unmodified linesfrom safetensors.torch import load_filedef get(name: str) -> str: # a local folder, or a repo on the Hubreturn str(Path(repo) / name) if Path(repo).is_dir() else hf_hub_download(repo, name)config = json.load(open(get("config.json")))assert config["symbols"] == SYMBOLS, "frontend and checkpoint disagree on the symbol table"123456789101176 unmodified lines888990919293946 unmodified lines101102103104105106107"""mmmhusto TTS English: text -> 24 kHz speech.from tts_english import TTStts = TTS.from_pretrained("mmmhusto/TTS-husto", bigvgan_dir="BigVGAN") # a clone of github.com/NVIDIA/BigVGANwav = tts("Good morning, and welcome.") # float32 numpy array, 24 kHztts = TTS.from_pretrained("mmmhusto/TTS-husto", vocoder="vocos") # fast vocoder, no BigVGAN clone neededtts = TTS.from_pretrained("mmmhusto/TTS-husto", vocoder="vocos", fast=True) # + 2-step decoder: fastestvoice = tts.clone_voice(recording, sample_rate) # a voice vector from 5-15 s of someone's speechwav = tts("Now I speak with that voice.", voice=voice)76 unmodified linesself._get, self._refenc = None, None # set by from_pretrained: where the optional files are@classmethoddef from_pretrained(cls, repo: str = "mmmhusto/TTS-husto", bigvgan_dir: str | None = None, device: str = "cpu",vocoder_weights: str | None = None, vocoder: str | None = None,fast: bool = False) -> "TTS":"""``vocoder``: "bigvgan" (needs ``bigvgan_dir``, a clone of github.com/NVIDIA/BigVGAN) or "vocos" (fast,6 unmodified linesfrom safetensors.torch import load_filedef get(name: str) -> str: # a local folder, or a repo on the Hubreturn str(Path(repo) / name) if Path(repo).is_dir() else hf_hub_download(repo, name, revision="v1.0" if repo == "mmmhusto/TTS-husto" else None)config = json.load(open(get("config.json")))assert config["symbols"] == SYMBOLS, "frontend and checkpoint disagree on the symbol table"
14 unmodified lines1516171819202114 unmodified linesap.add_argument("--vocoder", default=None, choices=["bigvgan", "vocos"],help="default: bigvgan with --bigvgan, else vocos")ap.add_argument("--bigvgan", default=None, help="clone of github.com/NVIDIA/BigVGAN (best quality)")ap.add_argument("--repo", default="mmmhusto/TTS-English", help="Hub repo or local folder with the weights")ap.add_argument("--device", default="cpu")ap.add_argument("--seed", type=int, default=0)a = ap.parse_args(argv)14 unmodified lines1516171819202114 unmodified linesap.add_argument("--vocoder", default=None, choices=["bigvgan", "vocos"],help="default: bigvgan with --bigvgan, else vocos")ap.add_argument("--bigvgan", default=None, help="clone of github.com/NVIDIA/BigVGAN (best quality)")ap.add_argument("--repo", default="mmmhusto/TTS-husto", help="Hub repo or local folder with the weights")ap.add_argument("--device", default="cpu")ap.add_argument("--seed", type=int, default=0)a = ap.parse_args(argv)
README.md+20-7
app.py+2-2
infer.py+1-1
tts_english/__init__.py+5-5
tts_english/__main__.py+1-1