clavarium 0.2.243 → 0.2.244-beta.1
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.
- package/deploy/relay.sh +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/server/boxes.mjs +5 -3
package/deploy/relay.sh
CHANGED
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.244-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.244-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/boxes.mjs
CHANGED
|
@@ -33,7 +33,9 @@ export const FIRMWARE_MINUTES = 10;
|
|
|
33
33
|
/* THE WAKE WORD HEARD AGAIN (03-11): « Mésange » and what a dictation makes of it (mes anges, mais sange...). */
|
|
34
34
|
export const CLIP_MAX_BYTES = 16_000 * 2 * 3;
|
|
35
35
|
export const WAKE_HEARD = /\bm[ae]i?s+\s?an?ge?s?\b|\b[ml][ae]s anges?\b|\bmesange|\bmaisange|\bmessage?s?\b|\bmessenge?s?\b/; /* « Messenges »: Whisper's reading of the server's own voice saying it */
|
|
36
|
-
|
|
36
|
+
/* ON BY DEFAULT since 21-11 (the owner, #396: a box woke on the radio some 8 times a morning, the word never heard,
|
|
37
|
+
each time a sentence sent): a wake whose word is not heard again sends nothing. CLAVARIUM_WAKE_DROP=0 turns it off. */
|
|
38
|
+
export const WAKE_DROP = process.env.CLAVARIUM_WAKE_DROP !== '0';
|
|
37
39
|
/* THE WORD BY ITS SOUND (05-11): on a lone word, Whisper writes « Mise en jeu », « Les ongles », « Mes doigts »
|
|
38
40
|
for « Mésange » -- 14 of 21 real calls of 05-11 were marked ✗ by the spelling alone. Read by its sound: a first
|
|
39
41
|
word in m/l ending on an s/z sound, then a word in an/en/on (« mise en… », « les ongles », « mes anges »), or
|
|
@@ -951,8 +953,8 @@ export class Boxes {
|
|
|
951
953
|
}
|
|
952
954
|
if (!text) { this.#log(`voice box ${box0.name}: ${seconds} s heard, nothing recognised (${soundOf(pcm)})`); await lost("Pardon, je n'ai rien compris. Tu peux répéter ?"); return; }
|
|
953
955
|
const box = link.box();
|
|
954
|
-
/* The wake word heard again (wake.clip): said beside the message; dropped in silence
|
|
955
|
-
|
|
956
|
+
/* The wake word heard again (wake.clip): said beside the message; not heard, dropped in silence (WAKE_DROP, on
|
|
957
|
+
since 21-11, #396), one discreet line in the thread. */
|
|
956
958
|
const check = link.wakeCheck ? await link.wakeCheck.catch(() => null) : null; link.wakeCheck = null;
|
|
957
959
|
/* WOKEN BY THE WORD, BUT NO CLIP TO CHECK IT (06-11: « ce ne sera pas au niveau de fond », voice 195, passed): as a
|
|
958
960
|
clip with no word in it -- dropped only when faint too; a firm voice, a button, a knock still go. */
|