--- license: other license_name: neutts-open-license-v1.0 license_link: https://github.com/neuphonic/neutts/blob/main/LICENSE library_name: transformers tags: - text-to-speech - llama - neutts language: - el --- # GenosTTSNano (male voice) Male-voice Greek fine-tune of [NeuTTS-Nano](https://github.com/neuphonic/neutts) for the MoiraAI voice stack: a compact single-voice speech language model that turns text into [NeuCodec](https://huggingface.co/neuphonic/neucodec) audio tokens in Genos's voice. It is fine-tuned to produce this one specific voice — not to clone arbitrary voices. The Nano line trades some quality for size and speed — same open NeuTTS LM + codec design as Air, in a ~120M-active-parameter backbone that runs comfortably on phones and low-end CPUs. ## Samples Reference transcript (`samples/greek.txt`): "Ο βροντόσαυρος έψαχνε τροφή στην αυλή." | clip | audio | |---|---| | Reference voice | | | Generated example | | ## Model details - **Voice:** male, single voice — Genos. Fine-tuned to speak as Genos; always generate with a reference clip of Genos's voice. - **Backbone:** Llama causal LM — 24 layers, hidden size 576, 9 attention heads / 3 KV heads, Llama-3-style tokenizer. - **Vocabulary:** 194,256 tokens — base BPE plus added audio/speech tokens (`<|SPEECH_GENERATION_END|>` etc.). - **Codec:** [neuphonic/neucodec](https://huggingface.co/neuphonic/neucodec) (50 Hz, single codebook) — this repo holds the LM half only. - **Input:** phonemised text (handled automatically by the `neutts` package via `espeak-ng`). - **Operating window:** 2048 tokens ≈ ~30 s of audio including the voice prompt. - **Training:** fine-tuned for 1 epoch (22,983 steps) — loss curve in `trainer_state.json`. - **Base project:** [neuphonic/neutts](https://github.com/neuphonic/neutts) (NeuTTS-Nano multilingual collection). - **License:** this model follows the upstream NeuTTS terms — [NeuTTS Open License v1.0](https://github.com/neuphonic/neutts/blob/main/LICENSE) (tagged `other`, **not** Apache-2.0). ## Usage Requires `espeak-ng` on your system ([install guide](https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md)). This is a public repo — no login needed. Note: the `neuphonic/neucodec` codec repo is auto-gated, so accept access once while logged in; the backbone itself needs nothing. ```bash pip install neutts soundfile ``` ```python from neutts import NeuTTS import soundfile as sf tts = NeuTTS( backbone_repo="moiralabs/GenosTTSNano", backbone_device="cpu", codec_repo="neuphonic/neucodec", codec_device="cpu", language="el", # required: non-Neuphonic backbones raise without it ) input_text = "Γεια σου! Χαίρομαι που σε γνωρίζω." ref_text = open("samples/greek.txt").read().strip() # transcript of Genos's ref clip ref_codes = tts.encode_reference("samples/greek.wav") # short clip of Genos's voice wav = tts.infer(input_text, ref_codes, ref_text) sf.write("out.wav", wav, 24000) ``` For on-device/quantised inference, convert the backbone to GGUF and pass the `.gguf` repo as `backbone_repo` with `llama-cpp-python` installed (`pip install "neutts[llama]"`) — same pattern as the upstream [neutts-nano-q4-gguf](https://huggingface.co/neuphonic/neutts-nano-q4-gguf) / [neutts-nano-q8-gguf](https://huggingface.co/neuphonic/neutts-nano-q8-gguf) releases. Other inference paths (see `examples/` in [neuphonic/neutts](https://github.com/neuphonic/neutts)): - **Pre-encoded references:** `encode_reference()` can be run once and the codes saved with `torch.save(ref_codes, "ref.pt")` to skip re-encoding on every run. - **ONNX decoder:** pass `codec_repo="neuphonic/neucodec-onnx-decoder"` (needs `onnxruntime` and a pre-encoded `.pt` reference) for lower-latency decoding without the codec encoder. - **Streaming:** `tts.infer_stream(...)` yields audio chunks as they generate, but only works with GGUF backbones (needs `pyaudio`). ## Notes - **CPU-only machines:** plain `pip install neutts` pulls CUDA torch plus gigabytes of NVIDIA deps. Skip them by installing the CPU builds first (keep their versions matched to each other): `pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu` - **`torchao` vs `torchtune`:** current `torchao` removed `NF4Tensor`, which `torchtune` 0.6.1 still imports (`No module named 'torchao.dtypes.nf4tensor'`). Until upstream agrees, stub it — those names only serve quantization helpers inference never calls: ```python # torchao/dtypes/nf4tensor.py class NF4Tensor: pass def linear_nf4(*a, **k): raise RuntimeError("nf4 shim") def to_nf4(*a, **k): raise RuntimeError("nf4 shim") def implements(*a, **k): return lambda f: f ``` ## Files - `model.safetensors` — backbone weights (Git LFS) - `config.json`, `generation_config.json` — model config - `tokenizer.json`, `tokenizer_config.json` — tokenizer (Git LFS) - `trainer_state.json` — training provenance (loss curve) - `training_args.bin`, `optimizer.pt`, `scheduler.pt`, `rng_state.pth` — training state (Git LFS) - `samples/greek.wav`, `samples/greek.txt` — Genos reference clip + transcript - `samples/greek_output.wav` — example output in Genos's voice ## Limitations - Tuned for short Greek utterances. - Nano trades quality for size/speed versus the Air-scale model; expect artifacts on long or out-of-domain text. - Audio generated through the NeuTTS pipeline carries a watermark. ## Disclaimer Genos and Moira are fictional AI personas created for the MoiraAI project's own products. Do not use these models to impersonate any real individual or to create misleading recordings, robocalls, scams, or disinformation. You are responsible for complying with all applicable laws on synthetic media and voice rights. We do not condone any misuse of these models. ## Acknowledgments Special thanks to [Neuphonic](https://neuphonic.com) — pioneers of the open text-to-speech space — for releasing NeuTTS and NeuCodec as open source. This model would not exist without their work.