| Name | vocal JSON |
| Version |
0.0.5
JSON |
| download |
| home_page | None |
| Summary | A vocal source separation |
| upload_time | 2024-08-31 12:45:29 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | None |
| license | MIT License Copyright (c) 2024 Seanghay Yath Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Vocal
A vocal source separation
```
pip install vocal
```
```python
import librosa
import soundfile as sf
from vocal import get_model, separate_vocal
device = "cuda" # or cpu
audio, sr = librosa.load("audio.wav", sr=44100, mono=False)
model = get_model(device) # download model from HF
audio_data = separate_vocal(model, audio, device, silent=False)
sf.write("vocal.mp3", format="MP3", data=audio_data.T, samplerate=sr)
```
## CLI
Sinlge file
```shell
vocali -i audio.mp3 -o output.mp3
```
Folder
```shell
vocali -i audio/ -o output --recursive
```
Raw data
{
"_id": null,
"home_page": null,
"name": "vocal",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Seanghay Yath <seanghay.dev@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/53/58/25c8e45831ec067766082dd2183a301bdf99970067278377bb9a24da8a01/vocal-0.0.5.tar.gz",
"platform": null,
"description": "# Vocal\n\nA vocal source separation\n\n\n```\npip install vocal\n```\n\n```python\nimport librosa\nimport soundfile as sf\nfrom vocal import get_model, separate_vocal\n\ndevice = \"cuda\" # or cpu\naudio, sr = librosa.load(\"audio.wav\", sr=44100, mono=False)\nmodel = get_model(device) # download model from HF\naudio_data = separate_vocal(model, audio, device, silent=False)\nsf.write(\"vocal.mp3\", format=\"MP3\", data=audio_data.T, samplerate=sr)\n```\n\n\n## CLI\n\nSinlge file\n\n```shell\nvocali -i audio.mp3 -o output.mp3\n```\n\nFolder\n\n```shell\nvocali -i audio/ -o output --recursive\n```",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Seanghay Yath Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A vocal source separation",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/seanghay/vocal",
"Repository": "https://github.com/seanghay/vocal"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f883b5f061fa0da6cbb896b2f0ee6ba6cfb6589a3e575dba98cc2fbc3b5d9d28",
"md5": "395da3c1d6615c70981c726e6246a430",
"sha256": "c77913c2e8e93c39b581d3be5471c9ec73c87d70e33e3d8bef929f6a27d2d0cd"
},
"downloads": -1,
"filename": "vocal-0.0.5-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "395da3c1d6615c70981c726e6246a430",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5298,
"upload_time": "2024-08-31T12:45:27",
"upload_time_iso_8601": "2024-08-31T12:45:27.497394Z",
"url": "https://files.pythonhosted.org/packages/f8/83/b5f061fa0da6cbb896b2f0ee6ba6cfb6589a3e575dba98cc2fbc3b5d9d28/vocal-0.0.5-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "535825c8e45831ec067766082dd2183a301bdf99970067278377bb9a24da8a01",
"md5": "c8af5b657370a20acb08a87449f39ccf",
"sha256": "09d7849b361cee7de8835a235af59f37a2d744e1ffa5c0da6d47752bfafa01a3"
},
"downloads": -1,
"filename": "vocal-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "c8af5b657370a20acb08a87449f39ccf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5414,
"upload_time": "2024-08-31T12:45:29",
"upload_time_iso_8601": "2024-08-31T12:45:29.343451Z",
"url": "https://files.pythonhosted.org/packages/53/58/25c8e45831ec067766082dd2183a301bdf99970067278377bb9a24da8a01/vocal-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-31 12:45:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "seanghay",
"github_project": "vocal",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "vocal"
}