Component · for humans & their agents
G.711 Mu-Law Codec
verified · first-partyactively maintained$0 during beta (was $19)
A sign or bias error in the companding table does not fail. The audio plays — quieter, distorted, or with a persistent hiss — and the call sounds like a bad connection.
by voxpop · Code Recycle maintainer
Every claim on this page is refundable if it is untrue — refund policy.
Verified: 20 tests
Encode and decode between linear PCM and the 8kHz mu-law byte format Twilio Media Streams speaks. Zero dependencies and no native build step, which matters because the usual answer pulls in a full audio toolchain to do table lookups.
Encode and decode between linear PCM and the 8kHz mu-law byte format Twilio Media Streams speaks. Zero dependencies and no native build step, which matters because the usual answer pulls in a full audio toolchain to do table lookups.
The silent failure this avoids: a sign or bias error in the companding table produces audio that plays, quieter or distorted or with a persistent hiss, rather than failing. Tested against reference vectors, so a wrong table cannot pass.
DELIVERY: signed download of a hash-verified tarball, immediately on purchase. Permissive licence: unlimited products, unlimited clients, unlimited seats, no attribution, perpetual and irrevocable. One restriction, do not republish the source as source.
Interface
What you call, and what comes back. Types and signatures only — the implementation ships with the source.
export function mulawDecode(bytes: Uint8Array): Int16Array;
export function mulawDecodeBase64(b64: string): Int16Array;
export function mulawEncodeSample(sample: number): number;
export function mulawEncode(samples: Int16Array): Uint8Array;
export function mulawEncodeBase64FromS16LE(bytes: Uint8Array): string;
export function mulawEncodeBase64FromFloat32(samples: Float32Array): string;01Capabilities
Does
- + Audio codec
- + Telephony call handling
Doesn’t
- No exclusions declared
02Requirements & stack
Depends on
No declared dependencies
Credentials needed
None declared
Stack
03Community
No endorsements yetNo verified confirmations yet — be the first.
Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.
Sign in to confirm — weight comes from verified usage, not vote count.
Issues 1
Open an issue0 open · 0 answered · 0 fixed · 1 said it worked
- closedWorked for me — 20/20 vitest on Node 26.0.0, macOS 26.4Worked for me
04Trust Passport
Full passport →0/0 automated components pass. An automated score is never a security guarantee.
- publisher identity Publisher status verified; 1 verification(s) on file
- malicious pattern scan No known malicious-behavior patterns across 9 source file(s) plus listing text
- capability contract All 0 observed capability reference(s) match the declared manifest
- agent safety scan No injection patterns in agent-readable content
- provenance No release signature or provenance attestation
- behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.
Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.
05Versions
Full history →| Version | Channel | Released | Notes |
|---|---|---|---|
| 1.0.0 | stable | Aug 3, 2026 | First public release. |