
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@thi.ng/dsp-io-wav
Advanced tools
[!NOTE] This is one of 202 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.
🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️
WAV file format generation. This is a support package for @thi.ng/dsp.
STABLE - used in production
Search or submit any issues for this package
yarn add @thi.ng/dsp-io-wav
ESM import:
import * as wav from "@thi.ng/dsp-io-wav";
Browser ESM import:
<script type="module" src="https://esm.run/@thi.ng/dsp-io-wav"></script>
For Node.js REPL:
const wav = await import("@thi.ng/dsp-io-wav");
Package sizes (brotli'd, pre-treeshake): ESM: 488 bytes
Note: @thi.ng/api is in most cases a type-only import (not used at runtime)
One project in this repo's /examples directory is using this package:
| Screenshot | Description | Live demo | Source |
|---|---|---|---|
![]() | Generative audio synth offline renderer and WAV file export | Demo | Source |
TODO
import { osc, sin } from "@thi.ng/dsp";
import { wavByteArray } from "@thi.ng/dsp-io-wav";
const FS = 48000;
// write 1 second 24bit mono WAV file of 440Hz sine
fs.writeFileSync(
"sine-440.wav",
wavByteArray(
{ sampleRate: FS, channels: 1, length: FS, bits: 24 },
osc(sin, 440 / FS)
)
);
If this project contributes to an academic publication, please cite it as:
@misc{thing-dsp-io-wav,
title = "@thi.ng/dsp-io-wav",
author = "Karsten Schmidt",
note = "https://thi.ng/dsp-io-wav",
year = 2020
}
© 2020 - 2025 Karsten Schmidt // Apache License 2.0
FAQs
WAV file format generation
We found that @thi.ng/dsp-io-wav demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.