Skip to main content

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.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audioprep-1.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file audioprep-1.1.1.tar.gz.

File metadata

  • Download URL: audioprep-1.1.1.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

Hashes for audioprep-1.1.1.tar.gz
Algorithm Hash digest
SHA256 54ade056c911e21dee57cb9706ad0ecd63fffdedfdad87565b2968e23189045a
MD5 06a08639552ac344e90877c98e0f4f1e
BLAKE2b-256 d70b579f14ff44483951b7753d829e7e99e5f8638a2f3664be6927ed1e8af659

See more details on using hashes here.

File details

Details for the file audioprep-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: audioprep-1.1.1-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

Hashes for audioprep-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7af4b67e558b91bae8de572ee58e7ddb8e2314ac80eec462e86b6911269896ce
MD5 bf948b6371db3b0d135998c1d434403a
BLAKE2b-256 d7102475662d37e9ff69d63d0c6f312c397d59b927e83ab0a64dce3347123425

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page