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

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

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

# VoiceReference

sealed interface [VoiceReference](index.md)

The voice a text-to-speech request clones: a clip of the speaker, mono, a few seconds long (a voice-cloning family reads about the first ten seconds for the generator and the whole clip, silence trimmed, for the speaker embedding). Any sample rate; the library resamples.

#### Inheritors

| |
|---|
| [Pcm16](Pcm16/index.md) |
| [File](File/index.md) |

## Types

| Name | Summary |
|---|---|
| [File](File/index.md) | [common]<br>class [File](File/index.md)(val path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)) : [VoiceReference](index.md)<br>An audio file on disk, in any format the library decodes (WAV, FLAC, MP3, ...). |
| [Pcm16](Pcm16/index.md) | [common]<br>class [Pcm16](Pcm16/index.md)(val samples: [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)) : [VoiceReference](index.md)<br>16-bit mono samples at [sampleRate](Pcm16/sampleRate.md) hertz. Needs [TtsLoadOptions.scratchDir](../TtsLoadOptions/scratchDir.md). |