Update Getting Started
+3
-43
@@ -34,48 +34,6 @@ pip install .
|
||||
audio_splitter input.mp3 tracklist.txt
|
||||
```
|
||||
|
||||
### Using Docker
|
||||
You can also pull a pre-build OCI image from the registry
|
||||
|
||||
**Web API only:**
|
||||
```bash
|
||||
docker pull git.vmn.su/max/audio_splitter_backend:latest
|
||||
docker container run -d -p 8000:8000 git.vmn.su/max/audio_splitter_backend:latest
|
||||
curl -X POST -F "file=@./q.opus" http://localhost:8000/api/upload
|
||||
# Response: {"task_id":"dca75691","filename":"q.opus","size":4010709}
|
||||
# We need to copy task_id
|
||||
curl -X POST http://localhost:8000/api/split \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"task_id": "YOUR_TASK_ID",
|
||||
"tracklist": [
|
||||
{"ts": "00:00", "tn": "Intro"},
|
||||
{"ts": "01:30", "tn": "Song One", "an": "Artist A"},
|
||||
{"ts": "02:20", "tn": "Another Song", "an": "Artist B"}
|
||||
],
|
||||
"options": {
|
||||
"format": "mp3"
|
||||
}
|
||||
}'
|
||||
# Response: {"task_id":"YOUR_TASK_ID","status":"processing"}
|
||||
curl http://localhost:8000/api/status/YOUR_TASK_ID
|
||||
# Response {"task_id":"YOUR_TASK_ID","status":"done","progress":100,"message":"Split complete","error":null,"tracks":[....]}
|
||||
# Now you can download the result
|
||||
curl -OJ http://localhost:8000/api/download/YOUR_TASK_ID
|
||||
```
|
||||
|
||||
Complete web-interface:
|
||||
```bash
|
||||
# Pull and start the backend
|
||||
docker pull git.vmn.su/max/audio_splitter_backend:latest
|
||||
docker container run -d -p 8000:8000 git.vmn.su/max/audio_splitter_backend:latest
|
||||
|
||||
# Pull and start the frontend
|
||||
docker pull git.vmn.su/max/audio_splitter_frontend:latest
|
||||
docker run -d -p 5173:80 git.vmn.su/max/audio_splitter_frontend:latest
|
||||
```
|
||||
Now the fully functional web-interface should be accessible via http://localhost:5173
|
||||
|
||||
|
||||
### Using Docker Compose
|
||||
Web version is also available with Docker Compose:
|
||||
@@ -102,4 +60,6 @@ services:
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
```
|
||||
```
|
||||
|
||||
Now the fully functional web-interface should be accessible via http://localhost:5173
|
||||
Reference in New Issue
Block a user