Official Python SDK for the AIStemSplitter public API.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aistemsplitter-0.1.1.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aistemsplitter-0.1.1.tar.gz.
File metadata
- Download URL: aistemsplitter-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17be4cea760dfbf2e81c5c8ce8a61ac98d90c8d77680dbd72e350b85c066677f
|
|
| MD5 |
95e9f85b549168f603a03a4c439df873
|
|
| BLAKE2b-256 |
52d0b2560749f9340eaf993298a489c15b5773183bc1146f197492fef685ad13
|
File details
Details for the file aistemsplitter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aistemsplitter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4feb6091d7b26fc9618e440200be878e582d456a80623c9a2d51eef2d82a224
|
|
| MD5 |
14f57827ba8e8a5132d88f9af38a484f
|
|
| BLAKE2b-256 |
f8ff7453af30b9b836fe6d44c60f9ed3b335f8ca01a3b98b06aee4eae1ccf6f6
|