{"id":28002212,"url":"https://github.com/cyanchanges/python-dfpwm","last_synced_at":"2025-05-09T00:16:32.032Z","repository":{"id":214171721,"uuid":"735865714","full_name":"CyanChanges/python-dfpwm","owner":"CyanChanges","description":"Convert something to DFPWM","archived":false,"fork":false,"pushed_at":"2025-04-18T07:52:39.000Z","size":8880,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T00:16:21.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyanChanges.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-26T09:52:30.000Z","updated_at":"2025-04-18T07:52:43.000Z","dependencies_parsed_at":"2024-12-22T05:22:44.569Z","dependency_job_id":"0821adf2-2828-43a0-94e2-57938e193e3a","html_url":"https://github.com/CyanChanges/python-dfpwm","commit_stats":null,"previous_names":["cyanchanges/python-dfpwm"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanChanges%2Fpython-dfpwm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanChanges%2Fpython-dfpwm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanChanges%2Fpython-dfpwm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanChanges%2Fpython-dfpwm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanChanges","download_url":"https://codeload.github.com/CyanChanges/python-dfpwm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166502,"owners_count":21864482,"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":[],"created_at":"2025-05-09T00:16:31.455Z","updated_at":"2025-05-09T00:16:32.024Z","avatar_url":"https://github.com/CyanChanges.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DFPWM\n\nDFPWM convertor for Python\n\n## Installation\n\n### From PyPI\nYou can get this package from PyPI\nif you are in py311 Linux x86\n\n```shell\npip install dfpwm\n```\n\n## Usage\n\n```python\nfrom pathlib import Path\nimport soundfile as sf  # for reading audio\nimport dfpwm\n\ndata, sample_rate = sf.read('./someaudio.mp3')  # read audio\n\n# If sample rate is not 48000, may get strange result\n# use `dfpwm.resample(...)` to resample\nif sample_rate != dfpwm.SAMPLE_RATE:\n    raise ValueError(f\"{sample_rate} != {dfpwm.SAMPLE_RATE}\")\n\nif len(data.shape) != 0 and data.shape[1] \u003e 1:\n    data = data[:, 0]  # get channel 0\n\ndfpwm = dfpwm.compressor(data)  # convert\nPath('out.dfpwm').write_bytes(dfpwm)  # write result to file\n```\n\n## Build from source\n\n### Clone\n\n```shell\ngit clone https://github.com/CyanChanges/python-dfpwm.git python-dfpwm\ncd python-dfpwm\n```\n\n### Build\nThis project use `poetry` to build,\nMake sure `poetry` is installed.\n\n```shell\npoetry build\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanchanges%2Fpython-dfpwm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyanchanges%2Fpython-dfpwm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanchanges%2Fpython-dfpwm/lists"}