Skip to main content

Audio DeSilencer

Audio DeSilencer is a powerful Python package for audio processing that empowers you to detect and remove silence in audio recordings. Additionally, it provides functionality to facilitate video silence removal using the generated text files.

Features

  • Silence Detection: Identify and segment silent parts of audio based on custom-defined silence thresholds and minimum silence duration.

  • Silence Removal: Effortlessly remove detected silence segments to enhance audio quality and eliminate unnecessary gaps.

  • Text File Generation: Create text files containing the timeline data of silent and non-silent parts, facilitating further processing for video silence removal or in-depth analysis.

  • Command-Line Interface: Seamlessly integrate Audio DeSilencer into your audio and video processing pipelines with an intuitive command-line interface.

Installation

Installation via pip

To install Audio DeSilencer using pip, simply run:

pip install audio-desilencer

Now, you can run Audio DeSilencer from the command line:

audio-desilencer input_audio.mp3 --output_folder output_directory --min_silence_len 100 --threshold -30

Manual Installation

If you prefer not to use pip, you can manually install Audio DeSilencer by following these steps:

  1. Clone the Audio DeSilencer repository:

    git clone https://github.com/BTawaifi/Audio-DeSilencer.git
    
  2. Navigate to the project directory:

    cd Audio-DeSilencer
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Now, you can run Audio DeSilencer from the command line:

    python audio-desilencer.py input_audio.mp3 --output_folder output_directory --min_silence_len 100 --threshold -30
    

Command-Line Arguments

  • input_audio.mp3: The path to the input audio file.
  • --output_folder: (Optional) The folder where the output files and timeline data will be saved (default is "output").
  • --min_silence_len: (Optional) The minimum duration of silence (in milliseconds) to be considered as a separate silent part (default is 100 ms).
  • --threshold: (Optional) The silence threshold in dBFS (decibels relative to full scale) used to distinguish between silent and non-silent parts (default is -30 dBFS).

Output

Audio DeSilencer will generate the following output:

  • interview_silent.mp3: Audio file with silence segments removed.
  • interview_non_silent.mp3: Audio file containing only the non-silent parts.
  • silent_parts.txt: Timeline data of silent parts.
  • non_silent_parts.txt: Timeline data of non-silent parts.

Usage Example

Here's a usage example to get you started:

python audio-desilencer.py input_audio.mp3 --output_folder output_directory --min_silence_len 100 --threshold -30

Or if you have it installed using pip

audio-desilencer input_audio.mp3 --output_folder output_directory --min_silence_len 100 --threshold -30

Contributing

Contributions to Audio DeSilencer are highly encouraged! Whether you'd like to report issues or submit pull requests to enhance the tool, your contributions are invaluable. Please refer to the CONTRIBUTING guide for details on how to contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for Audio-DeSilencer 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Audio-DeSilencer 1.0.2
File Size Uploaded Provenance
Audio-DeSilencer-1.0.2.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for Audio-DeSilencer 1.0.2
File Interpreter ABI Platform
Audio_DeSilencer-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / Audio-DeSilencer-1.0.2.tar.gz

Download URL Audio-DeSilencer-1.0.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
059eb166d2c35ef3adb00a54b8422d8304165242ad541a60c7d9eb5b1d8b2a3b
BLAKE2b-256 checksum
How to use checksums
0804cb689ee7361d61f1ef9f8bb29c15338cf06e68d86dc2b13edab045c1decc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / Audio_DeSilencer-1.0.2-py3-none-any.whl

Download URL Audio_DeSilencer-1.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a50181c3a00a553520a0005a2e74552aecf2265d0b73d2099c06f7b43773de9a
BLAKE2b-256 checksum
How to use checksums
81122e4f362eeb0155b14b32cac7500794fd80afc6d57a70db97aa089b079908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for Audio-DeSilencer 1.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page