You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
result = model.infer(audio="long_meeting.wav", progress_callback=on_progress)
369
+
```
370
+
371
+
When `progress_callback` is provided, inference runs in a background thread while the client polls the server every 0.5s for progress updates. The callback receives `(current, total)` where `current` is the number of completed batches and `total` is the total number of batches.
372
+
373
+
You can also query progress manually (e.g. from another thread):
When no inference is running, returns `{"current": 0, "total": 0}`.
380
+
381
+
> **Note:** Progress granularity depends on the number of VAD segments. Short audio with few segments may only show 0/0 → 1/1. Longer audio (e.g. meetings) with many VAD segments will produce finer-grained progress updates.
0 commit comments