Skip to content

nc1z/audio-extraction-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Extraction Tool

Simple Python script to extract audio from videos

Getting started

  1. Make sure you have Python and Git installed on your computer

  2. Clone the repository and navigate into the project root

    $ git clone https://github.com/nc1z/audio-extraction-tool.git
    $ cd audio-extraction-tool/
  3. Run the command

    $ pip install moviepy
  4. Place your mp4 videos into ./input

  5. Run the command

    $ python main.py
  6. The extracted audio files will be found in ./output

Audio sampling

You might want to split the extracted audio into multiple parts for sampling purposes (e.g. training AI voice models or like Tortoise-tts)

  1. Set num_parts in split-audio-sampling.py to your desired number of samples

  2. Run the command

    $ python split-audio-sampling.py

Clean up

You might want remove the output_samples/ directory after you are done saving the sample audio files. Simply run the command:

$ python split-audio-sampling.py

About

Simple Python script to extract audio from videos

Topics

Resources

Stars

Watchers

Forks

Languages