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

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

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

# SpeechClip

[common]\
data class [SpeechClip](index.md)(val pcm16: [ShortArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short-array/index.html), val sampleRate: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val durationMs: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html))

A synthesized utterance: mono 16-bit samples at [sampleRate](sampleRate.md) hertz (the chatterbox family speaks at 24 kHz), [durationMs](durationMs.md) long.

## Constructors

| | |
|---|---|
| [SpeechClip](SpeechClip.md) | [common]<br>constructor(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), durationMs: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)) |

## Properties

| Name | Summary |
|---|---|
| [durationMs](durationMs.md) | [common]<br>val [durationMs](durationMs.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) |
| [pcm16](pcm16.md) | [common]<br>val [pcm16](pcm16.md): [ShortArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short-array/index.html) |
| [sampleRate](sampleRate.md) | [common]<br>val [sampleRate](sampleRate.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |