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 (*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.
Click to show internal directories.
Click to hide internal directories.