---
title: "VoiceActivityDetectionPipeline"
sidebar_label: "VoiceActivityDetectionPipeline"
description: "Kotlin binding reference: VoiceActivityDetectionPipeline."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[VoiceActivityDetectionPipeline](index.md)

# VoiceActivityDetectionPipeline

[common]\
class [VoiceActivityDetectionPipeline](index.md) : [Pipeline](../Pipeline/index.md)

Speaker diarization over a [DiarizationModel](../DiarizationModel/index.md): a clip answers who spoke when, in time order (`voice-activity-detection`, the hub's name for the kind).

## Properties

| Name | Summary |
|---|---|
| [model](model.md) | [common]<br>open override val [model](model.md): [DiarizationModel](../DiarizationModel/index.md)<br>The loaded model the pipeline runs. |
| [task](../Pipeline/task.md) | [common]<br>val [task](../Pipeline/task.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The task the pipeline serves, in transformers' spelling. |

## Functions

| Name | Summary |
|---|---|
| [close](../Pipeline/close.md) | [common]<br>open fun [close](../Pipeline/close.md)(): &lt;Error class: unknown class&gt; |
| [invoke](invoke.md) | [common]<br>operator fun [invoke](invoke.md)(pcm16: [ShortArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short-array/index.html), sampleRate: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), options: [DiarizeOptions](../DiarizeOptions/index.md) = DiarizeOptions()): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[SpeakerSegment](../SpeakerSegment/index.md)&gt; |