#pcm #silk

bin+lib silk-rs

Rust bindings for silk

3 unstable releases

0.2.0 Jul 9, 2022
0.1.1 Mar 16, 2022
0.1.0 Mar 6, 2022

#808 in Audio

29 downloads per month
Used in 2 crates

MIT license

1MB
17K SLoC

C 13K SLoC // 0.3% comments GNU Style Assembly 4K SLoC // 0.1% comments Rust 268 SLoC

Silk-rs

How to use

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();

Dependencies

~0.4–3MB
~62K SLoC