vokal


Namevokal JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/Meet2147/vokal
SummaryA Python library for separating vocals and instruments from audio using Demucs.
upload_time2024-11-28 08:59:49
maintainerNone
docs_urlNone
authorMeet Jethwa
requires_pythonNone
licenseMIT
keywords vocal separation music processing audio tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            🎤 vocals

vocals is a Python library that separates vocals and instruments from audio files using Demucs, a state-of-the-art deep learning model for music source separation. This tool is perfect for music enthusiasts, researchers, and audio engineers who want to isolate vocals for remixing, analysis, or karaoke tracks.

Features

	•	Separate vocals and accompaniment from audio files with ease.
	•	High-quality output using Demucs’ advanced deep learning models.
	•	Simple, reusable interface for integration into other projects.

Installation

	1.	Clone this repository or install it via pip:

pip install vocals


	2.	Ensure you have Demucs installed. You can install it via pip:

pip install demucs



Usage

Here’s how you can use the library to separate vocals and instruments:

from vocals.separator import VocalSeparator

# Initialize the separator with a specific output directory
separator = VocalSeparator(output_directory="separated_tracks")

# Separate vocals from an audio file
input_audio_path = "/path/to/audio/file.mp3"  # Replace with your file path
try:
    output_path = separator.separate_vocals(input_audio_path)
    print(f"Separation complete. Files saved in {output_path}")
except Exception as e:
    print(f"An error occurred: {e}")

Requirements

	•	Python 3.7 or higher
	•	Demucs
	•	Other dependencies are automatically installed via pip.

Example

Input file: song.mp3
Output directory: separated_tracks/

After running the script, you’ll find two files in the output directory:
	1.	vocals.wav - Isolated vocals.
	2.	no_vocals.wav - Accompaniment without vocals.

Contributing

We welcome contributions! If you have ideas or want to improve this library:
	1.	Fork the repository.
	2.	Create a new branch (git checkout -b feature-name).
	3.	Commit your changes (git commit -m "Add feature").
	4.	Push to the branch (git push origin feature-name).
	5.	Open a pull request.

License

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

Support

If you encounter any issues or have questions, feel free to open an issue on GitHub.

Acknowledgments

This library uses the incredible Demucs model for source separation.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Meet2147/vokal",
    "name": "vokal",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "vocal separation, music processing, audio tools",
    "author": "Meet Jethwa",
    "author_email": "meetjethwa3@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/54/e5/911855e11a472a305bcfa9d31786cd541b153ab29ac1f865acd7814286eb/vokal-1.0.2.tar.gz",
    "platform": null,
    "description": "\ud83c\udfa4 vocals\n\nvocals is a Python library that separates vocals and instruments from audio files using Demucs, a state-of-the-art deep learning model for music source separation. This tool is perfect for music enthusiasts, researchers, and audio engineers who want to isolate vocals for remixing, analysis, or karaoke tracks.\n\nFeatures\n\n\t\u2022\tSeparate vocals and accompaniment from audio files with ease.\n\t\u2022\tHigh-quality output using Demucs\u2019 advanced deep learning models.\n\t\u2022\tSimple, reusable interface for integration into other projects.\n\nInstallation\n\n\t1.\tClone this repository or install it via pip:\n\npip install vocals\n\n\n\t2.\tEnsure you have Demucs installed. You can install it via pip:\n\npip install demucs\n\n\n\nUsage\n\nHere\u2019s how you can use the library to separate vocals and instruments:\n\nfrom vocals.separator import VocalSeparator\n\n# Initialize the separator with a specific output directory\nseparator = VocalSeparator(output_directory=\"separated_tracks\")\n\n# Separate vocals from an audio file\ninput_audio_path = \"/path/to/audio/file.mp3\"  # Replace with your file path\ntry:\n    output_path = separator.separate_vocals(input_audio_path)\n    print(f\"Separation complete. Files saved in {output_path}\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n\nRequirements\n\n\t\u2022\tPython 3.7 or higher\n\t\u2022\tDemucs\n\t\u2022\tOther dependencies are automatically installed via pip.\n\nExample\n\nInput file: song.mp3\nOutput directory: separated_tracks/\n\nAfter running the script, you\u2019ll find two files in the output directory:\n\t1.\tvocals.wav - Isolated vocals.\n\t2.\tno_vocals.wav - Accompaniment without vocals.\n\nContributing\n\nWe welcome contributions! If you have ideas or want to improve this library:\n\t1.\tFork the repository.\n\t2.\tCreate a new branch (git checkout -b feature-name).\n\t3.\tCommit your changes (git commit -m \"Add feature\").\n\t4.\tPush to the branch (git push origin feature-name).\n\t5.\tOpen a pull request.\n\nLicense\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\nSupport\n\nIf you encounter any issues or have questions, feel free to open an issue on GitHub.\n\nAcknowledgments\n\nThis library uses the incredible Demucs model for source separation.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library for separating vocals and instruments from audio using Demucs.",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Meet2147/vokal"
    },
    "split_keywords": [
        "vocal separation",
        " music processing",
        " audio tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4ec4282513c5de3164df849e8c199aabcad389d7b427e680251e4c714353ce3",
                "md5": "88fb58f9ef3b317ecd654c54262c84f5",
                "sha256": "77f42c28c01733762127e6162468c1100a76d9d0b1e19817d93a8d03d56dd07d"
            },
            "downloads": -1,
            "filename": "vokal-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88fb58f9ef3b317ecd654c54262c84f5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3498,
            "upload_time": "2024-11-28T08:59:48",
            "upload_time_iso_8601": "2024-11-28T08:59:48.354871Z",
            "url": "https://files.pythonhosted.org/packages/d4/ec/4282513c5de3164df849e8c199aabcad389d7b427e680251e4c714353ce3/vokal-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54e5911855e11a472a305bcfa9d31786cd541b153ab29ac1f865acd7814286eb",
                "md5": "4b172dcb1d8cf026b13ec1afab64091b",
                "sha256": "1fc8fda29351dd88690a86900621688fe7c65cacf5327cf39bb9a3fba034e9f2"
            },
            "downloads": -1,
            "filename": "vokal-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4b172dcb1d8cf026b13ec1afab64091b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3384,
            "upload_time": "2024-11-28T08:59:49",
            "upload_time_iso_8601": "2024-11-28T08:59:49.159388Z",
            "url": "https://files.pythonhosted.org/packages/54/e5/911855e11a472a305bcfa9d31786cd541b153ab29ac1f865acd7814286eb/vokal-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-28 08:59:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Meet2147",
    "github_project": "vokal",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "vokal"
}
        
Elapsed time: 0.40413s