local_coreml_smart_turn
Local CoreML smart turn analyzer for on-device ML inference.
This module provides a smart turn analyzer that uses CoreML models for local end-of-turn detection without requiring network connectivity.
- class pipecat.audio.turn.smart_turn.local_coreml_smart_turn.LocalCoreMLSmartTurnAnalyzer(*, smart_turn_model_path: str, **kwargs)[source]
Bases:
BaseSmartTurnLocal smart turn analyzer using CoreML models.
Provides end-of-turn detection using locally-stored CoreML models, enabling offline operation without network dependencies. Optimized for Apple Silicon and other CoreML-compatible hardware.
Deprecated since version 0.0.106: LocalCoreMLSmartTurnAnalyzer is deprecated and will be removed in a future version. Use LocalSmartTurnAnalyzerV3 instead.
- __init__(*, smart_turn_model_path: str, **kwargs)[source]
Initialize the local CoreML smart turn analyzer.
- Parameters:
smart_turn_model_path – Path to directory containing the CoreML model and feature extractor files.
**kwargs – Additional arguments passed to BaseSmartTurn.
- Raises:
Exception – If smart_turn_model_path is not provided or model loading fails.