AIStemSplitter Python SDK
Official Python SDK for the AIStemSplitter public API.
- Homepage: https://aistemsplitter.org
- API docs: https://aistemsplitter.org/developers/api
- API base:
https://api.aistemsplitter.org/v1 - OpenAPI: https://api.aistemsplitter.org/openapi.yaml
Installation
Install from PyPI:
pip install aistemsplitter
The conda-forge package is in review. After conda-forge publication:
conda install -c conda-forge aistemsplitter
Usage
import os
from aistemsplitter import AIStemSplitter
client = AIStemSplitter(os.environ["AISTEMSPLITTER_API_KEY"])
split = client.create_split({
"input": {
"type": "direct_url",
"url": "https://example.com/song.mp3",
},
"stemModel": "6s",
})
print(split["id"])
Uploading local audio
with open("song.mp3", "rb") as handle:
upload = client.upload_audio(
handle.read(),
filename="song.mp3",
content_type="audio/mpeg",
)
split = client.create_split({"input": upload["input"], "stemModel": "6s"})
result = client.wait_for_split(split["id"])
Development
PYTHONPATH=src python -m unittest discover -s tests
The conda-forge recipe skeleton lives in
conda-forge/staged-recipes/recipes/aistemsplitter.
Release files for aistemsplitter 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aistemsplitter-0.1.1.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aistemsplitter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / aistemsplitter-0.1.1.tar.gz
| Download URL | aistemsplitter-0.1.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17be4cea760dfbf2e81c5c8ce8a61ac98d90c8d77680dbd72e350b85c066677f
|
|
BLAKE2b-256 checksum How to use checksums |
52d0b2560749f9340eaf993298a489c15b5773183bc1146f197492fef685ad13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / aistemsplitter-0.1.1-py3-none-any.whl
| Download URL | aistemsplitter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4feb6091d7b26fc9618e440200be878e582d456a80623c9a2d51eef2d82a224
|
|
BLAKE2b-256 checksum How to use checksums |
f8ff7453af30b9b836fe6d44c60f9ed3b335f8ca01a3b98b06aee4eae1ccf6f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|