{"_id":"@audio/decode-gsm","_rev":"2-6b0319731831d3dbd3ac21c383819254","name":"@audio/decode-gsm","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0-stage":{"name":"@audio/decode-gsm","version":"0.0.0-stage","_id":"@audio/decode-gsm@0.0.0-stage","stub":true,"maintainers":[{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"b953a97ae2dfcbee31b02c8685825050ef4e4b61","tarball":"https://registry.npmjs.org/@audio/decode-gsm/-/decode-gsm-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-JxhVEzEfbC3Lte4/T8p2xH1hp1QbiU+rMOpPRVEkHChtXwL2Pxq1xhPMKI1C4UFiTxjQ0/sn8Epo/UxHKjLT+Q==","signatures":[{"sig":"MEUCIAY8J/rda29Fw3CY1cBDLBQV99yb0uG29akYSh6qVKATAiEA6nrKjUsogNuHKB1f8TwFx22Uour7qkzcrNk//T3qs9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":339},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"_id":"@audio/decode-gsm@0.1.0","bugs":{"url":"https://github.com/audiojs/decode/issues"},"dist":{"shasum":"fa98cbe6fb0733f16f2757a2b3d3acb0103b4397","tarball":"https://registry.npmjs.org/@audio/decode-gsm/-/decode-gsm-0.1.0.tgz","fileCount":8,"integrity":"sha512-QqD9PaLy4fH5ExFI4Sh4gqLYNaXtO2Vhmm7BEe7QQMNlzQighG8goUq+9kWgesK6vT3UG71rAzW//Mg3xnX4KQ==","signatures":[{"sig":"MEUCICjgHO/q5U5DgEaw4rVed7QE4hwltIl8US37y+rkeXxEAiEAm4RBQyR8ceMQGTWX8ejFrIveu/t8QORU9Mdr19UULhs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGcouHQPweigRcys/YN6TY9+RhLNceprage5P1Y/5u2TAiA65EOIYcsrEcrAKA6ACoJA5DwDwMu5cuq6VxZYZEf6FQ=="}],"unpackedSize":31545},"main":"decode-gsm.js","name":"@audio/decode-gsm","type":"module","audio":"./audio.js","types":"decode-gsm.d.ts","author":{"name":"audiojs"},"engines":{"node":">=18"},"exports":{".":"./decode-gsm.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"bfd3fae76599f9826d9f7dcb646f802c85aa1778","license":"MIT","scripts":{"test":"node test.js","build":"bash build.sh"},"version":"0.1.0","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"homepage":"https://github.com/audiojs/decode/tree/main/packages/decode-gsm","keywords":["gsm","gsm-06.10","gsm-full-rate","audio","decode","decoder","codec","wasm","libgsm","speech"],"repository":{"url":"git+https://github.com/audiojs/decode.git","type":"git","directory":"packages/decode-gsm"},"_npmVersion":"11.12.1","description":"Decode GSM 06.10 full rate audio (libgsm WASM)","directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decode-gsm_0.1.0_1791370209219_0.04435970079070306"}}},"time":{"created":"2026-10-07T10:48:04.233Z","modified":"2026-10-07T10:50:09.521Z","0.0.0-stage":"2026-10-07T10:48:04.233Z","0.1.0":"2026-10-07T10:50:09.303Z"},"description":"Decode GSM 06.10 full rate audio (libgsm 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-gsm\n\nDecode GSM 06.10 full-rate speech (13 kbit/s, 8 kHz mono) to PCM float samples, with [libgsm](https://www.quut.com/gsm/) 1.0.22 (Jutta Degener and Carsten Bormann, TU Berlin) compiled to WASM.\n\n## Install\n\n```\nnpm i @audio/decode-gsm\n```\n\n## Usage\n\n```js\nimport decode from '@audio/decode-gsm'\n\nlet { channelData, sampleRate } = await decode(gsmBytes)   // 8000 Hz, mono\n```\n\nThe input is raw frames, 33 bytes each, 160 samples from each: SoX's `.gsm`, RTP payload type 3. Raw frames carry no header, so nothing detects them: name the format.\n\n### Streaming\n\n```js\nimport { decoder } from '@audio/decode-gsm'\n\nlet dec = await decoder()\nlet { channelData } = dec.decode(chunk)   // bytes split anywhere: whole frames as they complete\ndec.free()\n```\n\n## Tested\n\nSample for sample the output of SoX 14.4.2 (its libgsm) and of FFmpeg 8.0.1's own decoder, on a fixture SoX encoded.\n\n## License\n\nMIT; libgsm under its own permissive notice (in LICENSE).\n","readmeFilename":"README.md","homepage":"https://github.com/audiojs/decode/tree/main/packages/decode-gsm","keywords":["gsm","gsm-06.10","gsm-full-rate","audio","decode","decoder","codec","wasm","libgsm","speech"],"repository":{"url":"git+https://github.com/audiojs/decode.git","type":"git","directory":"packages/decode-gsm"},"author":{"name":"audiojs"},"bugs":{"url":"https://github.com/audiojs/decode/issues"},"license":"MIT"}