Jimmy-sha256 / Audio_Splitter

AudioSplitterMP3 script is a simple yet powerful tool for splitting audio files into smaller segments, perfect for managing lengthy recordings or extracting specific portions of audio content. With support for MP3 format and customizable duration settings, it offers flexibility and convenience for various audio processing tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio_Splitter_MP3

Audio_Splitter_MP3 is a Python script that allows you to split an audio file into parts of specified durations and save each part as a separate MP3 file.

Usage

  1. Install the necessary dependencies:

    pip install moviepy
  2. Clone the repository:

    git clone https://github.com/your-username/audio-splitter-mp3.git
  3. Navigate to the project directory:

    cd Audio_Splitter_mp3
  4. Run the script:

    python Audio_Splitter_MP3.py

    Replace input_audio_file.mp3 with the path to your input audio file.

Parameters

  • input_file: Path to the input audio file.
  • output_prefix: Prefix to be used for naming the output files.
  • duration_per_part: Duration (in minutes) of each part into which you want to split the audio.

Example

input_file = "input_audio_file.mp3"
output_prefix = "part"
duration_per_part = 60  # Duration per part in minutes
split_audio_into_parts(input_file, output_prefix, duration_per_part)

Dependencies

  • MoviePy - Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects.

License

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

About

AudioSplitterMP3 script is a simple yet powerful tool for splitting audio files into smaller segments, perfect for managing lengthy recordings or extracting specific portions of audio content. With support for MP3 format and customizable duration settings, it offers flexibility and convenience for various audio processing tasks.


Languages

Language:Python 100.0%