Inflect-Micro-v2 TTS SDK for AX650 NPU3
Encoder-Decoder split VITS text-to-speech engine.
Files
inflect_encoder.axmodelβ Text encoder (NPU)inflect_decoder.axmodelβ Flow + HiFi-GAN decoder (NPU)model.pthβ Full PyTorch weights (CPU components: embedding, duration, flow params)config.jsonβ Model configurationtts_engine.pyβ Main inference engine
Usage
from inflect_tts_sdk import InflectTTSEngine
engine = InflectTTSEngine()
engine.warmup() # Initialize NPU sessions
sr, wav = engine.synthesize("Hello world!")
engine.save("Hello world!", "output.wav")
Pipeline
- Text β Phonemes β Tokens (CPU, Python frontend)
- Embedding lookup (CPU)
- Encoder NPU: embeddings β m_p, logs_p, x_mask
- Duration predictor + alignment (CPU)
- Decoder NPU: z_p β waveform
Requirements
See requirements.txt.