SonarCloud báo trên code mới: tên giọng và tên file upload đi thẳng vào add_voice
(log injection / path traversal), tempfile đồng bộ trong hàm async, và --base của
client mẫu (SSRF). Tên giọng và mô tả phải khớp [^\W_][\w .\-]{0,63}; đuôi file ánh
xạ sang hằng (.wav mặc định); giới hạn 20 MB; endpoint thành def thường (thread pool).
Client chỉ nhận --base dạng http(s)://host[:port].
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
feat(api): server streaming chuẩn OpenAI (/v1/audio/speech) + profile docker api-gpu/api-cpu
- Voice Cloning: save button on its own line at natural size; saved-voice
dropdown is label-less/container-less so the small delete button lines up.
- Story and conversation boxes start empty (placeholders only); switching
backbone no longer refills the story box with a sample.
- SRT tab shows examples/srt/sample_vi.srt below the button as a format
example; sample files ship as package data.
- Batch Size default 16 for v3 (was 32), slider maximum 64.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Add VieNeu-TTS v3 Nano (preview) for edge devices and weak CPUs
- New `Vieneu(mode="v3nano")` backend: 48M-param flow-matching model, ONNX/CPU,
torch-free, 24 kHz, 6 preset voices (no cloning), emotion tags supported.
- Gradio: add "VieNeu-TTS-v3-Nano (preview)" to the model list; v3 Turbo (fp32)
stays the default on CPU and GPU; CPU banner rewritten (no int8 recommendation).
- Docs: Nano section with RTF table and quality caveats (weaker EN / bilingual).
- Tests for the Nano engine and factory; version bump to 3.5.0.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
docs: rename tts → vieneu in examples; note GPU→ONNX/CPU switch