@openclaw/whatsapp 2026.5.31-beta.2 → 2026.5.31-beta.4
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/dist/api.js +8 -8
- package/dist/{channel-DA2BAIo5.js → channel-BbtRTgNk.js} +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-Q1LZDB5s.js → channel.runtime-Cf2UgrhZ.js} +3 -3
- package/dist/{channel.setup-DHXOo4h5.js → channel.setup-DaIyWos-.js} +1 -1
- package/dist/{connection-controller-Bnm4INld.js → connection-controller-B07CNCkw.js} +1 -1
- package/dist/{login-2fuBM7Je.js → login-CRtqboZq.js} +2 -2
- package/dist/{login-qr-B1o7GFy8.js → login-qr-B27eAPhh.js} +8 -4
- package/dist/login-qr-runtime.js +5 -5
- package/dist/{monitor-BVRq04Dt.js → monitor-CnioHf5V.js} +34 -28
- package/dist/runtime-api.js +3 -3
- package/dist/{session-DyGWNClj.js → session-mBuvPUCy.js} +27 -18
- package/dist/{setup-core-OvPMaAsx.js → setup-core-C3XZ2KBH.js} +5 -5
- package/dist/{setup-finalize-Dk23pfKc.js → setup-finalize-B7FVDzwJ.js} +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-F-jVrH8u.js → setup-surface-CGTWO_-E.js} +1 -1
- package/node_modules/audio-buffer/.eslintrc.json +44 -0
- package/node_modules/audio-buffer/.github/workflows/node.js.yml +31 -0
- package/node_modules/audio-buffer/.travis.yml +7 -0
- package/node_modules/{@audio/decode-opus → audio-buffer}/LICENSE +2 -5
- package/node_modules/audio-buffer/index.js +76 -0
- package/node_modules/audio-buffer/package.json +37 -0
- package/node_modules/audio-buffer/readme.md +56 -0
- package/node_modules/audio-decode/.eslintrc.json +43 -0
- package/node_modules/audio-decode/.github/workflows/test.js.yml +20 -11
- package/node_modules/audio-decode/.travis.yml +13 -0
- package/node_modules/audio-decode/audio-decode.d.ts +10 -48
- package/node_modules/audio-decode/audio-decode.js +77 -193
- package/node_modules/audio-decode/package.json +21 -49
- package/node_modules/audio-decode/readme.md +29 -129
- package/node_modules/audio-decode/tea.yaml +6 -0
- package/node_modules/audio-decode/test-case.js +11 -0
- package/node_modules/audio-decode/test.html +10 -29
- package/node_modules/audio-decode/test.js +107 -0
- package/node_modules/node-wav/README.md +35 -0
- package/node_modules/node-wav/file.wav +0 -0
- package/node_modules/node-wav/index.js +291 -0
- package/node_modules/node-wav/package.json +29 -0
- package/node_modules/node-wav/tests/file1.wav +0 -0
- package/node_modules/node-wav/tests/test.js +66 -0
- package/node_modules/node-wav/x.js +12 -0
- package/node_modules/node-wav/x.json +86702 -0
- package/node_modules/node-wav/x.js~ +13 -0
- package/npm-shrinkwrap.json +32 -149
- package/package.json +5 -5
- package/node_modules/@audio/decode-aac/LICENSE +0 -9
- package/node_modules/@audio/decode-aac/README.md +0 -60
- package/node_modules/@audio/decode-aac/decode-aac.d.ts +0 -16
- package/node_modules/@audio/decode-aac/decode-aac.js +0 -391
- package/node_modules/@audio/decode-aac/package.json +0 -47
- package/node_modules/@audio/decode-aac/src/aac.wasm.cjs +0 -0
- package/node_modules/@audio/decode-aiff/LICENSE +0 -21
- package/node_modules/@audio/decode-aiff/README.md +0 -53
- package/node_modules/@audio/decode-aiff/decode-aiff.d.ts +0 -16
- package/node_modules/@audio/decode-aiff/decode-aiff.js +0 -583
- package/node_modules/@audio/decode-aiff/package.json +0 -42
- package/node_modules/@audio/decode-amr/LICENSE +0 -191
- package/node_modules/@audio/decode-amr/README.md +0 -65
- package/node_modules/@audio/decode-amr/decode-amr.d.ts +0 -16
- package/node_modules/@audio/decode-amr/decode-amr.js +0 -159
- package/node_modules/@audio/decode-amr/package.json +0 -48
- package/node_modules/@audio/decode-amr/src/amr.wasm.cjs +0 -0
- package/node_modules/@audio/decode-caf/LICENSE +0 -21
- package/node_modules/@audio/decode-caf/README.md +0 -55
- package/node_modules/@audio/decode-caf/decode-caf.d.ts +0 -16
- package/node_modules/@audio/decode-caf/decode-caf.js +0 -190
- package/node_modules/@audio/decode-caf/package.json +0 -43
- package/node_modules/@audio/decode-flac/LICENSE +0 -25
- package/node_modules/@audio/decode-flac/README.md +0 -23
- package/node_modules/@audio/decode-flac/decode-flac.d.ts +0 -16
- package/node_modules/@audio/decode-flac/decode-flac.js +0 -2994
- package/node_modules/@audio/decode-flac/meta.js +0 -115
- package/node_modules/@audio/decode-flac/package.json +0 -49
- package/node_modules/@audio/decode-mp3/LICENSE +0 -25
- package/node_modules/@audio/decode-mp3/README.md +0 -23
- package/node_modules/@audio/decode-mp3/decode-mp3.d.ts +0 -16
- package/node_modules/@audio/decode-mp3/decode-mp3.js +0 -868
- package/node_modules/@audio/decode-mp3/meta.js +0 -143
- package/node_modules/@audio/decode-mp3/package.json +0 -50
- package/node_modules/@audio/decode-opus/README.md +0 -23
- package/node_modules/@audio/decode-opus/decode-opus.d.ts +0 -16
- package/node_modules/@audio/decode-opus/decode-opus.js +0 -3179
- package/node_modules/@audio/decode-opus/package.json +0 -47
- package/node_modules/@audio/decode-qoa/LICENSE +0 -25
- package/node_modules/@audio/decode-qoa/README.md +0 -21
- package/node_modules/@audio/decode-qoa/decode-qoa.d.ts +0 -16
- package/node_modules/@audio/decode-qoa/decode-qoa.js +0 -278
- package/node_modules/@audio/decode-qoa/package.json +0 -46
- package/node_modules/@audio/decode-vorbis/LICENSE +0 -25
- package/node_modules/@audio/decode-vorbis/README.md +0 -23
- package/node_modules/@audio/decode-vorbis/decode-vorbis.d.ts +0 -16
- package/node_modules/@audio/decode-vorbis/decode-vorbis.js +0 -2984
- package/node_modules/@audio/decode-vorbis/package.json +0 -47
- package/node_modules/@audio/decode-wav/decode-wav.js +0 -104
- package/node_modules/@audio/decode-wav/meta.js +0 -114
- package/node_modules/@audio/decode-wav/package.json +0 -27
- package/node_modules/@audio/decode-webm/LICENSE +0 -21
- package/node_modules/@audio/decode-webm/README.md +0 -57
- package/node_modules/@audio/decode-webm/decode-webm.d.ts +0 -16
- package/node_modules/@audio/decode-webm/decode-webm.js +0 -3964
- package/node_modules/@audio/decode-webm/package.json +0 -51
- package/node_modules/@audio/decode-wma/LICENSE +0 -12
- package/node_modules/@audio/decode-wma/README.md +0 -76
- package/node_modules/@audio/decode-wma/decode-wma.d.ts +0 -33
- package/node_modules/@audio/decode-wma/decode-wma.js +0 -525
- package/node_modules/@audio/decode-wma/package.json +0 -47
- package/node_modules/@audio/decode-wma/src/wma.wasm.cjs +0 -0
- package/node_modules/audio-decode/.claude/settings.json +0 -204
- package/node_modules/audio-decode/.gitmodules +0 -9
- package/node_modules/audio-decode/meta.js +0 -11
- package/node_modules/audio-decode/stream.d.ts +0 -15
- package/node_modules/audio-decode/stream.js +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
let fs = require('fs');
|
|
2
|
+
let wav = require('./index');
|
|
3
|
+
|
|
4
|
+
//let files = JSON.parse(fs.readFileSync('x.json'));
|
|
5
|
+
|
|
6
|
+
let files = ["../train/data//other/0005932e-db17-4a21-b99f-5e10f84a9e74.wav"];
|
|
7
|
+
|
|
8
|
+
files.forEach(file => {
|
|
9
|
+
console.log(file);
|
|
10
|
+
let buffer = fs.readFileSync(file);
|
|
11
|
+
console.log(buffer);
|
|
12
|
+
let w = wav.decode(buffer);
|
|
13
|
+
});
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/whatsapp",
|
|
9
|
-
"version": "2026.5.31-beta.
|
|
9
|
+
"version": "2026.5.31-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"audio-decode": "
|
|
11
|
+
"audio-decode": "2.2.3",
|
|
12
12
|
"baileys": "7.0.0-rc13",
|
|
13
13
|
"typebox": "1.1.39"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.5.31-beta.
|
|
16
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -21,130 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"node_modules/@audio/decode-aac": {
|
|
25
|
-
"version": "1.1.3",
|
|
26
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-aac/-/decode-aac-1.1.3.tgz",
|
|
27
|
-
"integrity": "sha512-emyA+pFa+o9N728t5HpcInT6FZZtaFtl68ex7UW7iBOTv6DrN4jxASj1D9KQO0S86cpu6t2u9hW9X/99Srfjog==",
|
|
28
|
-
"license": "GPL-2.0",
|
|
29
|
-
"engines": {
|
|
30
|
-
"node": ">=16"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"node_modules/@audio/decode-aiff": {
|
|
34
|
-
"version": "1.1.1",
|
|
35
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-aiff/-/decode-aiff-1.1.1.tgz",
|
|
36
|
-
"integrity": "sha512-Q4hH7tNtoTnVVwaT/XWUITfDeG9Y0KVRFkeWa1Ksl8FkUgutemVASiIoT7PvIchlhseq4haDdvQGu5cuLHdbNw==",
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"engines": {
|
|
39
|
-
"node": ">=16"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"node_modules/@audio/decode-amr": {
|
|
43
|
-
"version": "1.1.1",
|
|
44
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.1.1.tgz",
|
|
45
|
-
"integrity": "sha512-iIiY4YHaJ30isZVejhB/taO/jy7NVIveK/j6xPITqz/M/5JXC1tK5PMZ5PJ+Kni0LKGB+QN2BBonefKNkKr/VA==",
|
|
46
|
-
"license": "Apache-2.0",
|
|
47
|
-
"engines": {
|
|
48
|
-
"node": ">=16"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"node_modules/@audio/decode-caf": {
|
|
52
|
-
"version": "1.1.1",
|
|
53
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-caf/-/decode-caf-1.1.1.tgz",
|
|
54
|
-
"integrity": "sha512-svwj9ZJ9k89T0O4t7Ca5G6AeCusJQOQo4gdJsDlCHw01E4XJm4ok3Oqu2vorgT7BoS1l1Sm2Ef4ib3cr1M9Gbw==",
|
|
55
|
-
"license": "MIT",
|
|
56
|
-
"engines": {
|
|
57
|
-
"node": ">=16"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"node_modules/@audio/decode-flac": {
|
|
61
|
-
"version": "1.1.0",
|
|
62
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-flac/-/decode-flac-1.1.0.tgz",
|
|
63
|
-
"integrity": "sha512-d47Cxf91m1A7G0ketvWDmnn+qI9UaqEuZF0JpdVgGjjnfZQZ/3C8U3MM6nSsRaz4JZ904HtMkLUMF0yNEHXbJQ==",
|
|
64
|
-
"license": "MIT",
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"@wasm-audio-decoders/flac": "^0.2.10"
|
|
67
|
-
},
|
|
68
|
-
"engines": {
|
|
69
|
-
"node": ">=16"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"node_modules/@audio/decode-mp3": {
|
|
73
|
-
"version": "1.1.0",
|
|
74
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-mp3/-/decode-mp3-1.1.0.tgz",
|
|
75
|
-
"integrity": "sha512-eOBqdICwjQ0P9z6ei0wXmXVTW/tIiQ4YGsG3QMFJsdrGORhNQh6paQz53utIcVndmri9xfQStqerxMGt+82ygQ==",
|
|
76
|
-
"license": "MIT",
|
|
77
|
-
"dependencies": {
|
|
78
|
-
"mpg123-decoder": "^1.0.3"
|
|
79
|
-
},
|
|
80
|
-
"engines": {
|
|
81
|
-
"node": ">=16"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"node_modules/@audio/decode-opus": {
|
|
85
|
-
"version": "1.0.0",
|
|
86
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-opus/-/decode-opus-1.0.0.tgz",
|
|
87
|
-
"integrity": "sha512-IwoBu72t09g/T5QKiOSJ1bPBE0fGQkhGh0LwVFH7Uj1xgZ18hVywoA9dCIWxlpnPqz/ZFnAdY7qaKbeEPfGJ+g==",
|
|
88
|
-
"license": "MIT",
|
|
89
|
-
"dependencies": {
|
|
90
|
-
"ogg-opus-decoder": "^1.7.3"
|
|
91
|
-
},
|
|
92
|
-
"engines": {
|
|
93
|
-
"node": ">=16"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"node_modules/@audio/decode-qoa": {
|
|
97
|
-
"version": "1.0.0",
|
|
98
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-qoa/-/decode-qoa-1.0.0.tgz",
|
|
99
|
-
"integrity": "sha512-4O57YMprL+AZtxPVOgyDhUr2C+bVcp2cHrMKzBc4zo1ZJgITLZtfVA8TklTJEiLbvVfG2F0j44xHOTqCFhqvbA==",
|
|
100
|
-
"license": "MIT",
|
|
101
|
-
"dependencies": {
|
|
102
|
-
"qoa-format": "^1.0.1"
|
|
103
|
-
},
|
|
104
|
-
"engines": {
|
|
105
|
-
"node": ">=16"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"node_modules/@audio/decode-vorbis": {
|
|
109
|
-
"version": "1.0.0",
|
|
110
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-vorbis/-/decode-vorbis-1.0.0.tgz",
|
|
111
|
-
"integrity": "sha512-8TR9V0GQuExgUMHOSYmBE/OreJ9D7YQH78ntPhCxxWM0IeV3qTE3To+cxZVSRg8bMXl6rB7GEGWMmJ8uLbkZlg==",
|
|
112
|
-
"license": "MIT",
|
|
113
|
-
"dependencies": {
|
|
114
|
-
"@wasm-audio-decoders/ogg-vorbis": "^0.1.20"
|
|
115
|
-
},
|
|
116
|
-
"engines": {
|
|
117
|
-
"node": ">=16"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"node_modules/@audio/decode-wav": {
|
|
121
|
-
"version": "1.2.0",
|
|
122
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-wav/-/decode-wav-1.2.0.tgz",
|
|
123
|
-
"integrity": "sha512-Q6VicCGHeoqCiLnTDAaZI3kHCZGd24km/BVLZMBF2vOSbknwnqUEkWs4RRtKUfMX+KBtwAgihkzF0Aw4Y3DkBw==",
|
|
124
|
-
"license": "MIT"
|
|
125
|
-
},
|
|
126
|
-
"node_modules/@audio/decode-webm": {
|
|
127
|
-
"version": "1.2.1",
|
|
128
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-webm/-/decode-webm-1.2.1.tgz",
|
|
129
|
-
"integrity": "sha512-UnlDUaPI7PF+I9neTF5LJ7NNrFgvi0zj8PsPcvkSf+NWW08UnbxgsN9WgtpY731R8MPMM10cZKGEoN0kqxT15Q==",
|
|
130
|
-
"license": "MIT",
|
|
131
|
-
"dependencies": {
|
|
132
|
-
"@wasm-audio-decoders/ogg-vorbis": "^0.1.20",
|
|
133
|
-
"opus-decoder": "^0.7.6"
|
|
134
|
-
},
|
|
135
|
-
"engines": {
|
|
136
|
-
"node": ">=16"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"node_modules/@audio/decode-wma": {
|
|
140
|
-
"version": "1.1.2",
|
|
141
|
-
"resolved": "https://registry.npmjs.org/@audio/decode-wma/-/decode-wma-1.1.2.tgz",
|
|
142
|
-
"integrity": "sha512-zjmvnuhjSx6i8C8xPLxoNwfLxBvTeo2zf8L0Z8LM1H3HlwyWZEEfAlIppNf794f/mhsnbRAnwCpwQ1HklMIJrg==",
|
|
143
|
-
"license": "GPL-2.0-or-later",
|
|
144
|
-
"engines": {
|
|
145
|
-
"node": ">=16"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
24
|
"node_modules/@borewit/text-codec": {
|
|
149
25
|
"version": "0.2.2",
|
|
150
26
|
"resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.2.tgz",
|
|
@@ -381,28 +257,26 @@
|
|
|
381
257
|
"node": ">=8.0.0"
|
|
382
258
|
}
|
|
383
259
|
},
|
|
260
|
+
"node_modules/audio-buffer": {
|
|
261
|
+
"version": "5.0.0",
|
|
262
|
+
"resolved": "https://registry.npmjs.org/audio-buffer/-/audio-buffer-5.0.0.tgz",
|
|
263
|
+
"integrity": "sha512-gsDyj1wwUp8u7NBB+eW6yhLb9ICf+0eBmDX8NGaAS00w8/fLqFdxUlL5Ge/U8kB64DlQhdonxYC59dXy1J7H/w==",
|
|
264
|
+
"license": "MIT"
|
|
265
|
+
},
|
|
384
266
|
"node_modules/audio-decode": {
|
|
385
|
-
"version": "
|
|
386
|
-
"resolved": "https://registry.npmjs.org/audio-decode/-/audio-decode-
|
|
387
|
-
"integrity": "sha512-
|
|
388
|
-
"license": "MIT",
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"
|
|
394
|
-
"
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"@audio/decode-mp3": "^1.1.0",
|
|
399
|
-
"@audio/decode-opus": "^1.0.0",
|
|
400
|
-
"@audio/decode-qoa": "^1.0.0",
|
|
401
|
-
"@audio/decode-vorbis": "^1.0.0",
|
|
402
|
-
"@audio/decode-wav": "^1.2.0",
|
|
403
|
-
"@audio/decode-webm": "^1.0.0",
|
|
404
|
-
"@audio/decode-wma": "^1.0.0",
|
|
405
|
-
"audio-type": "^2.4.0"
|
|
267
|
+
"version": "2.2.3",
|
|
268
|
+
"resolved": "https://registry.npmjs.org/audio-decode/-/audio-decode-2.2.3.tgz",
|
|
269
|
+
"integrity": "sha512-Z0lHvMayR/Pad9+O9ddzaBJE0DrhZkQlStrC1RwcAHF3AhQAsdwKHeLGK8fYKyp2DDU6xHxzGb4CLMui12yVrg==",
|
|
270
|
+
"license": "MIT",
|
|
271
|
+
"dependencies": {
|
|
272
|
+
"@wasm-audio-decoders/flac": "^0.2.4",
|
|
273
|
+
"@wasm-audio-decoders/ogg-vorbis": "^0.1.15",
|
|
274
|
+
"audio-buffer": "^5.0.0",
|
|
275
|
+
"audio-type": "^2.2.1",
|
|
276
|
+
"mpg123-decoder": "^1.0.0",
|
|
277
|
+
"node-wav": "^0.0.2",
|
|
278
|
+
"ogg-opus-decoder": "^1.6.12",
|
|
279
|
+
"qoa-format": "^1.0.1"
|
|
406
280
|
}
|
|
407
281
|
},
|
|
408
282
|
"node_modules/audio-type": {
|
|
@@ -663,6 +537,15 @@
|
|
|
663
537
|
"node": ">=18"
|
|
664
538
|
}
|
|
665
539
|
},
|
|
540
|
+
"node_modules/node-wav": {
|
|
541
|
+
"version": "0.0.2",
|
|
542
|
+
"resolved": "https://registry.npmjs.org/node-wav/-/node-wav-0.0.2.tgz",
|
|
543
|
+
"integrity": "sha512-M6Rm/bbG6De/gKGxOpeOobx/dnGuP0dz40adqx38boqHhlWssBJZgLCPBNtb9NkrmnKYiV04xELq+R6PFOnoLA==",
|
|
544
|
+
"license": "MIT",
|
|
545
|
+
"engines": {
|
|
546
|
+
"node": ">=4.4.0"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
666
549
|
"node_modules/ogg-opus-decoder": {
|
|
667
550
|
"version": "1.7.3",
|
|
668
551
|
"resolved": "https://registry.npmjs.org/ogg-opus-decoder/-/ogg-opus-decoder-1.7.3.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
4
4
|
"description": "OpenClaw WhatsApp channel plugin for WhatsApp Web chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"audio-decode": "
|
|
11
|
+
"audio-decode": "2.2.3",
|
|
12
12
|
"baileys": "7.0.0-rc13",
|
|
13
13
|
"typebox": "1.1.39"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.5.31-beta.
|
|
16
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"minHostVersion": ">=2026.4.25"
|
|
57
57
|
},
|
|
58
58
|
"compat": {
|
|
59
|
-
"pluginApi": ">=2026.5.31-beta.
|
|
59
|
+
"pluginApi": ">=2026.5.31-beta.4"
|
|
60
60
|
},
|
|
61
61
|
"build": {
|
|
62
|
-
"openclawVersion": "2026.5.31-beta.
|
|
62
|
+
"openclawVersion": "2026.5.31-beta.4"
|
|
63
63
|
},
|
|
64
64
|
"release": {
|
|
65
65
|
"publishToClawHub": true,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
This work is offered to Krishna (https://github.com/krishnized/license).
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
This package is licensed under the GNU General Public License v2.0 (GPL-2.0),
|
|
6
|
-
as required by the included FAAD2 library.
|
|
7
|
-
|
|
8
|
-
FAAD2 Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.com
|
|
9
|
-
Full GPL-2.0 text: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# @audio/decode-aac
|
|
2
|
-
|
|
3
|
-
Decode AAC/M4A audio to PCM float samples. FAAD2 compiled to WASM — works in Node.js and browsers, no native dependencies.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm i @audio/decode-aac
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import decode from '@audio/decode-aac'
|
|
15
|
-
|
|
16
|
-
// M4A or raw ADTS — auto-detected
|
|
17
|
-
let { channelData, sampleRate } = await decode(uint8array)
|
|
18
|
-
// channelData: Float32Array[] (one per channel)
|
|
19
|
-
// sampleRate: number
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
### Streaming
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
import { decoder } from '@audio/decode-aac'
|
|
26
|
-
|
|
27
|
-
let dec = await decoder()
|
|
28
|
-
let { channelData, sampleRate } = dec.decode(chunk)
|
|
29
|
-
dec.free()
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## API
|
|
33
|
-
|
|
34
|
-
### `decode(src: Uint8Array | ArrayBuffer): Promise<AudioData>`
|
|
35
|
-
|
|
36
|
-
Whole-file decode. Auto-detects M4A (MP4 container) vs raw ADTS.
|
|
37
|
-
|
|
38
|
-
### `decoder(): Promise<AACDecoder>`
|
|
39
|
-
|
|
40
|
-
Creates a decoder instance for manual control.
|
|
41
|
-
|
|
42
|
-
- **`dec.decode(data)`** — decode chunk, returns `{ channelData, sampleRate }`
|
|
43
|
-
- **`dec.flush()`** — flush remaining (returns empty for AAC)
|
|
44
|
-
- **`dec.free()`** — release WASM memory
|
|
45
|
-
|
|
46
|
-
### `AudioData`
|
|
47
|
-
|
|
48
|
-
```ts
|
|
49
|
-
{ channelData: Float32Array[], sampleRate: number }
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Formats
|
|
53
|
-
|
|
54
|
-
- M4A / MP4 with AAC audio
|
|
55
|
-
- Raw ADTS streams (.aac)
|
|
56
|
-
- LC, HE-AAC v1/v2 (SBR, PS)
|
|
57
|
-
|
|
58
|
-
## License
|
|
59
|
-
|
|
60
|
-
GPL-2.0 (FAAD2) — [krishnized](https://github.com/krishnized/license)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface AudioData {
|
|
2
|
-
channelData: Float32Array[];
|
|
3
|
-
sampleRate: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface AACDecoder {
|
|
7
|
-
decode(data: Uint8Array): AudioData;
|
|
8
|
-
flush(): AudioData;
|
|
9
|
-
free(): void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** Whole-file decode — auto-detects M4A vs ADTS */
|
|
13
|
-
export default function decode(src: ArrayBuffer | Uint8Array): Promise<AudioData>;
|
|
14
|
-
|
|
15
|
-
/** Create streaming decoder instance */
|
|
16
|
-
export function decoder(): Promise<AACDecoder>;
|