Skip to main content
Community-maintained integration. This service is built and maintained by Charcot-AI. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.

Overview

MarimbaTurnAnalyzer is a turn analyzer that decides when the user has finished speaking. It asks Marimba, a multilingual model that answers typed questions about audio, whether the speaker has finished their turn, and reads the answer as a probability. It needs no transcript and no API key, and it runs locally on CPU or GPU. The model is described in the paper Marimba: A System One Model for Speech.

Source Repository

Code, example and README of the Pipecat integration

Model Card

Marimba weights (Apache-2.0), evaluation and limits

Installation

This is a community-maintained package distributed separately from pipecat-ai:

Prerequisites

No account or API key. Unless you pass model, the default Marimba model downloads from Hugging Face on the first prediction.
  • Python 3.11 or later
  • A VAD analyzer in the pipeline, for example SileroVADAnalyzer

Configuration

MarimbaTurnAnalyzer(model=None, threshold=0.5, num_channels=1, sample_rate=None, params=None)
float
default:"0.5"
Turn-end probability at or above which the turn is complete. Raises ValueError when it is outside 0 to 1.
marimba.Marimba | None
default:"None"
Model to use. None loads the default Marimba model on the first prediction.
int | None
default:"None"
Input sample rate. None takes the transport’s.
int
default:"1"
Channel count of the incoming PCM16 audio; multichannel input is averaged to mono before analysis.
SmartTurnParams | None
default:"None"
Timing parameters (stop_secs, pre_speech_ms, max_duration_secs), as for Smart Turn.

Usage

Pass the analyzer to the user aggregator’s stop strategy:

Compatibility

Tested with Pipecat v1.16.0 and marimba-audio 0.1.2 on Python 3.13. See the changelog for the latest version.

Notes

  • Audio window: The analyzer scores the last eight seconds of the user’s audio, resampled to 16 kHz.
  • Evaluation: On Smart Turn’s evaluation, turn-end AUROC is 0.930, against 0.982 for Smart Turn v3.2; that evaluation is in-distribution for Smart Turn. Results and limits are on the model card and in the paper.