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 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.3.tar.gz (4.1 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.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for audioprep-1.1.3.tar.gz
Algorithm Hash digest
SHA256 1a79e9544f4af2567a9040d370751fb2e9ed29c145ea83cef0113b4935339495
MD5 6a181dd73beceb9425c1dedaa000761a
BLAKE2b-256 48146f925692fc6b08092fa8952b173f165b7ae6c368ed2d1fb848785c0b23f8

See more details on using hashes here.

File details

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

File metadata

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

Hashes for audioprep-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ccdb1a0f0f817fe27eb37f94714d739488c9004b53de3b87d3e871e98138254
MD5 6afa9ac2a395ef4e30840e2c4c550ccc
BLAKE2b-256 c81a731ab1511828132da2b39c1981a755ba3503e0b2383703e143e9c2942bd0

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