You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e05269a
Browse filesBrowse the repository at this point in the historyBrowse files
## Description
- Bumps phonemis to v0.3.2 (Mandarin G2P matching misaki's Kokoro v1.0).
- Adds `models.textToSpeech.KOKORO.ZH` (XNNPACK + Core ML) with 7 of the
8 upstream `zf_*`/`zm_*` voices; `zf_xiaoni` is unintelligible in
upstream PyTorch Kokoro too. Voices and the zh lexicon/segmenter are on
HF `v0.11.0`.
- Adds Chinese to the speech app's Kokoro screen.
### Introduces a breaking change?
- [ ] Yes
- [x] No
### Type of change
- [ ] Bug fix (change which fixes an issue)
- [x] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [ ] Other (chores, tests, code style improvements etc.)
### Tested on
- [x] iOS
- [ ] Android
### Testing instructions
- `yarn workspace react-native-executorch test` and
`scripts/run-native-tests.sh -R Phonemizer`.
- Speech app > Kokoro > Chinese, synthesize the sample text.
### Screenshots
### Related issues
Closes#1502
### Checklist
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] My changes generate no new warnings
### Additional notes
|**Supertonic 3**|[See](../../06-api-reference/variables/models.md#texttospeechsupertonic)| Text Encoder, Duration Predictor, Vector Estimator, Vocoder, Voice Styles | 44.1 kHz | 398 MB | XNNPACK (CPU), MLX (Apple), Vulkan (Android) |[English, Spanish, French, German, Korean, Japanese & more](../../06-api-reference/react-native-executorch/namespaces/speech/variables/SUPERTONIC_SUPPORTED_LANGUAGES.md)| Faster generation and broad multilingual coverage across 10 bundled [speaker styles](../../06-api-reference/variables/SUPERTONIC_DEFAULT_VOICE_NAMES.md), with slightly lower voice naturalness than Kokoro. |
178
-
|**Kokoro (Language Packages)**|[See](../../06-api-reference/variables/models.md#texttospeechkokoro)| Duration Predictor, Synthesizer, G2P Lexicon / Neural Model, Language Voices | 24.0 kHz | 332 MB each | XNNPACK (CPU), Core ML (Apple) | English (US/GB), Spanish, French, Italian, Portuguese, Hindi, Polish, German| Exceptional voice naturalness and intonation per language package, but heavier compute per synthesized chunk. |
178
+
|**Kokoro (Language Packages)**|[See](../../06-api-reference/variables/models.md#texttospeechkokoro)| Duration Predictor, Synthesizer, G2P Lexicon / Neural Model, Language Voices | 24.0 kHz | 332 MB each | XNNPACK (CPU), Core ML (Apple) | English (US/GB), Spanish, French, Italian, Portuguese, Hindi, Polish, German, Chinese| Exceptional voice naturalness and intonation per language package, but heavier compute per synthesized chunk. |
179
179
180
180
:::note Model-Specific Pipelines
181
181
Because Text-to-Speech architectures require distinct multi-model orchestration in TypeScript (coordinating phonemizers, duration predictors, flow-matching loops, and neural vocoders), TTS pipelines are model-specific. To use custom voices or fine-tuned weights, provide your modified `.pte` models or custom voice JSON/BIN files matching the [`SupertonicTtsModel`](../../06-api-reference/type-aliases/SupertonicTtsModel.md) or [`KokoroTtsModel`](../../06-api-reference/type-aliases/KokoroTtsModel.md) specifications.
0 commit comments