Crates.io | silk2wav |
lib.rs | silk2wav |
version | |
source | src |
created_at | 2024-11-06 11:22:14.170594 |
updated_at | 2024-11-06 11:22:14.170594 |
description | Converts silk to wav |
homepage | |
repository | https://github.com/super1207/silk2wav |
max_upload_size | |
id | 1438157 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Converts silk to wav
cargo add silk2wav
use silk2wav::silk2wav;
fn main() {
let silk_buf = std::fs::read("music.silk").unwrap();
let wav_buf = silk_to_wav(&silk_buf, 24000).unwrap();
std::fs::write("music.wav", &wav_buf).unwrap();
}