-
Notifications
You must be signed in to change notification settings - Fork 908
Export KittenTTS mini v0.1 to sherpa-onnx #2578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughAdds Kitten-TTS mini v0.1 support across workflows and scripts: enables sample generation in CI, updates artifact paths, adds conversion/metadata/sample-generation utilities for mini, adjusts nano sample destinations, and includes the new model in the APK model list. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant GH as GitHub Actions
participant HF as HuggingFace artifacts
participant Mini as mini_v0_1 scripts
participant FS as Filesystem
rect rgba(230,240,255,0.5)
note right of GH: generate-tts-samples.yaml (enabled)
GH->>FS: mkdir -p ./hf/kitten/v0.1-mini/mp3<br/>mkdir -p ./hf/kitten/v0.1-nano/mp3<br/>mkdir -p ./hf/kitten/v0.2-nano/mp3
GH->>HF: Download kitten-mini-en-v0_1-fp16.tar.bz2
HF-->>GH: Model + assets
GH->>FS: Extract and link assets (hf/)
GH->>Mini: Run generate_samples.py (mini v0.1)
Mini->>FS: Write per-speaker MP3s to ./hf/kitten/v0.1-mini/mp3
end
rect rgba(240,255,240,0.5)
note right of GH: nano flows unchanged except output dirs
GH->>FS: Run nano v0.1/v0.2 generate_samples.py
FS-->FS: Write MP3s to ./hf/kitten/v0.1-nano/mp3 and ./hf/kitten/v0.2-nano/mp3
end
sequenceDiagram
autonumber
participant Dev as Developer
participant SH as run.sh (mini v0.1)
participant HF as HuggingFace
participant Py as Python tools
Dev->>SH: Execute run.sh
alt missing model/voices
SH->>HF: Download kitten_tts_mini_v0_1.onnx / voices.npz
HF-->>SH: Files
end
SH->>Py: generate_voices_bin.py / generate_tokens.py
SH->>Py: convert_opset.py (set opset 19 + ai.onnx.ml=4)
SH->>Py: show.py (inspect)
SH->>Py: add_meta_data.py --model ./model.fp16.onnx
SH->>Dev: ls -lh (outputs)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (13)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
See also https://k2-fsa.github.io/sherpa/onnx/tts/all/English/kitten-mini-en-v0_1.html
Summary by CodeRabbit
New Features
Chores
Revert
Bug Fixes