This fork adds a beautiful web interface and Docker support for easy deployment!
HuggingFace 🤗: Model, Q8 GGUF, Q4 GGUF Spaces
Original model created by Neuphonic - building faster, smaller, on-device voice AI
State-of-the-art Voice AI has been locked behind web APIs for too long. NeuTTS Air is the world's first super-realistic, on-device, TTS speech language model with instant voice cloning. Built off a 0.5B LLM backbone, NeuTTS Air brings natural-sounding speech, real-time performance, built-in security and speaker cloning to your local device - unlocking a new category of embedded voice agents, assistants, toys, and compliance-safe apps.
Get started in seconds:
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
./docker-run.sh
# Open http://localhost:5000
[!CAUTION] Websites like neutts.com are popping up and they're not affliated with Neuphonic, our github or this repo.
We are on neuphonic.com only. Please be careful out there! 🙏
NeuTTS Air is built off Qwen 0.5B - a lightweight yet capable language model optimised for text understanding and generation - as well as a powerful combination of technologies designed for efficiency and quality:
The easiest way to get started - no manual dependency installation required!
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Build and start with one command
./docker-run.sh
# Or use docker-compose directly
docker-compose up -d
Access the web interface: Open http://localhost:5000 in your browser
Features:
Manage the container:
./docker-run.sh logs # View logs
./docker-run.sh stop # Stop container
./docker-run.sh restart # Restart container
./docker-run.sh status # Check status
./docker-run.sh clean # Remove container and image
📖 See DOCKER_README.md for detailed Docker documentation.
Run the web interface directly with Python:
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Install espeak (required)
# Mac OS
brew install espeak
# Ubuntu/Debian
sudo apt install espeak
# Create virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install flask
# Start the web server
cd web_interface
./start.sh
Access the web interface: Open http://localhost:5000 in your browser
📖 See web_interface/README.md for web interface documentation.
Use the original CLI for scripting and automation:
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Install espeak
# Mac OS: brew install espeak
# Ubuntu/Debian: sudo apt install espeak
# Windows: See note below
# Install Python dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run basic example
python -m examples.basic_example \
--input_text "My name is Dave, and um, I'm from London" \
--ref_audio samples/dave.wav \
--ref_text samples/dave.txt
Platform-specific espeak setup:
You may need to configure espeak library path:
from phonemizer.backend.espeak.wrapper import EspeakWrapper
_ESPEAK_LIBRARY = '/opt/homebrew/Cellar/espeak/1.48.04_1/lib/libespeak.1.1.48.dylib'
EspeakWrapper.set_library(_ESPEAK_LIBRARY)
Configure espeak environment variables:
$env:PHONEMIZER_ESPEAK_LIBRARY = "c:\Program Files\eSpeak NG\libespeak-ng.dll"
$env:PHONEMIZER_ESPEAK_PATH = "c:\Program Files\eSpeak NG"
setx PHONEMIZER_ESPEAK_LIBRARY "c:\Program Files\eSpeak NG\libespeak-ng.dll"
setx PHONEMIZER_ESPEAK_PATH "c:\Program Files\eSpeak NG"
Optional performance optimizations:
# For GGUF models (faster)
pip install llama-cpp-python
# For ONNX decoder
pip install onnxruntime
To specify a model, add the --backbone argument. Available models: NeuTTS-Air HuggingFace collection.
📖 See QUICK_START.md for comparison of all methods.
from neuttsair.neutts import NeuTTSAir
import soundfile as sf
tts = NeuTTSAir(
backbone_repo="neuphonic/neutts-air", # or 'neutts-air-q4-gguf' with llama-cpp-python installed
backbone_device="cpu",
codec_repo="neuphonic/neucodec",
codec_device="cpu"
)
input_text = "My name is Dave, and um, I'm from London."
ref_text = "samples/dave.txt"
ref_audio_path = "samples/dave.wav"
ref_text = open(ref_text, "r").read().strip()
ref_codes = tts.encode_reference(ref_audio_path)
wav = tts.infer(input_text, ref_codes, ref_text)
sf.write("test.wav", wav, 24000)
NeuTTS Air requires two inputs:
.wav file)The model then synthesises the text as speech in the style of the reference audio. This is what enables NeuTTS Air’s instant voice cloning capability.
You can find some ready-to-use samples in the examples folder:
samples/dave.wavsamples/jo.wavFor optimal performance, reference audio samples should be:
.wav fileFor optimal performance on-device:
Take a look at this example examples README to get started.
Every audio file generated by NeuTTS Air includes Perth (Perceptual Threshold) Watermarker.
Don't use this model to do bad things… please.
To run the pre commit hooks to contribute to this project run:
pip install pre-commit
Then:
pre-commit install
Python
48.3%
HTML
26.4%
Shell
13.7%
CSS
9.2%
Dockerfile
2.3%
This fork adds a beautiful web interface and Docker support for easy deployment!
HuggingFace 🤗: Model, Q8 GGUF, Q4 GGUF Spaces
Original model created by Neuphonic - building faster, smaller, on-device voice AI
State-of-the-art Voice AI has been locked behind web APIs for too long. NeuTTS Air is the world's first super-realistic, on-device, TTS speech language model with instant voice cloning. Built off a 0.5B LLM backbone, NeuTTS Air brings natural-sounding speech, real-time performance, built-in security and speaker cloning to your local device - unlocking a new category of embedded voice agents, assistants, toys, and compliance-safe apps.
Get started in seconds:
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
./docker-run.sh
# Open http://localhost:5000
[!CAUTION] Websites like neutts.com are popping up and they're not affliated with Neuphonic, our github or this repo.
We are on neuphonic.com only. Please be careful out there! 🙏
NeuTTS Air is built off Qwen 0.5B - a lightweight yet capable language model optimised for text understanding and generation - as well as a powerful combination of technologies designed for efficiency and quality:
The easiest way to get started - no manual dependency installation required!
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Build and start with one command
./docker-run.sh
# Or use docker-compose directly
docker-compose up -d
Access the web interface: Open http://localhost:5000 in your browser
Features:
Manage the container:
./docker-run.sh logs # View logs
./docker-run.sh stop # Stop container
./docker-run.sh restart # Restart container
./docker-run.sh status # Check status
./docker-run.sh clean # Remove container and image
📖 See DOCKER_README.md for detailed Docker documentation.
Run the web interface directly with Python:
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Install espeak (required)
# Mac OS
brew install espeak
# Ubuntu/Debian
sudo apt install espeak
# Create virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install flask
# Start the web server
cd web_interface
./start.sh
Access the web interface: Open http://localhost:5000 in your browser
📖 See web_interface/README.md for web interface documentation.
Use the original CLI for scripting and automation:
# Clone the repository
git clone https://github.com/aldervall/neutts-air-web.git
cd neutts-air-web
# Install espeak
# Mac OS: brew install espeak
# Ubuntu/Debian: sudo apt install espeak
# Windows: See note below
# Install Python dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run basic example
python -m examples.basic_example \
--input_text "My name is Dave, and um, I'm from London" \
--ref_audio samples/dave.wav \
--ref_text samples/dave.txt
Platform-specific espeak setup:
You may need to configure espeak library path:
from phonemizer.backend.espeak.wrapper import EspeakWrapper
_ESPEAK_LIBRARY = '/opt/homebrew/Cellar/espeak/1.48.04_1/lib/libespeak.1.1.48.dylib'
EspeakWrapper.set_library(_ESPEAK_LIBRARY)
Configure espeak environment variables:
$env:PHONEMIZER_ESPEAK_LIBRARY = "c:\Program Files\eSpeak NG\libespeak-ng.dll"
$env:PHONEMIZER_ESPEAK_PATH = "c:\Program Files\eSpeak NG"
setx PHONEMIZER_ESPEAK_LIBRARY "c:\Program Files\eSpeak NG\libespeak-ng.dll"
setx PHONEMIZER_ESPEAK_PATH "c:\Program Files\eSpeak NG"
Optional performance optimizations:
# For GGUF models (faster)
pip install llama-cpp-python
# For ONNX decoder
pip install onnxruntime
To specify a model, add the --backbone argument. Available models: NeuTTS-Air HuggingFace collection.
📖 See QUICK_START.md for comparison of all methods.
from neuttsair.neutts import NeuTTSAir
import soundfile as sf
tts = NeuTTSAir(
backbone_repo="neuphonic/neutts-air", # or 'neutts-air-q4-gguf' with llama-cpp-python installed
backbone_device="cpu",
codec_repo="neuphonic/neucodec",
codec_device="cpu"
)
input_text = "My name is Dave, and um, I'm from London."
ref_text = "samples/dave.txt"
ref_audio_path = "samples/dave.wav"
ref_text = open(ref_text, "r").read().strip()
ref_codes = tts.encode_reference(ref_audio_path)
wav = tts.infer(input_text, ref_codes, ref_text)
sf.write("test.wav", wav, 24000)
NeuTTS Air requires two inputs:
.wav file)The model then synthesises the text as speech in the style of the reference audio. This is what enables NeuTTS Air’s instant voice cloning capability.
You can find some ready-to-use samples in the examples folder:
samples/dave.wavsamples/jo.wavFor optimal performance, reference audio samples should be:
.wav fileFor optimal performance on-device:
Take a look at this example examples README to get started.
Every audio file generated by NeuTTS Air includes Perth (Perceptual Threshold) Watermarker.
Don't use this model to do bad things… please.
To run the pre commit hooks to contribute to this project run:
pip install pre-commit
Then:
pre-commit install
Python
48.3%
HTML
26.4%
Shell
13.7%
CSS
9.2%
Dockerfile
2.3%