Feline.Processors.TurnManager (feline v0.1.0-rc.1)

Copy Markdown View Source

Pluggable turn management processor. Delegates turn detection to a configurable strategy module that implements the Feline.Processors.TurnManager.Strategy behaviour.

All frames pass through unchanged. The strategy may produce additional event frames (e.g. UserStartedSpeakingFrame, InterruptionFrame) that are pushed downstream alongside the original frame.

Options

  • :strategy - module implementing the Strategy behaviour (required)
  • :strategy_opts - keyword list passed to strategy.init/1 (default: [])

Example

{Feline.Processors.TurnManager,
 strategy: Feline.Processors.TurnManager.VADStrategy,
 strategy_opts: [start_secs: 0.2, stop_secs: 0.8]}

Summary

Functions

child_spec(opts)