You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/decode-amr/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# decode-amr
1
+
# @audio/decode-amr
2
2
3
3
Decode AMR-NB and AMR-WB audio to PCM float samples. [opencore-amr](https://sourceforge.net/projects/opencore-amr/) compiled to WASM — works in Node.js and browsers.
4
4
@@ -7,13 +7,13 @@ Part of [audio-decode](https://github.com/audiojs/audio-decode).
7
7
## Install
8
8
9
9
```
10
-
npm i @audio/amr-decode
10
+
npm i @audio/decode-amr
11
11
```
12
12
13
13
## Usage
14
14
15
15
```js
16
-
importdecodefrom'@audio/amr-decode'
16
+
importdecodefrom'@audio/decode-amr'
17
17
18
18
// AMR-NB or AMR-WB — auto-detected from file header
19
19
let { channelData, sampleRate } =awaitdecode(amrBuffer)
Copy file name to clipboardExpand all lines: packages/decode-wma/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# decode-wma
1
+
# @audio/decode-wma
2
2
3
3
Decode WMA audio to PCM float samples. ASF demuxer in pure JS, WMA decoding via [RockBox](https://www.rockbox.org/) fixed-point decoder compiled to WASM (70 KB).
4
4
@@ -7,21 +7,21 @@ Part of [audio-decode](https://github.com/audiojs/audio-decode).
7
7
## Install
8
8
9
9
```
10
-
npm i @audio/wma-decode
10
+
npm i @audio/decode-wma
11
11
```
12
12
13
13
## Usage
14
14
15
15
```js
16
-
importdecodefrom'@audio/wma-decode'
16
+
importdecodefrom'@audio/decode-wma'
17
17
18
18
let { channelData, sampleRate } =awaitdecode(wmaBuffer)
19
19
```
20
20
21
21
### Streaming
22
22
23
23
```js
24
-
import { decoder } from'@audio/wma-decode'
24
+
import { decoder } from'@audio/decode-wma'
25
25
26
26
let dec =awaitdecoder()
27
27
let result =dec.decode(chunk)
@@ -31,7 +31,7 @@ dec.free()
31
31
### ASF demuxer only
32
32
33
33
```js
34
-
import { demuxASF } from'@audio/wma-decode'
34
+
import { demuxASF } from'@audio/decode-wma'
35
35
36
36
let { channels, sampleRate, bitRate, packets } =demuxASF(buffer)
0 commit comments