Skip to content

feat: fade, silence padding, and user turn texts - #7

Open
topninja wants to merge 1 commit into
mainfrom
feat/fade-pad-user-texts
Open

feat: fade, silence padding, and user turn texts#7
topninja wants to merge 1 commit into
mainfrom
feat/fade-pad-user-texts

Conversation

@topninja

Copy link
Copy Markdown
Collaborator

Summary

  • audio.Fade applies a linear fade-in and fade-out on a complete PCM buffer.
  • audio.PadSilence and processor.NewAudioPad extend a chunk with zeros to a minimum sample count.
  • frames.LLMContext.UserTexts lists every spoken user turn, skipping tool-result placeholders.

Independent of the other open helper PRs: this branch is from current main.

Test plan

  • go test ./audio ./frames ./processor
  • Confirm a 2-sample fade-in of [100, 100] becomes [0, 50]
  • Confirm UserTexts ignores a tool-result message

Give sessions a way to ramp a clip, pad short PCM to a minimum length,
and list every spoken user turn.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants