@neuvybe/jarvis 0.46.2 → 0.46.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present Silero Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,24 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2024-2025, Daily
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,113 @@
1
+ # Vendored models
2
+
3
+ This directory holds the third-party ONNX models Jarvis ships and runs itself on the
4
+ shared onnxruntime-web WASM runtime (proposal 0026):
5
+
6
+ - `smart-turn-v3.1-cpu.onnx` - the prosody endpointer (this section)
7
+ - `silero_vad.onnx` - the speech/no-speech VAD (second section; proposal 0028 R1)
8
+
9
+ # smart-turn-v3.1-cpu.onnx
10
+
11
+ The prosody endpointer behind the Natural Turn Controller (proposal 0024 Decision 5).
12
+ It answers "does this intonation sound like a finished thought?" so Jarvis can tell a
13
+ mid-thought pause from a finished turn and not cut the user off.
14
+
15
+ ## What it is
16
+
17
+ - File: `smart-turn-v3.1-cpu.onnx`
18
+ - Architecture: Whisper-tiny encoder + a linear turn-completion classifier (~8M params)
19
+ - Quantization: int8, CPU build (the `cpu` variant; no GPU/DirectML/CUDA needed)
20
+ - Input: `input_features`, float32 `[batch, 80, 800]` - Whisper-tiny log-mel of an 8 s
21
+ window (80 mel bins x 800 frames at 16 kHz, hop 160)
22
+ - Output: `logits`, float32 `[batch, 1]`. Despite the name this is ALREADY a probability
23
+ in `[0, 1]` - the sigmoid is baked into the graph. Read it directly as P(complete); do
24
+ NOT apply another sigmoid (that double-sigmoid was the voice-deps spike's
25
+ miscalibration).
26
+
27
+ ## Provenance
28
+
29
+ - Source: https://huggingface.co/pipecat-ai/smart-turn-v3 (file
30
+ `smart-turn-v3.1-cpu.onnx`)
31
+ - Upstream project: https://github.com/pipecat-ai/smart-turn
32
+ - Downloaded: 2026-06-09
33
+ - Size: 8,679,180 bytes
34
+ - SHA-256: `fb68d55c2d542ce79e44b12013bfd571e90df8594ab096d757198e851b0c6594`
35
+
36
+ To re-verify the file, run this from the directory that contains it
37
+ (`packages/core/assets/` in the repo, `dist/assets/` in an installed package):
38
+
39
+ ```
40
+ sha256sum smart-turn-v3.1-cpu.onnx
41
+ ```
42
+
43
+ ## License
44
+
45
+ BSD 2-Clause, Copyright (c) 2024-2025, Daily. The full text is in
46
+ `LICENSE-smart-turn-v3` alongside this file. Redistributed unmodified.
47
+
48
+ ## Calibration
49
+
50
+ Our TypeScript log-mel front end (`packages/core/src/speech/log-mel.ts`) is a faithful
51
+ port of pipecat's vendored numpy reference. The committed fixtures under
52
+ `packages/core/src/speech/__fixtures__/smart-turn/` pin our features against that
53
+ reference: they match to float32 round-off (~1e-5 worst case; our waveform normalization
54
+ runs in float64 where the reference uses float32). That feature parity is the
55
+ platform-stable calibration anchor. The model output is read directly as P(complete) (no
56
+ double-sigmoid); the int8 model's absolute output is not bit-reproducible across
57
+ ONNX-runtime builds / CPUs, so the exact P is not pinned cross-platform. See the
58
+ calibration tests and `docs/notebook/2026-06-09-smart-turn-calibration.md`.
59
+
60
+ # silero_vad.onnx
61
+
62
+ The speech/no-speech classifier (proposal 0028 R1): it replaces the RMS-energy speech
63
+ detection in both the core's Turn Controller (per-frame speech/silence driving turn-end)
64
+ and the CLI's barge-in onset - the macos-capture-rate wrench's named follow-up. Energy
65
+ detects loudness; Silero detects speech.
66
+
67
+ ## What it is
68
+
69
+ - File: `silero_vad.onnx`
70
+ - Architecture: Silero VAD v5 (STFT front end + conv encoder + recurrent decoder,
71
+ ~1.8M params, float32)
72
+ - Input: `input`, float32 `[batch, 576]` = 64 samples of CONTEXT (the last 64 samples
73
+ of the previous window; zeros at stream start) + 512 new samples at 16 kHz (~32 ms
74
+ per window); `state`, float32 `[2, batch, 128]` (recurrent state carried across
75
+ windows within a stream); `sr`, int64 = 16000
76
+ - Output: `output`, float32 `[batch, 1]` = P(speech) for the window; `stateN`, float32
77
+ `[2, batch, 128]` = the next recurrent state
78
+ - IMPORTANT: the graph silently ACCEPTS a context-less `[batch, 512]` input and returns
79
+ garbage (~0.0006 for speech and silence alike). The official silero-vad OnnxWrapper's
80
+ 64-sample context prepend is load-bearing; `packages/core/src/speech/silero-vad-runner.ts`
81
+ implements it and documents the verification (2026-06-11).
82
+
83
+ ## Provenance
84
+
85
+ - Source: copied from decibri's bundled model (`node_modules/decibri/models/silero_vad.onnx`,
86
+ decibri 4.3.0) - the same artifact decibri runs in its own `vad: 'silero'` mode, so its
87
+ calibration defaults (threshold 0.5, holdoff 300 ms) carry over
88
+ - Upstream project: https://github.com/snakers4/silero-vad (the v5 `silero_vad.onnx`
89
+ release artifact decibri redistributes)
90
+ - Copied: 2026-06-11
91
+ - Size: 2,327,524 bytes
92
+ - SHA-256: `1a153a22f4509e292a94e67d6f9b85e8deb25b4988682b7e174c65279d8788e3`
93
+
94
+ To re-verify the file, run this from the directory that contains it
95
+ (`packages/core/assets/` in the repo, `dist/assets/` in an installed package):
96
+
97
+ ```
98
+ sha256sum silero_vad.onnx
99
+ ```
100
+
101
+ ## License
102
+
103
+ MIT, Copyright (c) 2020-present Silero Team. The full text is in `LICENSE-silero-vad`
104
+ alongside this file. Redistributed unmodified.
105
+
106
+ ## Calibration
107
+
108
+ The probability is read directly from `output` (no post-processing). decibri's proven
109
+ defaults are mirrored where the model is consumed: speech threshold 0.5
110
+ (`SileroFrameClassifier` / `SileroBargeInDetector`), onset debounce ~2 windows, and
111
+ re-arm holdoff 300 ms (the barge-in detector). The model is float32 (not quantized), so
112
+ tests assert speech-vs-silence separation on synthesized audio rather than absolute
113
+ probabilities; see `silero-vad-runner.test.ts`.