Verbara.Sdk.VoiceAi.TurnDetection 2.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Verbara.Sdk.VoiceAi.TurnDetection --version 2.1.2
                    
NuGet\Install-Package Verbara.Sdk.VoiceAi.TurnDetection -Version 2.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Verbara.Sdk.VoiceAi.TurnDetection" Version="2.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verbara.Sdk.VoiceAi.TurnDetection" Version="2.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Verbara.Sdk.VoiceAi.TurnDetection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Verbara.Sdk.VoiceAi.TurnDetection --version 2.1.2
                    
#r "nuget: Verbara.Sdk.VoiceAi.TurnDetection, 2.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Verbara.Sdk.VoiceAi.TurnDetection@2.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Verbara.Sdk.VoiceAi.TurnDetection&version=2.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Verbara.Sdk.VoiceAi.TurnDetection&version=2.1.2
                    
Install as a Cake Tool

Verbara.Sdk.VoiceAi.TurnDetection

ML-based turn detection for the Verbara.Sdk VoiceAi pipeline using the Pipecat smart-turn-v3 ONNX model. Detects semantic end-of-turn boundaries — not just silence — for more natural conversational turn-taking.

Installation

dotnet add package Verbara.Sdk.VoiceAi.TurnDetection

Note: This package bundles the smart-turn-v3.2-cpu.onnx model as an embedded resource. CPU inference works on all platforms. GPU acceleration (CUDA / DirectML) requires the matching ONNX Runtime provider package.

Quick Start

Replace the default SilenceTurnDetector with the smart ML-based detector by calling AddSmartTurnDetection in your DI setup:

services.AddVoiceAiPipeline<MyHandler>();
services.AddSmartTurnDetection(opts =>
{
    opts.TurnConfidenceThreshold = 0.5f;   // probability threshold (0.0–1.0)
    opts.SilenceTriggerDuration  = TimeSpan.FromMilliseconds(200);
    opts.BargInVoiceThreshold    = TimeSpan.FromMilliseconds(200);
    opts.ExecutionProvider       = ExecutionProvider.Cpu;
    opts.IntraOpThreads          = 1;
});

AddSmartTurnDetection removes any previously registered ITurnDetector and registers SmartTurnDetector in its place.

Configuration

Property Type Default Description
TurnConfidenceThreshold float 0.5 Minimum model probability to classify a pause as end-of-turn
SilenceThresholdDb double -40.0 RMS energy threshold (dBFS) for silence detection
SilenceTriggerDuration TimeSpan 200ms Silence duration after speech before running the model
BargInVoiceThreshold TimeSpan 200ms Voice duration during TTS playback to trigger barge-in
ExecutionProvider ExecutionProvider Cpu ONNX Runtime execution provider
IntraOpThreads int 1 Number of intra-op threads for ONNX Runtime

License

MIT — see LICENSE in the repository root.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 93 5/23/2026
2.2.0 102 5/20/2026
2.1.2 106 5/8/2026
2.1.1 98 5/7/2026
2.1.0 89 5/7/2026