#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

#784 in Audio

Download history 4/week @ 2024-11-27 13/week @ 2024-12-04 18/week @ 2024-12-11 2/week @ 2024-12-18 8/week @ 2025-01-15 6/week @ 2025-02-05 18/week @ 2025-02-12 5/week @ 2025-02-19 23/week @ 2025-02-26

52 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
~63K SLoC