#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

#801 in Audio

39 downloads per month
Used in silk-cli

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.5–2.9MB
~58K SLoC