Code Monkey home page Code Monkey logo

jimmy-sha256 / audio_splitter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2 KB

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.

Python 100.00%
audio-editing audio-processing moviepy mp3 splitting-audio

audio_splitter's Introduction

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.

audio_splitter's People

Contributors

jimmy-sha256 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.