> For the complete documentation index, see [llms.txt](https://docs.bottalk.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bottalk.io/docs/text-to-speech/automation-rules/audio-chunks-strategy.md).

# Audio Chunks Strategy

### What is the Audio Chunks Strategy?

Rather than sending entire articles to TTS providers, BotTalk breaks down each article into smaller segments called “Audio Chunks.” These chunks are processed individually and then stitched together on the backend to produce the final audio.

### Why It Matters

#### Lower Costs

TTS services typically charge per character or per request. By chunking content and optimizing how it’s sent, BotTalk minimizes redundancy and keeps audio generation costs low—especially for long-form content like news articles.

#### Intellectual Property Protection

Chunking ensures that your full article is never exposed to the TTS provider in one go, reducing the risk of the content being used for unintended purposes such as training large language models (LLMs).

### How It Works (Model-Specific Strategies)

\
✅ For Traditional TTS Models (e.g., Google Wavenet, Amazon Polly, Microsoft Azure):

BotTalk uses sentence-based chunking.

Each sentence is audified separately.

Sentences are then glued together in sequence.

This works well because these models are not context-sensitive and handle standalone sentences naturally.

#### ⚠️ For Modern TTS Models (e.g., ElevenLabs, Gemini):

These models are context-sensitive and rely on broader linguistic context.

Sentence-by-sentence audio generation leads to issues like:

Wrong language detection (e.g., interpreting German as English).

Inconsistent tone or voice between chunks.

BotTalk switches to paragraph-based or adaptive chunking to maintain natural prosody and voice consistency.

### 🎛 Customizing Chunk Separation

BotTalk gives you full control via:

Automation Rules → Create Custom Rule → Set Chunk Separation Strategy

<figure><img src="/files/gYivAHBsRQOEB4bv2ysK" alt=""><figcaption></figcaption></figure>

Here, you can choose:

Sentence-Based

Paragraph-Based

Or leave it empty (to use the default strategy per TTS model)

If no rule is defined, BotTalk’s intelligent default behavior is applied based on the selected TTS provider.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bottalk.io/docs/text-to-speech/automation-rules/audio-chunks-strategy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
