{"_id":"@audio/decode-amr","_rev":"9-2fdfabdf9266af31542fb74e36e102f1","name":"@audio/decode-amr","dist-tags":{"latest":"1.3.1"},"versions":{"1.0.0":{"name":"@audio/decode-amr","version":"1.0.0","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"b207bd582397da52f307f508f10edd0c0947f0a2","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.0.0.tgz","fileCount":6,"integrity":"sha512-3B2UTlYS4jN5ZkR8AhKTZ8JjQu6F+01gvaRi54R5ZPVY4L5uwh2/EkUlME/oAd29Up8z9WiGwFuiSdbVJIi0Yg==","signatures":[{"sig":"MEUCIAN6cVo88RzUQuifgOrFngrYOw3k8VaCdpx3etZTPlkGAiEA1/QtnxK9BLY86jnb68gKpTANctXwamI13gbhHbp1UxQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258929},"main":"decode-amr.js","type":"module","types":"decode-amr.d.ts","engines":{"node":">=16"},"exports":{".":"./decode-amr.js","./package.json":"./package.json"},"gitHead":"d8a5a87d58ffdc931d4f3de69f3313240a8c5ed7","scripts":{"test":"node test.js","build":"bash build.sh"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git"},"_npmVersion":"11.11.0","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.0.0_1775273347961_0.2992494159868253","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/decode-amr","version":"1.1.0","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.1.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"900796f155cda7a1f3229e280350c9c341e286fa","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.1.0.tgz","fileCount":6,"integrity":"sha512-y9LRBTvKk6BTVddMbAaT+scTIqXEfdtjXFc5BtFHigfSXsghyMnSPIi9ZE5rGb5iMnyef0Bv0PqkkeN+SPV0FA==","signatures":[{"sig":"MEQCIA1Is7vvYfsfxMGBZgxOqM3vwYOaPps4lVOT28envJjEAiBPNgxV7BGp49sZSTrK7j26ea6LkQfvYE9evOAbxgyaZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259507},"main":"decode-amr.js","type":"module","types":"decode-amr.d.ts","engines":{"node":">=16"},"exports":{".":"./decode-amr.js","./package.json":"./package.json"},"gitHead":"9bfccf08494293c4610ce1e7fb48b7cb26c73d86","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git"},"_npmVersion":"11.11.0","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.1.0_1775357620854_0.5219760029282696","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@audio/decode-amr","version":"1.1.1","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.1.1","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"219872a5825551bfe04892f112462ab3decef1c0","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.1.1.tgz","fileCount":6,"integrity":"sha512-iIiY4YHaJ30isZVejhB/taO/jy7NVIveK/j6xPITqz/M/5JXC1tK5PMZ5PJ+Kni0LKGB+QN2BBonefKNkKr/VA==","signatures":[{"sig":"MEUCIQCc4T7PP74M4smaU3pYh+yCSKhNhwImuzRLxg+cQg+OVAIgSUAOZJoHrVusbAvyGUOqeLQwrdfOlCOtGj/6+casv0U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259514},"main":"decode-amr.js","type":"module","types":"decode-amr.d.ts","engines":{"node":">=16"},"exports":{".":"./decode-amr.js","./package.json":"./package.json"},"gitHead":"824ae0c54e24b76eb8d1e09784339f7b5aab133a","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git"},"_npmVersion":"11.11.0","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.1.1_1775872174569_0.3547252576222255","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@audio/decode-amr","version":"1.2.0","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.2.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"2b9c533215a4b0ab27f7536a962097d1230f5600","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.2.0.tgz","fileCount":7,"integrity":"sha512-9GTQM6MN9gEqpfPvw9smc8RG09pw+99uRB4Gg2972r870ktHJb4xZ65RA/gVmPiE9v3602nKBbtGtQJ/v1C9Hg==","signatures":[{"sig":"MEYCIQCZG8Xkcu9cDW+jUJ/pcTHbi51HZCPlbq+wIY7aKaAXLQIhAK/7WDm7RS8Q+PZekuTo7KuBIVPifCefLJNNqnimxygB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":260016},"main":"decode-amr.js","type":"module","audio":"./audio.js","types":"decode-amr.d.ts","engines":{"node":">=16"},"exports":{".":"./decode-amr.js","./audio":"./audio.js","./package.json":"./package.json"},"gitHead":"4422388b9da502b2314360902ff748379e4304d4","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git"},"_npmVersion":"11.12.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.2.0_1783648239292_0.607660286159706","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@audio/decode-amr","version":"1.2.1","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.2.1","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"0508abf5e8c006f2dd92f281a8734d2b758668c2","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.2.1.tgz","fileCount":8,"integrity":"sha512-Z/LIRGNAzK+6MjNtFGNFp56tS3aG3MxO/jojL5tCHvsboD0bn/AzJksGkkBkh40c5Do7/m7mp43nWaC7qUh54A==","signatures":[{"sig":"MEYCIQDHv9fSsWyg5slD/K7CoWk8sGwkSyBrfCYtJTAwlwiLFAIhAK3YXQPnkhaNXEfsCvpcps8SFRb6eRFDrKHAS5yn5oEL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":261132},"main":"decode-amr.js","type":"module","audio":"./audio.js","types":"decode-amr.d.ts","engines":{"node":">=16"},"exports":{".":"./decode-amr.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"gitHead":"d0b14e75242815c92b72b1028bbd123e4b86733e","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git"},"_npmVersion":"11.12.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.2.1_1783701558528_0.5303651553493356","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@audio/decode-amr","version":"1.2.2","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.2.2","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode-amr/issues"},"dist":{"shasum":"e608cf31e7e7d49f4ce037108b7cf9049bf1a126","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.2.2.tgz","fileCount":8,"integrity":"sha512-hMvK8My2xAIrgrF1foU5DffUm1gvdphhbobXodT3wm2vfDwD/beLKVAanHwaRdcAoO2ZW/7//QgILJWtHOtD0Q==","signatures":[{"sig":"MEYCIQCiNeVGE1xQllU0Mg0m8Ns7GFFkWW6FSGIWI1evcW0IowIhAKHL//pRmeXAbqYmO6hSeTemcbzD7pijzFGANN/HyuiJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":261248},"main":"decode-amr.js","type":"module","audio":"./audio.js","types":"decode-amr.d.ts","engines":{"node":">=18"},"exports":{".":"./decode-amr.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"fb59268366fc4991a80f01da2599fdda208ab59c","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode-amr.git","type":"git","directory":"packages/decode-amr"},"_npmVersion":"11.12.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.2.2_1783731346000_0.174857549405794","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@audio/decode-amr","version":"1.2.3","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.2.3","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode/tree/master/packages/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode/issues"},"dist":{"shasum":"af9fad5436cd16ff8149d363783c4f4b4f65df82","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.2.3.tgz","fileCount":8,"integrity":"sha512-ZdKoBPl0cJvdrhm9jXd4Y3axOjAy+0f+zDI0IkYWzXNvW2oUUwAfn6TL2XkFLApbj0UXdLn44atPM+E/QWOKHA==","signatures":[{"sig":"MEUCIDV017gVwA7Iy8Sm0HUkv3Di6AMUSfmrl9axd0oVtJDBAiEAzahZ522TdeSY9m4DvoMGiRJbbtVYgTX4JYMbzZmBhvU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":261268},"main":"decode-amr.js","type":"module","audio":"./audio.js","types":"decode-amr.d.ts","engines":{"node":">=18"},"exports":{".":"./decode-amr.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"00d9a337f3eeb74b245d585a872b75ab6747fc23","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/decode.git","type":"git","directory":"packages/decode-amr"},"_npmVersion":"11.12.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.2.3_1784035136908_0.05742809670635407","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@audio/decode-amr","version":"1.3.0","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"author":{"name":"audiojs"},"license":"Apache-2.0","_id":"@audio/decode-amr@1.3.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/decode/tree/master/packages/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode/issues"},"dist":{"shasum":"6080563a05efd6ef6460b2fec0448e3bd7862783","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.3.0.tgz","fileCount":8,"integrity":"sha512-Y0i8ihsCLi1npGv/o1kdpZuufdff5zFFwgh6gFAvMKLHTz7hBQNT7iTbyWFq+0PKs8NSEtZsYM7Vkgtzn2bovA==","signatures":[{"sig":"MEUCIF13F91EIfgXhJLMA1A2FXzm6iJ0Z4E5WiLWyiuifLNhAiEA9lzpbebejvm0E0No1U5rHrP2fP+kWHrXy40ADhkZqqI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":261220},"main":"decode-amr.js","type":"module","_from":"file:/private/tmp/audio-decode-release-ed350c9/_audio_decode-amr/audio-decode-amr-1.3.0.tgz","audio":"./audio.js","types":"decode-amr.d.ts","engines":{"node":">=18"},"exports":{".":"./decode-amr.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","scripts":{"test":"node test.js","build":"bash build.sh","prepack":"npm run build"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_resolved":"/private/tmp/audio-decode-release-ed350c9/_audio_decode-amr/audio-decode-amr-1.3.0.tgz","_integrity":"sha512-Y0i8ihsCLi1npGv/o1kdpZuufdff5zFFwgh6gFAvMKLHTz7hBQNT7iTbyWFq+0PKs8NSEtZsYM7Vkgtzn2bovA==","repository":{"url":"git+https://github.com/audiojs/decode.git","type":"git","directory":"packages/decode-amr"},"_npmVersion":"11.12.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/decode-amr_1.3.0_1786475507568_0.6456754339734128","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@audio/decode-amr","version":"1.3.1","description":"Decode AMR-NB/WB audio via opencore-amr WASM","type":"module","main":"decode-amr.js","types":"decode-amr.d.ts","exports":{".":"./decode-amr.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"scripts":{"build":"bash build.sh","prepack":"npm run build","test":"node test.js"},"keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"publishConfig":{"access":"public"},"license":"Apache-2.0","author":{"name":"audiojs"},"homepage":"https://github.com/audiojs/decode/tree/master/packages/decode-amr#readme","bugs":{"url":"https://github.com/audiojs/decode/issues"},"repository":{"type":"git","url":"git+https://github.com/audiojs/decode.git","directory":"packages/decode-amr"},"engines":{"node":">=18"},"audio":"./audio.js","sideEffects":false,"funding":"https://github.com/sponsors/audiojs","gitHead":"6dbdbc0c63037395ce6574a318121a0f4682279a","_id":"@audio/decode-amr@1.3.1","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-rYwY8HpmAwptaQDeNAoccbzbcYteHmL4s+KWVW8Y+NgJugQFhApsFeqs0ljVmuI2TvOmZRivMJwvg6++MdsUaA==","shasum":"8e33ca927e9344fbcdee7b62be480ad223c1c83d","tarball":"https://registry.npmjs.org/@audio/decode-amr/-/decode-amr-1.3.1.tgz","fileCount":8,"unpackedSize":260998,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD69g2VvH2gz/LmkYvwx24GSbc/qffstZyqsvVCo4pJSQIgIknkhHlAYmsXhAaM/76b1Kh3lU5sYfpMIaaWfszEBQY="}]},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decode-amr_1.3.1_1787857234583_0.6662954362848543"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-04T03:29:07.894Z","modified":"2026-08-27T19:00:34.973Z","1.0.0":"2026-04-04T03:29:08.118Z","1.1.0":"2026-04-05T02:53:41.047Z","1.1.1":"2026-04-11T01:49:34.726Z","1.2.0":"2026-07-10T01:50:39.418Z","1.2.1":"2026-07-10T16:39:18.719Z","1.2.2":"2026-07-11T00:55:46.162Z","1.2.3":"2026-07-14T13:18:57.068Z","1.3.0":"2026-08-11T19:11:47.704Z","1.3.1":"2026-08-27T19:00:34.738Z"},"bugs":{"url":"https://github.com/audiojs/decode/issues"},"author":{"name":"audiojs"},"license":"Apache-2.0","homepage":"https://github.com/audiojs/decode/tree/master/packages/decode-amr#readme","keywords":["amr","amr-nb","amr-wb","audio","decode","decoder","wasm","opencore-amr","speech"],"repository":{"type":"git","url":"git+https://github.com/audiojs/decode.git","directory":"packages/decode-amr"},"description":"Decode AMR-NB/WB audio via opencore-amr WASM","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/decode-amr\n\nDecode AMR-NB and AMR-WB audio to PCM float samples with [opencore-amr](https://sourceforge.net/projects/opencore-amr/) WASM.\n\n## Install\n\n```\nnpm i @audio/decode-amr\n```\n\n## Usage\n\n```js\nimport decode from '@audio/decode-amr'\n\n// AMR-NB or AMR-WB; auto-detected from the file header\nlet { channelData, sampleRate } = await decode(amrBuffer)\n// AMR-NB: 8000 Hz mono\n// AMR-WB: 16000 Hz mono\n```\n\n### Streaming\n\n```js\nimport { decoder } from '@audio/decode-amr'\n\nlet dec = await decoder()\nlet result = dec.decode(chunk)\ndec.free()\n```\n\n`decoder()` is asynchronous. Its `decode()` and `flush()` methods are synchronous.\n\n## API\n\n### `decode(src): Promise<AudioData>`\n\nWhole-file decode. Accepts `Uint8Array` or `ArrayBuffer`. Auto-detects AMR-NB (`#!AMR\\n`) vs AMR-WB (`#!AMR-WB\\n`).\n\n### `decoder(): Promise<AMRDecoder>`\n\nCreates a decoder instance.\n\n- `dec.decode(data)`: decode a `Uint8Array` or `ArrayBuffer` chunk.\n- `dec.flush()`: discard buffered partial data and return an empty result.\n- `dec.free()`: release WASM memory.\n\n## Formats\n\n- AMR-NB: 8 kHz, modes 0–7 (4.75–12.2 kbps)\n- AMR-WB: 16 kHz, modes 0–8 (6.6–23.85 kbps)\n\n## Building WASM\n\nThe WASM module is prebuilt in `src/amr.wasm.js`. To rebuild:\n\n```\nnpm run build\n```\n\nThis auto-fetches opencore-amr 0.1.6 source and compiles with Emscripten.\n\n## License\n\n[ॐ](https://github.com/krishnized/license/) · [Apache-2.0](./LICENSE) (opencore-amr)\n","readmeFilename":"README.md"}