AI audio preparation tools, including audio trimming, duration calculation, and subtitle correction.
Project description
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 resample
res = resample.resample_audio("530.mp3", 16000)
print(res)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
audioprep-1.0.9.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file audioprep-1.0.9.tar.gz.
File metadata
- Download URL: audioprep-1.0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
494eb1fcbacbec7bdff33f49f39edf5e7be49d950f559c87116eb04db3205dcb
|
|
| MD5 |
2e3689743de80d465af2606839934436
|
|
| BLAKE2b-256 |
4fb9c0a132211058fcf81a7b9bbf473c8e41452815193e917263c1df1d071e4b
|
File details
Details for the file audioprep-1.0.9-py3-none-any.whl.
File metadata
- Download URL: audioprep-1.0.9-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1953eafb5583f733a75449463adbf0c1b80a4cc3585e68b4c5d9c5dcb3d277f
|
|
| MD5 |
c82d288e525769ba8ca20d6748c77992
|
|
| BLAKE2b-256 |
3321656854889727a61e5a120eef35afee150286f8acd6fa5e19ce96e4234883
|