Uses
NeuTTS is an open-source on-device text-to-speech (TTS) model series developed by Neuphonic, aiming to bring speech AI capabilities that were previously mostly locked behind Web APIs to local devices. It is suitable for embedded voice agents, assistants, toys, and applications that require compliance guarantees. The project consists of a small LLM backbone and audio codec technology, and supports instant voice cloning.
Model Series
- NeuTTS-Air (English): provides Model, Q8 GGUF, Q4 GGUF, Space.
- NeuTTS-Nano multilingual collection: includes NeuTTS-Nano (English), NeuTTS-Nano-French, NeuTTS-Nano-German, NeuTTS-Nano-Spanish, each providing Model, Q8 GGUF, Q4 GGUF; there is also a multilingual Space.
- NeuTTS-2E (English, emotion control): provides Model, Q8 GGUF, Q4 GGUF, Space.
Main Capabilities
- More realistic speech quality at the same size, achieving a balance between speed, size, and quality.
- Optimized for on-device deployment, providing GGUF quantized formats, and can run on phones, laptops, and even Raspberry Pi.
- Instant voice cloning, requiring only about 3 seconds of audio to create a speaker.
- Simple LM + codec architecture, making development and deployment easy.
- Supported languages: English, Spanish, German, French (depending on the model).
- Audio codec: NeuCodec, a 50hz neural audio codec, using a single codebook to achieve relatively high quality at low bitrate.
- Context window: 2048 tokens, can handle about 30 seconds of audio (including prompt duration).
- Format: provides GGUF quantization.
- Responsibility: outputs are watermarked.
- Inference speed: can generate in real time on mid-range devices.
- Power consumption: optimized for mobile and embedded devices.
Installation and Usage
Installation:pip install neutts. For local editable installation: clone the repository and run in the root directory pip install -e .. Install all dependencies (including onnxruntime and llama-cpp-python):pip install neutts[all], can be installed editably as pip install -e .[all].
If you need to use a .gguf model, you need to install llama-cpp-python. For best performance, it should be compiled from source for the operating system and target device (CPU or GPU) with hardware acceleration enabled. Examples: macOS (Apple Silicon) can use CMAKE_ARGS="-DGGML_METAL=OFF -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Apple" pip install "neutts[llama]" --force-reinstall --no-cache-dir; Linux (OpenBLAS) can use CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS" pip install "neutts[llama]" --force-reinstall --no-cache-dir; Windows PowerShell can set $env:CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"; pip install "neutts[llama]" --force-reinstall --no-cache-dir. GPU support (Nvidia/CUDA, AMD/ROCm, M-series Mac/Metal) requires adjusting CMAKE flags according to the official llama-cpp-python documentation.
To use the .onnx decoder, install:pip install "neutts[onnx]".
Example scripts are located in the examples folder (including Jupyter notebooks). Running the basic example can synthesize speech; through the --backbone and --codec parameters, you can specify the backbone or codec model repository. For non-English backbones, it is recommended to use references in the same language for best results.
Streaming mode can play while generating. The streaming example uses pyaudio for playback, which requires the PortAudio library on macOS and Linux; when streaming, the model must be in GGUF format, and can be used through --backbone specified.
Emotional TTS (NeuTTS-2E)
NeuTTS-2E is a fixed-speaker English emotional model. Its four speakers (emily, paul, sophie, steven) have pre-encoded references located in samples/, which can be used without reference audio and can also serve as ordinary cloning references for other models. Supported emotions: angry, disgusted, fearful, happy, neutral, sad, surprised. Streaming can be used via examples.basic_streaming_example_emotions with a GGUF backbone (default neuphonic/neutts-2e-q8-gguf, or via --backbone use neuphonic/neutts-2e-q4-gguf).
Reproducibility
Generation is sampling-based, and each call prints the seed used. When no seed is set, a new random seed is used each time, so repeated calls produce different results; results can be reproduced using the printed seed. Passing seed to NeuTTS / NeuTTS2E (or passing to the example --seed) can fix the result: the same input and seed produce the same audio in both PyTorch and GGUF backbones, and in batch or streaming mode.
Reference Audio and Cloning
NeuTTS requires a reference audio sample (.wav) and text, then synthesizes speech in the style of the reference audio, enabling instant cloning.
Example reference files (samples folder): English dave.wav, jo.wav, emily.wav, paul.wav, sophie.wav, steven.wav (the latter four are NeuTTS-2E speakers); Spanish mateo.wav; German greta.wav; French juliette.wav.
Best results guidelines: sample rate 16–44 kHz; duration 3–15 seconds; save as .wav; clean, with no obvious background noise; natural continuous speech (similar to a monologue or conversation, with few pauses), making it easier for the model to capture intonation.
Suggestions for reducing latency: use a GGUF model backbone; pre-encode references (see examples/encode_reference.py or examples/basic_example.py); use the onnx codec decoder.
Watermarking and Notes
Every audio file generated by NeuTTS includes a Perth (Perceptual Threshold) watermark by default. If installed within the repository using uv sync, the program can still run but the watermark will be disabled (you will see a missing perth warning), because uv sync currently cannot pull the required Perth dependency; to ensure the watermark takes effect, please install via PyPI (pip install neutts).
Benchmark notes: throughput benchmarks target the Q4_0 quantized versions (neutts-air-Q4_0 and neutts-nano-Q4_0); all models in the NeuTTS-Nano multilingual collection have the same architecture, and the results apply to any Q4_0 model in that collection. CPU benchmarks use llama-bench (from llama.cpp) to measure prefill and decode throughput at different context sizes; GPU benchmarks (RTX 4090) use vLLM and its benchmark. Test devices include Galaxy A25 5G, AMD Ryzen 9HX 370, iMac M4 16GB, NVIDIA GeForce RTX 4090. AMD Ryzen 9HX 370 and iMac M4 16GB use 14 threads for prefill and 16 threads for decode, while Galaxy A25 5G uses 6 threads for each; reported tokens/s is based on 500 prefill tokens and 250 generated output tokens. The benchmarks include only the speech language model, not the codec required for the complete audio generation pipeline.
Note: websites such as neutts.com are not affiliated with Neuphonic, its GitHub, or this repository; the official site is only neuphonic.com.
Limitations and Missing Facts
- Emotional control is supported only by NeuTTS-2E (English).
- The languages supported by the model, context window, and real-time performance depend on the specific model and device.
- Specific pricing, commercial licensing, and complete deployment restriction information are not provided.
- Detailed accuracy evaluation metrics for each language model are not provided.
- Complete minimum hardware configuration requirements are not provided.