Sample hotwords v2 for the current engine (SDK 0.1.1) (model card)
Browse files
README.md
CHANGED
|
@@ -8,128 +8,91 @@ tags:
|
|
| 8 |
- speech
|
| 9 |
- hotword
|
| 10 |
- wake-word
|
| 11 |
-
- voice
|
| 12 |
- keyword-spotting
|
| 13 |
- on-device
|
| 14 |
- private
|
| 15 |
-
- edge
|
| 16 |
pipeline_tag: audio-classification
|
| 17 |
library_name: wakecore
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# WakeCore
|
| 21 |
|
| 22 |
-
>
|
| 23 |
> Lokale Hotword-Erkennung für private KI-Systeme.
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
entirely on-device — no cloud calls, no API keys, no telemetry — so you
|
| 28 |
-
stay in control of the microphone signal.
|
| 29 |
|
| 30 |
-
**
|
| 31 |
-
on-device hotword detection.** Custom `.wake` files for your own phrases
|
| 32 |
-
are produced by the WakeCore generator at <https://wakecore.de>.
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
```bash
|
| 39 |
-
pip install wakecore[audio]
|
| 40 |
-
wakecore install-engine
|
|
|
|
|
|
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
```python
|
| 44 |
from wakecore import Runtime, AudioCapture
|
| 45 |
|
| 46 |
-
with Runtime.load("hey_computer.wake") as rt, \
|
| 47 |
AudioCapture(rt.sample_rate, rt.frame_length) as mic:
|
| 48 |
-
for frame in mic:
|
| 49 |
if rt.process(frame):
|
| 50 |
print("wake!")
|
| 51 |
```
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
/
|
| 63 |
-
|
| 64 |
-
``
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
| Family | Architectures |
|
| 82 |
-
|-------------------|---------------------------------------------------|
|
| 83 |
-
| Linux | x86_64, i386 |
|
| 84 |
-
| macOS | x86_64, arm64 |
|
| 85 |
-
| Windows | amd64, i686 |
|
| 86 |
-
| Raspberry Pi | cortex-a7, cortex-a53, arm11 |
|
| 87 |
-
| ARM Linux | a9-neon (generic ARMv7+NEON) |
|
| 88 |
-
| Android | x86, x86_64, armeabi-v7a, arm64-v8a |
|
| 89 |
-
| iOS | universal static |
|
| 90 |
-
| watchOS | universal static |
|
| 91 |
-
|
| 92 |
-
## What's in this repository
|
| 93 |
-
|
| 94 |
-
| Path | Purpose |
|
| 95 |
-
|-----------------------------------|------------------------------------------------|
|
| 96 |
-
| `hotwords/*.wake` | Ready-to-use sample hotword files |
|
| 97 |
-
| `engine/<plat>/<arch>/<ver>/` | Native engine binary per platform |
|
| 98 |
-
| `engine/<plat>/<arch>/<ver>/SHA256SUMS` | Integrity manifest |
|
| 99 |
-
|
| 100 |
-
## The `.wake` file format
|
| 101 |
-
|
| 102 |
-
`.wake` files are sealed binary containers — opaque to user code. The
|
| 103 |
-
SDK simply hands the body to the bundled inference engine. New `.wake`
|
| 104 |
-
files are produced by the WakeCore generator service.
|
| 105 |
|
| 106 |
## Audio format
|
| 107 |
|
| 108 |
-
|
| 109 |
-
- Channels: **mono**
|
| 110 |
-
- Sample format: **16-bit signed little-endian PCM**
|
| 111 |
-
- Frame size: **512 samples** per `process()` call (~32 ms)
|
| 112 |
-
|
| 113 |
-
## Why WakeCore
|
| 114 |
-
|
| 115 |
-
| | WakeCore | Cloud APIs | Other open SDKs |
|
| 116 |
-
|-|----------|------------|------------------|
|
| 117 |
-
| On-device | ✓ | ✗ | ✓ |
|
| 118 |
-
| No API key | ✓ | ✗ | ✓ |
|
| 119 |
-
| Cross-language | ✓ Python · Node.js · C · C++ · C# · Rust | varies | usually single-language |
|
| 120 |
-
| Free tier | ✓ first hotword free | rare | training-yourself |
|
| 121 |
-
| German-aware | ✓ | rarely | rarely |
|
| 122 |
-
| `.wake` files portable across platforms | ✓ | n/a | varies |
|
| 123 |
|
| 124 |
-
##
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
`
|
|
|
|
| 129 |
|
| 130 |
## Links
|
| 131 |
|
| 132 |
-
- GitHub:
|
| 133 |
-
- Website:
|
| 134 |
-
-
|
| 135 |
-
- License: [MIT](https://github.com/keyvan-ai/wakecore/blob/main/LICENSE)
|
|
|
|
| 8 |
- speech
|
| 9 |
- hotword
|
| 10 |
- wake-word
|
|
|
|
| 11 |
- keyword-spotting
|
| 12 |
- on-device
|
| 13 |
- private
|
|
|
|
| 14 |
pipeline_tag: audio-classification
|
| 15 |
library_name: wakecore
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# WakeCore sample hotwords
|
| 19 |
|
| 20 |
+
> Open hotword detection for private voice systems.
|
| 21 |
> Lokale Hotword-Erkennung für private KI-Systeme.
|
| 22 |
|
| 23 |
+
Eight ready-made `.wake` files for the [WakeCore SDK](https://github.com/Keyvanhardani/wakecore).
|
| 24 |
+
Detection runs entirely on your device: no cloud calls, no API keys, no telemetry.
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
**Requirements (as of October 2026)**
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
- `.wake` format **v2** (regenerated on 2026-10-28). The files published here in
|
| 29 |
+
May 2026 used format v1, which the current engine rejects
|
| 30 |
+
(`unsupported or damaged .wake file`).
|
| 31 |
+
- The WakeCore engine for **Linux x86_64** (glibc 2.29 or newer), as published on
|
| 32 |
+
2026-10-28 (`wc_version()` reports `0.1.0`). Other platforms are not available yet.
|
| 33 |
+
- SDK 0.1.1 or newer recommended (0.1.0 ignores the `sensitivity` argument).
|
| 34 |
|
| 35 |
+
## Quick start (Python)
|
| 36 |
|
| 37 |
```bash
|
| 38 |
+
pip install "wakecore[audio]"
|
| 39 |
+
wakecore install-engine # engine -> ~/.wakecore/0.1.0/, SHA-256 checked
|
| 40 |
+
hf download keyvan-ai/wakecore --local-dir wakecore-hotwords
|
| 41 |
+
wakecore check wakecore-hotwords/hotwords/hey_computer.wake
|
| 42 |
+
wakecore listen wakecore-hotwords/hotwords/hey_computer.wake
|
| 43 |
```
|
| 44 |
|
| 45 |
```python
|
| 46 |
from wakecore import Runtime, AudioCapture
|
| 47 |
|
| 48 |
+
with Runtime.load("hotwords/hey_computer.wake") as rt, \
|
| 49 |
AudioCapture(rt.sample_rate, rt.frame_length) as mic:
|
| 50 |
+
for frame in mic: # 512 samples, 16 kHz, mono, int16
|
| 51 |
if rt.process(frame):
|
| 52 |
print("wake!")
|
| 53 |
```
|
| 54 |
|
| 55 |
+
Node.js (`npm install wakecore`), C, C++, Rust and C# use the same files and
|
| 56 |
+
engine; see the [GitHub README](https://github.com/Keyvanhardani/wakecore#readme).
|
| 57 |
+
|
| 58 |
+
## Files
|
| 59 |
+
|
| 60 |
+
| File | Say | Default sensitivity | Detected | False alarms in speech | Fires on other samples |
|
| 61 |
+
|-------------------------------|---------------|-----|-------|-------------------------|---------------------|
|
| 62 |
+
| `hotwords/computer_an.wake` | Computer an | 0.4 | 34/36 | 8 (all with "Computer") | 9/12 *Hey Computer* |
|
| 63 |
+
| `hotwords/guten_morgen.wake` | Guten Morgen | 0.7 | 24/36 | 1 | – |
|
| 64 |
+
| `hotwords/hallo_welt.wake` | Hallo Welt | 0.7 | 33/36 | – | – |
|
| 65 |
+
| `hotwords/hey_assistant.wake` | Hey Assistant | 0.4 | 35/36 | 2 ("the assistant …") | – |
|
| 66 |
+
| `hotwords/hey_computer.wake` | Hey Computer | 0.4 | 36/36 | 6 (all with "Computer") | 11/12 *Computer an* |
|
| 67 |
+
| `hotwords/hey_keyvan.wake` | Hey Keyvan | 0.5 | 36/36 | – | – |
|
| 68 |
+
| `hotwords/okay_deutsch.wake` | Okay Deutsch | 0.5 | 36/36 | – | – |
|
| 69 |
+
| `hotwords/wake_up.wake` | Wake up | 0.5 | 35/36 | 1 ("woke up") | – |
|
| 70 |
+
|
| 71 |
+
Measured on 2026-10-28 at each file's default sensitivity with three synthetic
|
| 72 |
+
voices: *Detected* = 12 recordings of the phrase × three conditions (normal,
|
| 73 |
+
20 dB quieter, room reverb). *False alarms in speech* = recordings with a
|
| 74 |
+
detection in 9.3 minutes of German and English speech without the hotword
|
| 75 |
+
(21 of 48 texts contain similar words such as "Computer" or "woke up").
|
| 76 |
+
*Fires on other samples* = recordings of another sample phrase that trigger the
|
| 77 |
+
file. *Computer an* and *Hey Computer* react to the word "Computer" on its own and
|
| 78 |
+
to each other, so use only one of them. *Guten Morgen* is the weakest file with
|
| 79 |
+
reverb (4 of 12). Synthetic voices are not real rooms; sensitivity runs from 0
|
| 80 |
+
to 1 (higher = more detections and more false alarms), so test with your own
|
| 81 |
+
microphone before relying on a value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
## Audio format
|
| 84 |
|
| 85 |
+
16 kHz, mono, 16-bit signed little-endian PCM, 512 samples (32 ms) per frame.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
+
## License
|
| 88 |
|
| 89 |
+
The SDK and these sample files are published under the MIT license. The `.wake`
|
| 90 |
+
files contain a third-party component under the Apache License 2.0; see
|
| 91 |
+
`hotwords/NOTICE` and `hotwords/LICENSE-Apache-2.0.txt` and keep both with the
|
| 92 |
+
files when you pass them on.
|
| 93 |
|
| 94 |
## Links
|
| 95 |
|
| 96 |
+
- GitHub: <https://github.com/Keyvanhardani/wakecore>
|
| 97 |
+
- Website and custom hotwords: <https://wakecore.de>
|
| 98 |
+
- PyPI: <https://pypi.org/project/wakecore/> · npm: <https://www.npmjs.com/package/wakecore>
|
|
|