Skip to content

Add a live API Activity view for speech requests - #4561

Draft
gabelul wants to merge 4 commits into
debpalash:mainfrom
gabelul:feature/api-activity
Draft

gabelul wants to merge 4 commits into
debpalash:mainfrom
gabelul:feature/api-activity

Conversation

@gabelul

@gabelul gabelul commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

Add More → API Activity so requests from connected speech clients can be followed inside VoiceStudio. Rows show the endpoint, known engine/model, current stage, elapsed time, HTTP result, response size, and a request ID that correlates with backend logs.

Requests remain running through the final streamed response. Handled SSE/NDJSON errors, client disconnects, and unexpected server failures receive distinct outcomes.

Changes

  • Add live updates, status filters, expandable details, pause/refresh controls, and clearing of finished requests while retaining active ones.
  • Track OpenAI-compatible speech/transcription/translation, ElevenLabs TTS including timestamped variants, and native generation HTTP requests.
  • Keep bounded metadata in memory: up to 200 finished and 128 active requests. No prompts, audio, credentials, query strings, voice IDs, or client addresses are retained.
  • Restrict diagnostics to local or administrator access; sharing PINs remain consumption credentials. Keep these memory-only endpoints responsive without the shared HTTP worker pool.
  • Include translations in all 22 locales, documentation, route inventory, and regression coverage.

Type

  • New feature

Testing

  • 55 API Activity backend tests passed, including real streaming disconnects, error-boundary correlation, privacy, concurrency, and saturated-worker responsiveness.
  • 21 existing render/activity/GPU-resilience tests and 15 GPU queue-accounting tests passed.
  • Fresh application route inventory matches all 427 expected routes.
  • 35 targeted frontend/navigation/sidebar tests passed.
  • TypeScript, all locale checks, desktop production build, and web production build passed.
  • Production-browser fixture walkthrough passed: filters, keyboard details, pause/manual refresh, narrow-screen overflow, dark/light rendering, and no page or console errors.
  • 26 changelog/style checks passed.
  • Tests ran offline with isolated empty Hugging Face caches. The full repository suite and cross-platform smoke matrix have not been run locally.

Preview

Production web-build preview with illustrative requests from the browser fixture:

API Activity desktop preview

Narrow-screen light layout

Checklist

  • Tested locally
  • Every non-exempt human commit author has signed the CLA
  • Updated documentation and translations
  • Added the PR-numbered changelog fragment
  • No local machine paths, logs, or personal environment details included
  • No version or dependency changes
  • Cross-platform smoke matrix verified by upstream CI

Draft pending the contributor agreement and upstream CI/review. This is separate from the TTS engine-inventory loading fix in #4519.

@github-actions

Copy link
Copy Markdown
Contributor

All contributors on this pull request have signed the VoiceStudio CLA. Thank you!

Agreement: VoiceStudio CLA 1.0

@github-actions github-actions Bot added the cla-signed Human contributors cleared by signed CLA v1.0 and the current PR CLA status. label Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Human contributors cleared by signed CLA v1.0 and the current PR CLA status.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant