Crates.io | silk-rs |
lib.rs | silk-rs |
version | 0.2.0 |
source | src |
created_at | 2022-03-06 16:02:36.246608 |
updated_at | 2022-07-09 11:26:23.094283 |
description | Rust bindings for silk |
homepage | https://github.com/lz1998/silk-rs |
repository | https://github.com/lz1998/silk-rs |
max_upload_size | |
id | 544547 |
size | 1,374,075 |
Encode
let input = std::fs::read("input.pcm").unwrap();
let output = encode_silk(input, 24000, 24000, true).unwrap();
std::fs::write("output.silk", output).unwrap();
Decode
let input = std::fs::read("input.silk").unwrap();
let output = decode_silk(input, 24000).unwrap();
std::fs::write("output.pcm", output).unwrap();