Instructions to use mlboydaisuke/VoxCPM2-CoreAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VoxCPM
How to use mlboydaisuke/VoxCPM2-CoreAI with VoxCPM:
import soundfile as sf from voxcpm import VoxCPM model = VoxCPM.from_pretrained("mlboydaisuke/VoxCPM2-CoreAI") wav = model.generate( text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.", prompt_wav_path=None, # optional: path to a prompt speech for voice cloning prompt_text=None, # optional: reference text cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed normalize=True, # enable external TN tool denoise=True, # enable external Denoise tool retry_badcase=True, # enable retrying mode for some bad cases (unstoppable) retry_badcase_max_times=3, # maximum retrying times retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech ) sf.write("output.wav", wav, 16000) print("saved: output.wav") - Notebooks
- Google Colab
- Kaggle
gen-cards: regenerate Use-it block
Browse files
README.md
CHANGED
|
@@ -27,6 +27,15 @@ bundles + a few host-side projections.
|
|
| 27 |
<!-- gen-cards:use-it begin id=voxcpm2-2b (managed by scripts/gen-cards — edit cards.json / QuickStart.swift, not this block) -->
|
| 28 |
## Use it
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
▶️ **Run it (source)** — the [Speak runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/Speak)
|
| 31 |
(GUI + CLI, one app for every text-to-speech model in the catalog):
|
| 32 |
|
|
|
|
| 27 |
<!-- gen-cards:use-it begin id=voxcpm2-2b (managed by scripts/gen-cards — edit cards.json / QuickStart.swift, not this block) -->
|
| 28 |
## Use it
|
| 29 |
|
| 30 |
+
⚡ **One line** — run the kit's task op on this model
|
| 31 |
+
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
| 32 |
+
|
| 33 |
+
```swift
|
| 34 |
+
let audio = try await CoreAI.speak(text, options: .model("voxcpm2-2b"))
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Twenty ops, one shape — [Cookbook](https://github.com/john-rocky/coreai-kit/blob/main/docs/COOKBOOK.md).
|
| 38 |
+
|
| 39 |
▶️ **Run it (source)** — the [Speak runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/Speak)
|
| 40 |
(GUI + CLI, one app for every text-to-speech model in the catalog):
|
| 41 |
|