{"id":17874226,"url":"https://github.com/jomy10/jaudio","last_synced_at":"2026-01-20T22:02:11.641Z","repository":{"id":62441267,"uuid":"442217504","full_name":"Jomy10/JAudio","owner":"Jomy10","description":"A low-level interface for working with audio files.","archived":false,"fork":false,"pushed_at":"2022-01-09T16:58:11.000Z","size":12,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T07:06:02.867Z","etag":null,"topics":["audio","audio-encoding","rust","rust-crate","rust-lang","rust-library","wav","wave","waveform"],"latest_commit_sha":null,"homepage":"https://jonaseveraert.be","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jomy10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-27T16:47:31.000Z","updated_at":"2022-01-09T16:58:14.000Z","dependencies_parsed_at":"2022-11-01T22:01:57.173Z","dependency_job_id":null,"html_url":"https://github.com/Jomy10/JAudio","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FJAudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FJAudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FJAudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FJAudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jomy10","download_url":"https://codeload.github.com/Jomy10/JAudio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749968,"owners_count":20989713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","audio-encoding","rust","rust-crate","rust-lang","rust-library","wav","wave","waveform"],"created_at":"2024-10-28T11:08:05.928Z","updated_at":"2026-01-20T22:02:11.599Z","avatar_url":"https://github.com/Jomy10.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAudio\n\nA low-level interface for working with audio files.\n\nNote that this is a 0.x release and a currently only wave files are supported. in the future there will be support for other audioformats as well as converting fiels within the same format.\n\n## Usage\nAdd the following to your `Cargo.toml` file:\n```toml\nJAudio = \"0.1.1\"\n```\n\n### Wave files\nCurrently, only wave files are implemented.\n\nThe following example reads bytes from a file, then inserts these bytes in a `WaveFile` struct and finally saves the file\nagain.\n```rust\nuse jaudio::wave_file::*;\nuse std::fs;\n\nfn main() {\n    // Reading a file to bytes and creating a `WaveFile` object\n    // The file has 2 channels, a sample rate of 44100Hz and 16 bits per sample\n    let mut bytes: Vec\u003cu8\u003e = WaveFile::file_to_data(\"audio.wav\").unwrap();\n    let mut wave = WaveFile::new(AudioFormat::PCM, 2, 44100, 16);\n    \n    // adding the audio from the file we read to wave\n    wave.add_bytes(\u0026mut bytes);\n    \n    // The path we want to save the file to\n    let path = \"file.wav\";\n    fs::write(path, wave.to_bytes()).unwrap();\n}\n```\n\n## Contributions\nContributions ar very welcome, as I will probably not get around to completing all audio file formats.\nOptimizations to code are also very welcome.\n\n\n## Other info\nThis is a continuation of [Jonas' Utils](https://github.com/Jomy10/jonas-utils). Specifically, the [audio utils](https://github.com/Jomy10/jonas-utils/tree/master/src/main/java/be/jonaseveraert/util/audio).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fjaudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomy10%2Fjaudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fjaudio/lists"}