Skip to main content

vinoSpeak

Intel NPU-powered text-to-speech using the Kokoro-82M INT8 OpenVINO model. Text goes in, a WAV comes out, and nothing leaves your machine after the one-time model download.

Requirements

  • Python 3.11 or newer
  • An Intel NPU with a compatible driver. GPU and CPU also work (--device GPU, --device CPU).
  • Internet access on first run to download the model (~160 MB)

OpenVINO is pinned to the release vinoPop and vinoWhisper use, so programs sharing one NPU never run mismatched runtimes.

Install

From PyPI, with uv:

uv tool install vinospeak
vinospeak "Hello."

OpenVINO is pinned exactly; everything else resolves to the newest release that fits. To install exactly what uv.lock pins, hashes included, use a checkout. --locked fails if the lock is out of date:

git clone https://github.com/karanshukla/vinoSpeak && cd vinoSpeak
uv sync --locked
uv run vinospeak "Hello."

To put that checkout's vinospeak on your PATH with the lock's versions as constraints (uv tool install doesn't read uv.lock by itself):

uv export --locked --no-dev --no-emit-project --no-hashes -o constraints.txt
uv tool install --constraints constraints.txt .

Synthesize speech

The first run downloads OpenVINO/Kokoro-82M-int8-ov from Hugging Face, at one pinned commit, and checks every file against its sha256 (see SECURITY.md). The model is cached under ${XDG_CACHE_HOME:-~/.cache}/vinospeak/ by default.

vinospeak "Hello from vinoSpeak."                     # plays it on your speakers
vinospeak "Hello from vinoSpeak." --output hello.wav  # saves a WAV instead

Playback goes through pw-play (PipeWire, what Wayland desktops run), falling back to paplay or aplay.

The default inference device is the Intel NPU. Choose a different OpenVINO device, voice, language, speed, or model directory with the corresponding options:

vinospeak "A sample sentence." \
  --device NPU \
  --voice af_heart \
  --language en-us \
  --speed 1.0 \
  --model-dir ./kokoro-model \
  --output speech.wav

Use vinospeak --help to see all options. The audio uses the sample rate reported by OpenVINO GenAI.

Check this machine

vinospeak-doctor          # --json for a bug report

Reports the OpenVINO packages and devices, whether the cached model still matches its pins, and, if ovfetch is on your PATH, whether your OpenVINO version is inside the range recorded as working with your NPU driver. Install it with cargo install ovfetch --locked. ovfetch is advisory here: it never changes what gets installed or run.

Use it from Python

from vino_speak import Synthesizer

synth = Synthesizer("NPU")  # compiles the model once; reuse it
audio = synth.synthesize("Hello.")  # audio.samples (float32), audio.sample_rate

speech = synth.speak("A long passage.")  # returns at once, plays in the background
speech.stop()  # cuts it off; speech.wait() blocks until it finishes instead

speak() synthesizes the first sentence on its own and plays it while the rest is synthesized in chunks that at most double in size, so speech starts after about 1.5 s on the NPU however long the text is.

Development

See CONTRIBUTING.md. uv run poe check runs everything CI does; none of it needs OpenVINO or an NPU.

Metadata

Release files for vinospeak 0.1.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 vinospeak 0.1.0
File Size Uploaded Provenance Actions
vinospeak-0.1.0.tar.gz 30.8 kB Without provenance Details for vinospeak-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vinospeak 0.1.0
File Interpreter ABI Platform Actions
vinospeak-0.1.0-py3-none-any.whl Python 3 none any Details for vinospeak-0.1.0-py3-none-any.whl

Total release size: 52.7 kB

Release files / vinospeak-0.1.0.tar.gz

Download URL vinospeak-0.1.0.tar.gz
Size 30.8 kB
Tags Source
SHA-256 checksum
How to use checksums
72db998f362b9ed69094a1ff24c53b35f71eb395fe601e00e5d7e11ae06805b0
BLAKE2b-256 checksum
How to use checksums
dd151b8028bdb2507666c4ded647e62171853c6c1ab7e6cb44dcf1fc3a5ec0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vinospeak-0.1.0-py3-none-any.whl

Download URL vinospeak-0.1.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
276fe16e1d2bf916faf33661f2f998e1b393f99cf2a7b9f8e1c1aeea9e8c0894
BLAKE2b-256 checksum
How to use checksums
c6c78efbb8c5a48a634c432e297c531ded5cddf71256deffc1ab005b27500613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for vinospeak 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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