VoxCPM2 for Core AI

Generate 48 kHz speech from text on an Apple silicon Mac, and describe the voice in words instead of supplying a recording. These are FP32 and FP16 conversions of openbmb/VoxCPM2 that run with the Swift runtime and Mac demo app of coreai-samples.

For developers exploring local speech generation with Core AI on macOS 27. Not for iPhone, voice cloning from a reference recording, or streaming playback: this conversion does not implement them. Building the demo needs Xcode 27 and Rust/Cargo. The FP16 folder needs about 8.4 GB of process memory while loaded and the FP32 folder about 16.5 GB (measured on an M5 Max, see below).

Quick start

Build and run the Mac demo app of the sample repository (see its VoxCPM2 guide). In the sidebar, press Download model under VoxCPM2, wait for the check mark, select the row below the heading, enter text and press Generate speech. The app downloads the fp16 folder of this repository at a pinned revision without signing in (22 files, about 4.7 GB) and checks the size and SHA-256 of every file.

To fetch the same folder yourself with the Hugging Face CLI:

hf download okayuji/voxcpm2-coreai --include "fp16/*" --local-dir ./VoxCPM2

Write the voice description in parentheses at the start of the text:

(A young woman, gentle and calm voice)確認が終わりました。次の作業を始めます。

Recorded output

Both examples are synthetic voices made from a text description. They were generated with the fp16 folder and seed 1708 by the repository's end-to-end test, which imports the folder into the app's model store and generates through the same store the screen uses (M5 Max, macOS 27.2.1, release build, model already loaded).

(A young woman, gentle and calm voice)確認が終わりました。次の作業を始めます。 — 5.44 seconds of audio, generated in 1.51 seconds:

(A middle-aged man, low and steady voice)The train to the airport leaves from platform four in ten minutes. — 5.28 seconds of audio, generated in 1.49 seconds:

Listening quality has not been scored. The same text and seed give different audio in fp16 and fp32.

Key numbers

Apple M5 Max (Mac17,6), 128 GB RAM, macOS 27.2.1 (26B131), Xcode 27.2, Core AI with GPU-preferred specialization, one request at a time, 2026-11-17. One patch is 0.16 seconds of audio.

Folder Files Bytes Time per patch Time per second of audio Open + load Process memory while loaded
fp32 22 9,349,325,520 69.9 ms 0.437 s 3.3 s + 3.1 s about 16.5 GB
fp16 22 4,677,413,664 44.0 ms 0.275 s 1.7 s + 1.1 s about 8.4 GB
  • Times per patch are from the Swift runtime in a release build: the median over five sentences after one warm-up generation. Time per second of audio is the time per patch divided by 0.16.
  • "Open" hashes every file and prepares a verified copy; "load" reads the six assets after Core AI has specialized them once. In other recorded runs the first fp16 generation after opening, which includes the load, took 5.4 and 6.4 seconds for 2.4 seconds of audio; the first specialization of fp32 takes longer and was not timed in these records.
  • Memory is the process resident size after a generation. It returned to about 0.2 GB after the runtime released the model. The phys_footprint counter stayed below 0.7 GB and does not show the assets.
  • From the Python host on the same Mac, the median of 15 generations was 0.456 seconds per second of audio for FP32 and 0.294 for FP16.

The numbers come from the repository's validation record and the records of its pull requests #589, #590, #591, #592 and #594.

Input and files

  • Text in the languages of the original model; this conversion was checked with Japanese and English sentences only. At most 144 text tokens after whitespace is collapsed and multi-character Chinese-character tokens are split. Longer text is rejected, not truncated.
  • An optional voice description in parentheses at the start of the text. No reference audio.
  • Output: 48 kHz mono Float32 WAV, 7,680 samples per patch. Ten solver steps with guidance 2.0, as in the original defaults.
  • Each folder holds six Core AI assets (tslm, ralm, proj, locenc, dit, vae), manifest.json, the original tokenizer.json, LICENSE and NOTICE. In fp16, every asset is 16-bit floating point; RMSNorm and the sinusoidal time embedding still compute in 32-bit.
  • The app pins every file of a folder by size and SHA-256. samples/ and this card are not part of a folder.

Verification

  • FP32 components against the original PyTorch implementation: all 3,934 comparisons over five sentences are within a largest error of 0.001 of the largest reference value, and all 239 stop decisions match. One call of the scalar quantizer landed on the neighboring code of a value 4.77e-7 from a rounding boundary and is accepted by a documented rule.
  • FP32 generation from text: five sentences stop at the same patch as the original. Three of 239 patches were replaced with the original value under documented rules (two quantizer boundaries, one solver sensitivity) before the comparison continued; without replacement, three sentences leave the original trajectory at those patches.
  • Swift runtime against the Python host with the same assets: 3,590 recorded calls replayed bit for bit, and with the recorded latent supplied at each patch the solver differs by at most 1.92e-5. A free run from the same seed is recorded but not judged.
  • FP16: no pass or fail. Its latents leave the FP32 criterion from the first patches, and it stopped at the same patch as FP32 in 10 of 15 generations.
  • Debug locations were removed from the assets; the programs printed without locations were equal before and after. The folders were scanned for paths of the working environment before release.

Limitations and troubleshooting

  • The audio is not the audio of the original implementation, even in FP32 with the same seed: small numerical differences near rounding boundaries change the trajectory. fp16 is a different trajectory from fp32.
  • Voice descriptions vary between runs; the original model card recommends generating one to three times. Speaker similarity, naturalness and intelligibility have not been scored.
  • No reference voice, no cloning, no streaming, no iPhone or simulator. The demo app downloads and loads the fp16 folder only; fp32 is published as the reference configuration.
  • The first generation after opening includes loading the assets, and the first load of an asset that Core AI has not specialized yet takes longer. Keep disk space for the downloaded copy, a verified copy and specialization caches.
  • If the model shows as ready but fails to open, delete it from the heading in the sidebar and download it again. The regular check of a recorded copy looks at file sizes; the full hash check runs when the screen opens the model.
  • This text contains N tokens. Shorten it to 144 tokens or fewer. means the text is over the limit.

License and attribution

The original weights and code are released under the Apache License 2.0. Each folder includes the license text in LICENSE and the source revisions and the changes made for this conversion in NOTICE.

  • Model: openbmb/VoxCPM2, revision 7936080b41163874f38610f46f438e2c0757f9fd.
  • Code: OpenBMB/VoxCPM, commit 300e4260b509066151d623dc9c0aa922cf82232b.

Follow the original model card's restrictions: do not use the model for impersonation, fraud or disinformation, and label generated audio as AI-generated.

This conversion is maintained independently of OpenBMB. VoxCPM is a name of its authors, and Core AI, Mac and Xcode are trademarks of Apple Inc.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for okayuji/voxcpm2-coreai

Base model

openbmb/VoxCPM2
Quantized
(31)
this model