{"id":28575050,"url":"https://github.com/audeering/audresamplelib","last_synced_at":"2025-10-10T16:25:39.415Z","repository":{"id":37706951,"uuid":"321979518","full_name":"audeering/audresamplelib","owner":"audeering","description":"A C wrapper around soxr, for sample rate conversion.","archived":false,"fork":false,"pushed_at":"2023-09-18T07:46:09.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-18T03:25:58.459Z","etag":null,"topics":["audio","dsp","remix","resample","soxr"],"latest_commit_sha":null,"homepage":"","language":"C","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/audeering.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":"2020-12-16T12:44:25.000Z","updated_at":"2024-04-18T03:25:58.460Z","dependencies_parsed_at":"2023-02-14T16:40:32.764Z","dependency_job_id":null,"html_url":"https://github.com/audeering/audresamplelib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audeering%2Faudresamplelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audeering%2Faudresamplelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audeering%2Faudresamplelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audeering%2Faudresamplelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/audeering","download_url":"https://codeload.github.com/audeering/audresamplelib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audeering%2Faudresamplelib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259160062,"owners_count":22814513,"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","dsp","remix","resample","soxr"],"created_at":"2025-06-10T22:13:54.515Z","updated_at":"2025-10-10T16:25:34.396Z","avatar_url":"https://github.com/audeering.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# audresamplelib\n\nA C wrapper around [soxr](https://sourceforge.net/projects/soxr/) for Sample \nRate Conversion (SRC).\n\n\n## Build\nThe library is intended to be built via CMake, using Conan as a dependency manager. \nFor the Conan part, it is suggested to set up and activate a Python virtual environment:\n\n```bash\nvirtualenv --python=python3 venv\nsource venv/bin/activate\n```\n\nOnce the virtual environment is activated, install the `conan` package:\n\n```bash\npip install conan\n```\n\nThen,\n```bash\nmkdir build\ncd build\nconan install ..\ncmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TOOLS=ON\nmake\n```\nThis will build both the wrapper library around `soxr` and two sample tools \n(executables) for SRC, one based on the `audresample_oneshot()` function \n(`src_oneshot`), the other based on the `audresample_process()` function, which \nacts in a streaming fashion (`src_streaming`).\n\n## Usage examples\nThe two sample executables (`src_oneshot` and `src_streaming`) are not really \nmeant for extensive use (even though they can be effectively used for SRC of wav\nfiles), but their source code ([`src_oneshot.c`](src_oneshot.c) and \n[`src_streaming.c`](src_streaming.c)) is rather meant to serve as usage examples \nfor the library API. \n\n### Command line usage of the conversion tools\n```\n./src_oneshot \u003cpath/to/input/wav\u003e \u003ctarget-sr\u003e\n./src_streaming \u003cpath/to/input/wav\u003e \u003ctarget-sr\u003e\n```\nAs a result, a wav file will be written in the same folder as the input file, \nhaving the same name but with a suffix indicating the new sample rate, e.g., \n`my-wav-file.wav` -\u003e `my-wav-file.wav_sr8000Hz.wav`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudeering%2Faudresamplelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faudeering%2Faudresamplelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudeering%2Faudresamplelib/lists"}