Skip to main content

realtimetts-qwen-native-cpu

realtimetts-qwen-native-cpu is the CPU-only native binding used by the RealtimeTTS Qwen CPU server. The distribution name is realtimetts-qwen-native-cpu; the Python import is qwentts_cpp_cpu, so it can be installed beside the CUDA package without an import collision.

Version 0.3.0 bundles the qualified qwentts.cpp CPU implementation at commit b47728bd6cb60331bd02afacb390e533479329b5 (C ABI v5), including the parked worker pool, strict affinity handling, onset-silence profiles, and CPU recovery path. Model weights and voice references are not included.

Install

In a fresh virtual environment, install the matching wheel from PyPI:

python -m pip install --upgrade pip
python -m pip install "realtimetts-qwen-native-cpu==0.3.0"
python -c "import qwentts_cpp_cpu as q; print(q.__version__, q.QT_ABI_VERSION, q.CPU_ONLY)"

The release provides these CPU wheels:

Platform Wheel baseline
Linux x86_64 manylinux_2_35_x86_64 (glibc 2.35 or newer)
Windows x86_64 win_amd64
macOS Intel macosx_13_0_x86_64
macOS Apple Silicon macosx_11_0_arm64

The native payload has no CUDA, Metal, Vulkan, OpenMP, or BLAS dependency. The x86_64 builds use GGML_NATIVE=OFF with a fixed AVX2/FMA/F16C/BMI2 kernel baseline; they require a CPU with those features. The macOS arm64 wheel is built separately for Apple Silicon. There is no runtime CPU dispatcher or generic x86 fallback.

Only the four platform families above have bundled native wheels. On another platform, do not rely on an automatic source fallback: the sdist intentionally refuses to create a wheel without the pinned native library and a qualified qwentts.cpp checkout.

Use

from qwentts_cpp_cpu import QwenLibrary, QwenTTS

library = QwenLibrary()
assert library.cpu_only()
print(library.version())

Model files can be resolved from the configured Hugging Face repository:

from qwentts_cpp_cpu import resolve_gguf_paths

talker, codec = resolve_gguf_paths(
    "Qwen/Qwen3-TTS-12Hz-0.6B-Base", quant="Q8_0"
)

The full RealtimeTTS CPU server supplies HTTP streaming, segmentation, language detection, and recovery behavior on top of this binding.

Build from source

Clone this repository and the pinned native source, then build the wheel and sdist:

# Requires CMake, a C++ compiler, and the platform's native build tools.
git clone --branch codex/qwen-cpu-public-release https://github.com/KoljaB/realtimetts-qwen-native.git
cd realtimetts-qwen-native
git clone https://github.com/KoljaB/qwentts.cpp.git third_party/qwentts.cpp
git -C third_party/qwentts.cpp checkout b47728bd6cb60331bd02afacb390e533479329b5
git -C third_party/qwentts.cpp submodule update --init --recursive
python -m pip install --upgrade build
python scripts/build_native.py --source third_party/qwentts.cpp --backend cpu --clean
python -m build --sdist --wheel

The build helper verifies the native revision and ABI before configuring CMake. The wheel bundles only qwen, ggml, ggml-base, and ggml-cpu shared libraries with an origin-relative runtime path; it refuses a build with no native payload.

Metadata

Release files for realtimetts-qwen-native-cpu 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for realtimetts-qwen-native-cpu 0.3.0
File Size Uploaded
realtimetts_qwen_native_cpu-0.3.0.tar.gz 37.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for realtimetts-qwen-native-cpu 0.3.0
File
realtimetts_qwen_native_cpu-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
realtimetts_qwen_native_cpu-0.3.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details
realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details
realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 5.2 MB

Release files / realtimetts_qwen_native_cpu-0.3.0.tar.gz

Download URL realtimetts_qwen_native_cpu-0.3.0.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a4b4e999113d63c71a5fa600e8765c9f77b591cd9d9cb6bde0255d45e9ed5ce2
BLAKE2b-256 checksum
How to use checksums
6a7e3eebbac8e7dce27c597eacc018ff62b3dab60c5e920e9d49ddd84dfb2e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / realtimetts_qwen_native_cpu-0.3.0-py3-none-win_amd64.whl

Download URL realtimetts_qwen_native_cpu-0.3.0-py3-none-win_amd64.whl
Size 1.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5d36ee687333d8320c024e3c85061a78090b0ca3c71752d722362b410c647b04
BLAKE2b-256 checksum
How to use checksums
c85d4d4b900395ba89abbb93ca9b63fa3c49524a33f28d6768947c4290c6d3d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / realtimetts_qwen_native_cpu-0.3.0-py3-none-manylinux_2_35_x86_64.whl

Download URL realtimetts_qwen_native_cpu-0.3.0-py3-none-manylinux_2_35_x86_64.whl
Size 896.5 kB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
037509965ea064d111366f7d6b1519283277e4219dbaddfc49c037217aaadf6b
BLAKE2b-256 checksum
How to use checksums
7a391e3e40d8932e95f0fa0533bd28252a6588899890efd9c8c333723c5a284f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_13_0_x86_64.whl

Download URL realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_13_0_x86_64.whl
Size 1.7 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
03834b47774b83759fc6bb2e2031998327f3348bd9c045dcccefc7f7ed16af63
BLAKE2b-256 checksum
How to use checksums
5e9a94a25fd7d626c21a3a87ace91153fa186b98c44389eba4fb73b415a94f4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_11_0_arm64.whl

Download URL realtimetts_qwen_native_cpu-0.3.0-py3-none-macosx_11_0_arm64.whl
Size 1.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
73e2dbf1525ec8db89dfa2e636192f03b640d125b49887c81e9a7db107a9b701
BLAKE2b-256 checksum
How to use checksums
1727a304a7ad1988d141ccc1e8dd2aa53f9d2c0bf52ee0f817773fd8ae75b9ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release history Release notifications | RSS feed

0.4.2

5 release files

0.4.1

5 release files

0.4.0

5 release files

This release

0.3.0 This release

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page