Skip to content

jetfontanilla/rust-webassembly-wav-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rust to WebAssembly WAV Encoder

WebAssembly WAV Encoder to convert raw audio and encode them to WAV files

uses the Rust programming language with wasm-pack for generating WASM binaries

How to use

install the dependency from npm

$ npm install wasm-wav-encoder

then on your JS / TypeScript files:

import * as wasm from "wasm-wav-encoder"


let encodedChunk = wasm.export_wav(leftBuffer, rightBuffer, sampleRate, firstChunk);
let blob = new Blob([encodedChunk], {type: "audio/wav"});

About

Rust compiled to Web Assembly to encode WAV files

Topics

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages