Skip to content

docs(openspec): audio processing strategies - #22

Merged
bengreenier merged 5 commits into
mainfrom
cursor/add-audio-processing-strategies-86f9
Jul 23, 2026
Merged

docs(openspec): audio processing strategies#22
bengreenier merged 5 commits into
mainfrom
cursor/add-audio-processing-strategies-86f9

Conversation

@bengreenier

Copy link
Copy Markdown
Owner

Summary

  • Adds OpenSpec change add-audio-processing-strategies for three consumer-selectable audio paths: AudioWorklet realtime, Dedicated Worker + Comlink, and Worklet + Comlink on the port
  • Specs shared lifecycle/types with audio-first delivery; video/WebCodecs deferred but explicitly left architecturally open (worker/Comlink on-ramp)
  • Planning only — no runtime code changes; phased tasks for later /opsx:apply

Test plan

  • Review proposal.md / design.md selection guide and non-goals
  • Skim specs/audio-worklet, audio-worker, audio-worklet-rpc for completeness
  • Confirm openspec validate add-audio-processing-strategies passes locally
  • Agree ship order: worklet → worker → worklet-rpc

Made with Cursor

Plan worklet, Comlink worker, and worklet-rpc paths so
consumers can pick by workload; keep video/WebCodecs open.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

bengreenier and others added 4 commits July 23, 2026 22:16
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(audio): add realtime worklet level meter

Provide a caller-owned MediaStream worklet path with ESM packaging, lifecycle safety, and a live example.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(audio): cover live worklet lifecycle

Exercise the production level meter with a synthetic browser audio graph and guard teardown behavior when an active processor unmounts.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(audio): add Comlink worker jobs

Provide transferable PCM level analysis through a lifecycle-safe worker hook.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(audio): cover Comlink worker cleanup

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(audio): add Comlink worklet RPC strategy

Provide synchronous worklet DSP with a typed Comlink control plane so live audio sessions can be configured and observed without blocking process().

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(audio): address worklet RPC review findings

Keep Comlink isolated to the RPC subpath and ensure sessions produce timestamped metrics from resumed audio contexts.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
@bengreenier
bengreenier merged commit a17716a into main Jul 23, 2026
1 of 2 checks passed
@bengreenier
bengreenier deleted the cursor/add-audio-processing-strategies-86f9 branch July 23, 2026 20:39
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