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

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

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

# maxSpeechTokens

[common]\
val [maxSpeechTokens](maxSpeechTokens.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0

The speech-token budget ceiling, 0 or more; 0 keeps the plan the text's length sets. A smaller value may cut a long utterance, which the model refuses rather than truncates.