AI 音频预处理工具
功能描述
- 包含常见的AI音频预处理功能,如音频重采样、音频去空白、音频时长获取等。
pip安装
pip install audioprep
获取音频时长
from audioprep import duration
rs = duration.get_audio_duration('test.wav')
print(f"音频时长: {rs}秒")
移除开头和结尾静音
from audioprep import silence
res = silence.trim_silence("530.mp3", "530_after.mp3")
print(res)
移除所有静音
from audioprep import silence
res = silence.remove_long_silence("530.mp3", "530_after.mp3",silence_thresh='-40dB', min_silence_len=3)
print(res)
音频重采样
from audioprep import resample
res = resample.resample_audio("530.mp3", 16000)
print(res)
Metadata
Release files for audioprep 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| audioprep-1.1.5.tar.gz | 4.1 kB | Without provenance | Details for audioprep-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| audioprep-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for audioprep-1.1.5-py3-none-any.whl |
Total release size: 9.1 kB
Release files / audioprep-1.1.5.tar.gz
| Download URL | audioprep-1.1.5.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e37b04d9f44833b89797cdeb2a83c522899a49c0a413b1ff04324990158c391
|
|
BLAKE2b-256 checksum How to use checksums |
f80c016e8341feb6ddd0f41270bc7d422e2895cd70581f12c39886d3fdea3d00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / audioprep-1.1.5-py3-none-any.whl
| Download URL | audioprep-1.1.5-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5713aea64e84e8e99b430d9b779f5c04ef1a6c39a78491228b0e529e7083736b
|
|
BLAKE2b-256 checksum How to use checksums |
c77231e98dc581c33cc20f85e3aa09dfb07d29b7ca15b44f574d205376184872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for audioprep 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.