21 Commits
Author SHA1 Message Date
Fangjun Kuang 0b3647632f Remove espeak-ng and piper-phonemize from sherpa-onnx (#4055)
Fixes #3731

espeak-ng and piper-phonemize are no longer built into sherpa-onnx.

Text frontends are now:

- **lexicon** — built in, no extra dependency
- **phonemize** — phonemize outside sherpa-onnx (e.g. [piper-phonemize](https://github.com/csukuangfj/piper-phonemize)) and pass the result in. That library is GPL, so it stays optional: sherpa-onnx is GPL-free after this PR.

## API

- `SherpaOnnxGenerationConfig` gains `phoneme_codepoints` and `tokens` (mutually exclusive alternatives to `text`)
- `data_dir` on the TTS model configs is deprecated and ignored; the ABI slot is kept
- all bindings updated: C/C++, Python, Java, Kotlin, Go, Rust, C#, Swift, Pascal, Dart/Flutter, node-addon, WASM, HarmonyOS
2026-10-20 11:09:04 +08:00
Fangjun Kuang 926152b958 Refactor VITS to use the new Generate API (#3365) 2026-03-19 20:34:52 +08:00
Fangjun Kuang 8568fc4e5d Remove cppjieba (#2664)
This PR removes the cppjieba dependency from the sherpa-onnx project by replacing its usage with character-based text processing. The main purpose is to simplify the codebase by eliminating the need for external jieba dictionary files and the cppjieba library.

- Replaces jieba-based word segmentation with UTF-8 character-level tokenization
- Removes all references to dict_dir and dictDir parameters across APIs
- Adds a new CharacterLexicon class to replace JiebaLexicon
2025-10-10 10:54:32 +08:00
Wei Kangandyaozengwei c149696cb3 Add Zipvoice (#2487)
Co-authored-by: yaozengwei <yaozengwei@outlook.com>
2025-08-27 19:50:00 +08:00
Fangjun Kuang 9122c9d272 Add Python API for KittenTTS. (#2466) 2025-08-08 15:01:43 +08:00
Fangjun Kuang 0aacf02dd8 Add C++ runtime for vocos (#2014) 2025-03-17 17:05:15 +08:00
Fangjun Kuang c84a833863 Add C++ and Python API for Kokoro 1.0 multilingual TTS model (#1795) 2025-02-06 22:57:13 +08:00
Fangjun Kuang ffc6b480a0 Add C++ and Python API for Kokoro TTS models. (#1715) 2025-01-16 14:24:51 +08:00
Fangjun Kuang f457baea42 Support Matcha-TTS models using espeak-ng (#1672) 2025-01-02 13:46:43 +08:00
Fangjun Kuang 2c2926af7d Add C++ runtime for Matcha-TTS (#1627) 2024-12-31 12:44:14 +08:00
Fangjun Kuang eee5d8a15c Add node-addon-api for VAD (#864) 2024-05-11 20:58:23 +08:00
Fangjun Kuang a88b3bac21 Fix Python TTS examples for models using jieba. (#861) 2024-05-11 09:21:51 +08:00
Fangjun Kuang 37a4135dd7 Publish npm package with node-addon-api for Windows (#838) 2024-05-06 16:21:29 +08:00
Fangjun Kuang 99ff6a834c Play generated audio as it is generating. (#457) 2023-12-02 15:35:11 +08:00
Fangjun Kuang 62dc3c3e46 Use piper-phonemize to convert text to token IDs (#453) 2023-11-30 23:57:43 +08:00
longshimingandlongshiming 10d6dba187 add --tts-rule-fsts argument at offline-tts.py (#413)
Co-authored-by: longshiming <longshiming@greesoft.com>
2023-11-07 14:18:18 +08:00
Fangjun Kuang 1249710e1d support specifying speed for tts Python APIs (#384) 2023-10-24 21:38:58 +08:00
Fangjun Kuang 8545c3b7f0 Validate input sid (#369) 2023-10-18 14:02:01 +08:00
Fangjun Kuang 1ee79e3ff5 Support Chinese vits models (#368) 2023-10-18 10:19:10 +08:00
Fangjun Kuang 9efe69720d Support VITS VCTK models (#367)
* Support VITS VCTK models

* Release v1.8.1
2023-10-16 17:22:30 +08:00
Fangjun Kuang 655e0fa836 add python API and examples for TTS (#364) 2023-10-14 14:21:53 +08:00