Skip to content

acpp-server: run_task_stream - #64

Merged
timoncool merged 2 commits into
masterfrom
music-stream
Nov 12, 2026
Merged

timoncool merged 2 commits into
masterfrom
music-stream

Conversation

@timoncool

Copy link
Copy Markdown
Owner

Server::run_task_stream(model, request, cancel, on_event): a task through POST /v1/tasks/stream with stream_format: sse and include_artifacts: true. The artifacts of each event go to on_event as the model produces them, the answer is the result run_task gives for the same request; cancel ends the wait at once.

Checked against audio.cpp server 31cb1a4a (processor build) with MuScriptor small on a 30 s track: 259 events, chunk progress 1/6 … 6/6 two seconds apart, the same text and MIDI artifact in the result; the route answers for a model entered as offline too. A request the server refuses comes back as its HTTP error before the stream.

Adds only: run_task and the rest of the crate are unchanged. For the music studios' audio-to-MIDI (notes shown as they are heard).

…ver-sent events, each event's artifacts handed on as the model produces them (MuScriptor: notes and chunk progress), the result as run_task gives it
@timoncool
timoncool merged commit 19a35b5 into master Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant