Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sonnetics (Python)

CI PyPI version Python versions License Documentation

Add a custom “Hey ___” wake word to your project—train a phrase on sonnetics.com, then run detection locally with this library. No audio leaves your machine; the client is open source and does not phone home.

High-level Python API over sonnetics-core.

Get a model

  1. Sign in and create a wake word on the Model Dashboard (training is free; you’ll get an email when it’s ready).
  2. Copy your model ID from the dashboard and use it below.

Treat the model ID like a secret link—anyone with it can download your model file.

Install

pip install sonnetics

Or with uv:

uv add sonnetics

Requires Python 3.9+.

Quick start

from sonnetics import WakeWordDetector

detector = WakeWordDetector.create(
    model_id="your-model-id",
)

for event in detector.listen():
    print(f"Detected: {event.phrase}")
    break

listen() blocks on the default microphone until a detection.

Examples

More samples in examples/:

See the Python documentation for full API details.

Configuration

Set SONNETICS_CACHE_DIR to change where downloaded models are stored (default: ~/.cache/sonnetics on Linux). Handy in CI, containers, or read-only home directories.

Metadata

Release files for sonnetics 0.0.1b4

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

Source distribution (sdist)

Source distribution for sonnetics 0.0.1b4
File Size Uploaded Provenance Actions
sonnetics-0.0.1b4.tar.gz 311.0 kB With provenance Details for sonnetics-0.0.1b4.tar.gz

Built distribution (wheel)

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

Total release size: 323.7 kB

Release files / sonnetics-0.0.1b4.tar.gz

Download URL sonnetics-0.0.1b4.tar.gz
Size 311.0 kB
Tags Source
SHA-256 checksum
How to use checksums
95e95b7b92b5f2cca9109a47879d391cd708546566ec56adc90458f928f88186
BLAKE2b-256 checksum
How to use checksums
f6a49395b7552501a356ab1190046193c0cadc131b7fe165d4a7067b42233f40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Release files / sonnetics-0.0.1b4-py3-none-any.whl

Download URL sonnetics-0.0.1b4-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
003c9ebfd14b8d2bf9a282dca6007d5c688dd68aacee72a0540bb328cefce747
BLAKE2b-256 checksum
How to use checksums
a083db6993b930d0e473f471c9743e4b561b043fc177dadba8e5f1afa2754fb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Security for sonnetics 0.0.1b4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sonnetics-0.0.1b4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

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