Keyven commited on
Commit
4132b37
·
verified ·
1 Parent(s): 7b8c895

Sample hotwords v2 for the current engine (SDK 0.1.1) (model card)

Browse files
Files changed (1) hide show
  1. README.md +55 -92
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
- > **Open hotword detection for private voice systems.**
23
  > Lokale Hotword-Erkennung für private KI-Systeme.
24
 
25
- WakeCore is a cross-language SDK family for embedding always-listening
26
- hotword ("wake-word") detection into your applications. Detection runs
27
- entirely on-device — no cloud calls, no API keys, no telemetry — so you
28
- stay in control of the microphone signal.
29
 
30
- **Drop a `.wake` file into your app, point WakeCore at it, and you get
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
- ## Quick start
 
 
 
 
 
35
 
36
- ### Python
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
- ### Node.js
54
-
55
- ```bash
56
- npm install wakecore
57
- ```
58
-
59
- ```javascript
60
- const { Runtime } = require("wakecore");
61
- const rt = Runtime.load("hey_computer.wake");
62
- // feed PCM-16 mono frames of rt.bytesPerFrame bytes
63
- rt.close();
64
- ```
65
-
66
- ### Rust
67
-
68
- ```toml
69
- [dependencies]
70
- wakecore = "0.1"
71
- ```
72
-
73
- ```rust
74
- let mut rt = wakecore::Runtime::load("hey_computer.wake")?;
75
- let frame = [0i16; 512];
76
- if rt.process(&frame)? { println!("wake!"); }
77
- ```
78
-
79
- ## Supported platforms (8 OS families, 17 binary variants)
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
- - Sample rate: **16,000 Hz**
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
- ## Tags
125
 
126
- `audio` · `speech` · `hotword` · `wake-word` · `keyword-spotting` ·
127
- `voice-assistant` · `private-voice` · `german` · `on-device` ·
128
- `edge-ai` · `iot`
 
129
 
130
  ## Links
131
 
132
- - GitHub: <https://github.com/keyvan-ai/wakecore>
133
- - Website: <https://wakecore.de>
134
- - Generator: <https://api.wakecore.de>
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>