Versions in this module Expand all Collapse all v0 v0.0.13 Nov 7, 2026 Changes in this version + const Rate + func Play(ctx context.Context, clip []byte, onLevel func(level float32)) error + func Release() + func RequestMicrophone(ctx context.Context) (bool, error) + func WAV(samples []int16) []byte + type Listener struct + OnLevel func(level float32) + OnSpeech func() + func (l *Listener) Finish() + func (l *Listener) Listen(ctx context.Context) ([]byte, error) + type Turn int + const Nothing + const NothingSaid + const SpeechStarted + const TurnEnded + type TurnDetector struct + func NewTurnDetector() *TurnDetector + func (d *TurnDetector) Feed(samples []int16) (turn Turn, level float32, clip []byte) + func (d *TurnDetector) Finish() []byte