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 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)
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.1.5.tar.gz
(4.1 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.1.5.tar.gz.
File metadata
- Download URL: audioprep-1.1.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e37b04d9f44833b89797cdeb2a83c522899a49c0a413b1ff04324990158c391
|
|
| MD5 |
ab3eb507deac808a94702bb2cdbefede
|
|
| BLAKE2b-256 |
f80c016e8341feb6ddd0f41270bc7d422e2895cd70581f12c39886d3fdea3d00
|
File details
Details for the file audioprep-1.1.5-py3-none-any.whl.
File metadata
- Download URL: audioprep-1.1.5-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
5713aea64e84e8e99b430d9b779f5c04ef1a6c39a78491228b0e529e7083736b
|
|
| MD5 |
c2cb6cc2cefa5ceb3b1834477143a31b
|
|
| BLAKE2b-256 |
c77231e98dc581c33cc20f85e3aa09dfb07d29b7ca15b44f574d205376184872
|