refactor(a2a-filler): serialize overlapping audio chunks instead of trimming

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Start by reading the attached speechflow-node-a2a-filler.ts and comparing it with speechflow-node-a2a-filler.diff.txt. Trace how overlapping chunks are handled and how events are emitted; the work is done when overlaps shift their start timestamp, retain all audio data, and emit a shift event without trimming frames.

Written by the indexing model from the issue text.

Description

bug

Overlapping audio chunks are no longer trimmed via a buffer slice. Instead, their start timestamp is shifted forward while keeping the full audio data intact. A new "shift" event has been introduced that fires whenever such a shift occurs. This makes overlaps visible in the logs and ensures no audio frames are silently discarded.

speechflow-node-a2a-filler.diff.txt
speechflow-node-a2a-filler.ts

Dominant language
TypeScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rse/speechflow

All issues in rse/speechflow

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.