Skip to content
Extraits de code Groupes Projets
Valider 9668e57d rédigé par Sting's avatar Sting
Parcourir les fichiers

Update README

parent 39553f95
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -24,7 +24,7 @@ Get a data buffer from an audio file: ...@@ -24,7 +24,7 @@ Get a data buffer from an audio file:
### Extracting vocals from music ### Extracting vocals from music
- https://github.com/deezer/spleeter/ - https://github.com/facebookresearch/demucs
### Syllable segmentation and recognition ### Syllable segmentation and recognition
...@@ -33,43 +33,36 @@ Get a data buffer from an audio file: ...@@ -33,43 +33,36 @@ Get a data buffer from an audio file:
# Installation # Installation
## Python ## Requirements
You need python 3 with the tensorflow library. We will set up a virtual environment to not mess up with the system. - MKVToolnix (at least the CLI utils)
To do that you will need [virtualenv](https://virtualenv.pypa.io/en/stable/) and - Python >= 3.8
[virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/).
One way to do it, in the correct directory (the project's one), enter the commands: ## Setup
This project requires at least Python 3.8, and using a virtual environment is strongly recommended.
To install the dependencies, execute in the project directory :
```bash ```bash
$ python3 -m venv env # create the virtual envireonment, do it once $ python -m venv env # create the virtual environment, do it once
$ source env/bin/activate # use the virtual envireonement $ source env/bin/activate # use the virtual environement
# Here goes the install commands # Install the Demucs (vocal separation tool)
$ pip install --upgrade tensorflow $ pip install -U demucs
$ pip install numpy scipy
$ pip install scikit-learn # To exit the virtual environment
$ pip install pillow $ deactivate
$ pip install h5py
$ pip install keras
$ deactivate # quit the virtual envireonment
``` ```
Or, an other way to do it: # Use
To extract .wav audio from all MKVs in a folder :
```bash ```bash
$ mkvirtualenv keras_tf -p python3 # create the virtual envireonment, do it once $ ./extractWav.sh source_folder output_folder
$ workon keras_tf # use the virtual envireonement
# Here goes the install commands
$ pip install --upgrade tensorflow
$ pip install numpy scipy
$ pip install scikit-learn
$ pip install pillow
$ pip install h5py
$ pip install keras
# don't know how to quit, find it yourself
``` ```
Or easier, install them directly without virtual environment. To separate vocals from instruments in an audio file :
```bash
demucs --two-stems=vocal -o output_folder audio_file.wav
```
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter