@audio/decode 4.0.0 → 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 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": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Decode audio data in node or browser",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -32,6 +32,7 @@
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
37
  "@audio/decode-caf": "^1.4.1",
37
38
  "@audio/decode-dts": "^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,6 +35,7 @@ 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
+ | GSM 06.10 (raw frames, by name) | [@audio/decode-gsm](./packages/decode-gsm) | 23 KB | WASM (libgsm) |
38
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 |
@@ -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