{"_id":"@caitun/speex","_rev":"3-ba13c260a50a1c6eb7ce5e41d708f225","name":"@caitun/speex","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@caitun/speex","version":"0.1.0","keywords":["speex","codec","audio","wasm","webaudio"],"license":"MIT","_id":"@caitun/speex@0.1.0","maintainers":[{"name":"iflamed","email":"iflamed@gmail.com"}],"homepage":"https://github.com/caitunai/speex#readme","bugs":{"url":"https://github.com/caitunai/speex/issues"},"dist":{"shasum":"e3e2e744e9b0e5e81c0c4a865756acd76cbea84f","tarball":"https://registry.npmjs.org/@caitun/speex/-/speex-0.1.0.tgz","fileCount":7,"integrity":"sha512-rmZpx0cK8tKcZxsw8GFz/d/nxSNzv5egFXHqFk5R5pj42S1Z9Nw4gVDH9KtNcIhwow+dEB64wt4dTa8ULyTOqw==","signatures":[{"sig":"MEUCIHtjQWqyxjlB09PsXv9BjXpny6+9tcEvrdetE7rNJVTJAiEAtPlkmuNw5rhWR5oDVp2m9CejxxfIRdJz/Dj39BXCS00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":179435},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./wasm/speex-wasm.js":"./dist/wasm/speex-wasm.js","./wasm/speex-wasm.wasm":"./dist/wasm/speex-wasm.wasm"},"scripts":{"test":"node --test test/*.test.mjs","build":"npm run build:js && npm run build:wasm","build:js":"sh scripts/build-js.sh","build:wasm":"sh scripts/build-wasm.sh"},"_npmUser":{"name":"iflamed","email":"iflamed@gmail.com"},"repository":{"url":"git+https://github.com/caitunai/speex.git","type":"git","directory":"packages/browser"},"_npmVersion":"11.17.0","description":"Browser Speex encoder and decoder powered by Speex WebAssembly.","directories":{},"_nodeVersion":"26.4.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/speex_0.1.0_1783579081002_0.31259466897079013","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@caitun/speex","version":"0.1.1","keywords":["speex","codec","audio","wasm","webaudio"],"license":"MIT","_id":"@caitun/speex@0.1.1","maintainers":[{"name":"iflamed","email":"iflamed@gmail.com"}],"homepage":"https://github.com/caitunai/speex#readme","bugs":{"url":"https://github.com/caitunai/speex/issues"},"dist":{"shasum":"2fbd46f7e3f2a3ba1d663b519ba7cd2f6df95764","tarball":"https://registry.npmjs.org/@caitun/speex/-/speex-0.1.1.tgz","fileCount":7,"integrity":"sha512-+3wbkv6lxFXFDGvIlLMmr4I23kJkDbpJhV5h3xBypqglzJ+owi8wsSwHLFYXhybSMeN7D13PkYhq0XE/CTdVvA==","signatures":[{"sig":"MEUCIQCgcWcYCuTX08YvORat/YoHEkfuEU4ARXTkrSnGDxJd5QIgUmw4joH47WK9tXLWh4ne2sT3cI5ho2DywHuyGPYVNCs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@caitun%2fspeex@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":179546},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./wasm/speex-wasm.js":"./dist/wasm/speex-wasm.js","./wasm/speex-wasm.wasm":"./dist/wasm/speex-wasm.wasm"},"gitHead":"0bf622ba5ea5d5b350c2d770b66b2d807633a4e1","scripts":{"test":"node --test test/*.test.mjs","build":"npm run build:js && npm run build:wasm","build:js":"sh scripts/build-js.sh","build:wasm":"sh scripts/build-wasm.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:72f54118-f924-43ce-8e60-724664ddd09f"}},"repository":{"url":"git+https://github.com/caitunai/speex.git","type":"git","directory":"packages/browser"},"_npmVersion":"11.16.0","description":"Browser Speex encoder and decoder powered by Speex WebAssembly.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/speex_0.1.1_1783579638895_0.49468613906881354","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@caitun/speex","version":"1.0.0","description":"Browser Speex encoder and decoder powered by Speex WebAssembly.","type":"module","license":"MIT","homepage":"https://github.com/caitunai/speex#readme","repository":{"type":"git","url":"git+https://github.com/caitunai/speex.git","directory":"packages/browser"},"bugs":{"url":"https://github.com/caitunai/speex/issues"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./wasm/speex-wasm.js":"./dist/wasm/speex-wasm.js","./wasm/speex-wasm.wasm":"./dist/wasm/speex-wasm.wasm"},"scripts":{"build":"npm run build:js && npm run build:wasm","build:js":"sh scripts/build-js.sh","build:wasm":"sh scripts/build-wasm.sh","test":"node --test test/*.test.mjs"},"keywords":["speex","codec","audio","wasm","webaudio"],"publishConfig":{"registry":"https://registry.npmjs.org","access":"public","provenance":true},"gitHead":"cbabf6e8213ad6eb2c984c2904996ad529536b1b","_id":"@caitun/speex@1.0.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-iJvBtvybizbvTpA3hzW6sy8MIPx4eVVHRH6bMxoLdmrJ7hoWnFzmMphc2wj+eYK1Gy2oW+TsR1TWM7R7aMISpQ==","shasum":"a01e6aac1b00e80fe9a8abeaa1e25e9680d74cbb","tarball":"https://registry.npmjs.org/@caitun/speex/-/speex-1.0.0.tgz","fileCount":7,"unpackedSize":179546,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@caitun%2fspeex@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDIUB5kMGMy+0IkiNySFFH2iR9cxmY6IxODv9+gKRbulgIhAP7tmoBuzP6Ft0zsicya10TJpN0KST1vT7UG9ZSVh5VO"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:72f54118-f924-43ce-8e60-724664ddd09f"}},"directories":{},"maintainers":[{"name":"iflamed","email":"iflamed@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/speex_1.0.0_1783588625943_0.2136439000432282"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-09T06:38:00.788Z","modified":"2026-07-09T09:17:06.396Z","0.1.0":"2026-07-09T06:38:01.148Z","0.1.1":"2026-07-09T06:47:19.030Z","1.0.0":"2026-07-09T09:17:06.083Z"},"bugs":{"url":"https://github.com/caitunai/speex/issues"},"license":"MIT","homepage":"https://github.com/caitunai/speex#readme","keywords":["speex","codec","audio","wasm","webaudio"],"repository":{"type":"git","url":"git+https://github.com/caitunai/speex.git","directory":"packages/browser"},"description":"Browser Speex encoder and decoder powered by Speex WebAssembly.","maintainers":[{"name":"iflamed","email":"iflamed@gmail.com"}],"readme":"# @caitun/speex\n\nBrowser Speex encoder and decoder powered by Speex compiled to WebAssembly.\n\n## Install\n\n```bash\nnpm install @caitun/speex\n```\n\n## Usage\n\n```js\nimport { SpeexEncoder, SpeexDecoder } from '@caitun/speex'\n\nconst encoder = await SpeexEncoder.create({\n  sampleRate: 16000,\n  quality: 8,\n  complexity: 3\n})\n\nconst pcm = new Float32Array(encoder.frameSize)\nconst frame = encoder.encode(pcm)\nencoder.close()\n\nconst decoder = await SpeexDecoder.create({\n  sampleRate: 16000\n})\n\nconst decoded = decoder.decode(frame)\ndecoder.close()\n```\n\nIf your bundler serves WASM assets from a custom location, pass `locateFile`:\n\n```js\nconst encoder = await SpeexEncoder.create({\n  locateFile: (path) => `/assets/${path}`\n})\n```\n\n## Build\n\n```bash\nnpm run build\n```\n\n`build:wasm` requires Emscripten `emcc`.\n","readmeFilename":"README.md"}