userresponse

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package userresponse provides a processor that aggregates TranscriptionFrame into a single TextFrame when the user turn ends (e.g. UserStoppedSpeakingFrame).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	*processors.BaseProcessor
	// contains filtered or unexported fields
}

Processor buffers TranscriptionFrame text and emits one TextFrame when the user turn ends.

func New

func New(name string) *Processor

New returns a user response aggregator.

func (*Processor) ProcessFrame

func (p *Processor) ProcessFrame(ctx context.Context, f frames.Frame, dir processors.Direction) error

ProcessFrame buffers transcription; on UserStoppedSpeakingFrame or End/Cancel flushes one TextFrame.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL