1.0.3 • Published 3 months ago

@evan/opus v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

fast opus bindings for node and browsers

bun add @evan/opus

npm install @evan/opus

import { Encoder, Decoder } from '@evan/opus';

const e = new Encoder({ channels: 2, sample_rate: 48_000 });
const d = new Decoder({ channels: 2, sample_rate: 48_000 });

d.decode(e.encode(pcm));

supported platforms

node@10node@12node@14node@16node@18
wasm32
macos x64
macos arm64
windows x64
linux x64 gnu
linux arm64 gnu

you can force usage of wasm by setting OPUS_FORCE_WASM env variable

for deno and browsers use @evan/wasm/target/opus/deno.js from npm/cdn

benchmarks

encoding decoding

License

MIT © Evan

1.0.3

3 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago