@audio/decode 3.16.2 → 4.1.0
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/audio-decode.js +2 -0
- package/package.json +14 -12
- package/readme.md +4 -3
package/audio-decode.js
CHANGED
|
@@ -148,6 +148,8 @@ reg('avi', () => import('@audio/decode-avi'), true)
|
|
|
148
148
|
reg('ac3', () => import('@audio/decode-ac3'))
|
|
149
149
|
reg('dts', () => import('@audio/decode-dts'))
|
|
150
150
|
reg('amr', () => import('@audio/decode-amr'))
|
|
151
|
+
// raw frames, no signature: by name only (decode.gsm(), decode(src, 'gsm'))
|
|
152
|
+
reg('gsm', () => import('@audio/decode-gsm'))
|
|
151
153
|
reg('wma', () => import('@audio/decode-wma'), true)
|
|
152
154
|
|
|
153
155
|
// lossless / audiophile long tail
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audio/decode",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Decode audio data in node or browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,25 +28,26 @@
|
|
|
28
28
|
"packages/*"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@audio/decode-aac": "^1.
|
|
31
|
+
"@audio/decode-aac": "^1.6.0",
|
|
32
32
|
"@audio/decode-ac3": "^1.0.0",
|
|
33
33
|
"@audio/decode-aiff": "^1.3.0",
|
|
34
34
|
"@audio/decode-amr": "^1.3.0",
|
|
35
|
+
"@audio/decode-gsm": "^0.1.0",
|
|
35
36
|
"@audio/decode-avi": "^1.1.0",
|
|
36
|
-
"@audio/decode-caf": "^1.4.
|
|
37
|
+
"@audio/decode-caf": "^1.4.1",
|
|
37
38
|
"@audio/decode-dts": "^1.0.0",
|
|
38
|
-
"@audio/decode-flac": "^
|
|
39
|
+
"@audio/decode-flac": "^2.0.0",
|
|
39
40
|
"@audio/decode-mp3": "^1.3.0",
|
|
40
|
-
"@audio/decode-mp4": "^1.
|
|
41
|
-
"@audio/decode-opus": "^1.3.
|
|
42
|
-
"@audio/decode-qoa": "^
|
|
43
|
-
"@audio/decode-vorbis": "^1.3.
|
|
44
|
-
"@audio/decode-wav": "^
|
|
41
|
+
"@audio/decode-mp4": "^1.3.0",
|
|
42
|
+
"@audio/decode-opus": "^1.3.3",
|
|
43
|
+
"@audio/decode-qoa": "^2.0.0",
|
|
44
|
+
"@audio/decode-vorbis": "^1.3.4",
|
|
45
|
+
"@audio/decode-wav": "^2.0.0",
|
|
45
46
|
"@audio/decode-webm": "^1.6.1",
|
|
46
|
-
"@audio/decode-wma": "^1.
|
|
47
|
+
"@audio/decode-wma": "^1.4.0",
|
|
47
48
|
"audio-type": "^2.8.0",
|
|
48
|
-
"@audio/decode-wavpack": "^
|
|
49
|
-
"@audio/decode-tta": "^
|
|
49
|
+
"@audio/decode-wavpack": "^2.0.0",
|
|
50
|
+
"@audio/decode-tta": "^2.0.0",
|
|
50
51
|
"@audio/decode-mpc": "^1.0.0",
|
|
51
52
|
"@audio/decode-mod": "^1.0.0",
|
|
52
53
|
"@audio/decode-dsd": "^1.0.0"
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"caf",
|
|
87
88
|
"webm",
|
|
88
89
|
"amr",
|
|
90
|
+
"gsm",
|
|
89
91
|
"wma",
|
|
90
92
|
"pcm",
|
|
91
93
|
"streaming",
|
package/readme.md
CHANGED
|
@@ -35,7 +35,8 @@ const { channelData, sampleRate } = await decode(anyAudioBuffer);
|
|
|
35
35
|
| E-AC-3 (Dolby Digital Plus, + AC-3) | [@audio/decode-eac3](./packages/decode-eac3) | 432 KB | WASM (FFmpeg libavcodec, LGPL) |
|
|
36
36
|
| APE (Monkey's Audio) | [@audio/decode-ape](./packages/decode-ape) | 262 KB | WASM (FFmpeg libavcodec, LGPL) |
|
|
37
37
|
| AMR | [@audio/decode-amr](./packages/decode-amr) | 241 KB | WASM |
|
|
38
|
-
|
|
|
38
|
+
| GSM 06.10 (raw frames, by name) | [@audio/decode-gsm](./packages/decode-gsm) | 23 KB | WASM (libgsm) |
|
|
39
|
+
| WMA (v1, v2, Pro, Lossless) | [@audio/decode-wma](./packages/decode-wma) | 463 KB | WASM (FFmpeg libavcodec, LGPL) |
|
|
39
40
|
| WavPack | [@audio/decode-wavpack](./packages/decode-wavpack) | 51 KB | WASM |
|
|
40
41
|
| TTA (True Audio) | [@audio/decode-tta](./packages/decode-tta) | 11 KB | JS |
|
|
41
42
|
| Musepack SV7 / SV8 | [@audio/decode-mpc](./packages/decode-mpc) | 51 KB | WASM |
|
|
@@ -76,7 +77,7 @@ for await (let { channelData, sampleRate } of decode.mp3(response.body)) {
|
|
|
76
77
|
|
|
77
78
|
Works with `ReadableStream`, `fetch` body, Node stream, or any async iterable.
|
|
78
79
|
|
|
79
|
-
Formats: `mp3`, `flac`, `opus`, `oga`, `m4a`, `mp4`, `mov`, `wav`, `qoa`, `aac`, `aiff`, `caf`, `webm`, `mkv`, `avi`, `ac3`, `dts`, `amr`, `wma`, `eac3`, `ape`, `wv`, `tta`, `mpc`, `dsf`, `dff`, `mod`, `xm`, `s3m`, `it`.
|
|
80
|
+
Formats: `mp3`, `flac`, `opus`, `oga`, `m4a`, `mp4`, `mov`, `wav`, `qoa`, `aac`, `aiff`, `caf`, `webm`, `mkv`, `avi`, `ac3`, `dts`, `amr`, `gsm`, `wma`, `eac3`, `ape`, `wv`, `tta`, `mpc`, `dsf`, `dff`, `mod`, `xm`, `s3m`, `it`.
|
|
80
81
|
|
|
81
82
|
### Video files
|
|
82
83
|
|
|
@@ -187,6 +188,6 @@ worker.onmessage = ({ data }) => { /* { channelData, sampleRate } */ }
|
|
|
187
188
|
|
|
188
189
|
## Licensing
|
|
189
190
|
|
|
190
|
-
The umbrella and most codec packages are MIT. Codecs built on other libraries carry that library's license: <a href="./packages/decode-aac">@audio/decode-aac</a> GPL-2.0; <a href="./packages/decode-
|
|
191
|
+
The umbrella and most codec packages are MIT. Codecs built on other libraries carry that library's license: <a href="./packages/decode-aac">@audio/decode-aac</a> GPL-2.0; <a href="./packages/decode-ac3">@audio/decode-ac3</a> and <a href="./packages/decode-dts">@audio/decode-dts</a> GPL-2.0-or-later; <a href="./packages/decode-ape">@audio/decode-ape</a>, <a href="./packages/decode-eac3">@audio/decode-eac3</a> and <a href="./packages/decode-wma">@audio/decode-wma</a> LGPL-2.1-or-later (a slim FFmpeg libavcodec build, no GPL components); <a href="./packages/decode-wavpack">@audio/decode-wavpack</a>, <a href="./packages/decode-mpc">@audio/decode-mpc</a> and <a href="./packages/decode-mod">@audio/decode-mod</a> BSD-3-Clause; <a href="./packages/decode-amr">@audio/decode-amr</a> Apache-2.0. Install only the codecs whose licenses fit your project. The umbrella loads them on demand.
|
|
191
192
|
|
|
192
193
|
<p align="center"><a href="https://github.com/krishnized/license/">ॐ</a> · <a href="./LICENSE">MIT</a>
|