> For the complete documentation index, see [llms.txt](https://docs.voipnumber.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.voipnumber.net/features/async-streaming-stt-and-tts.md).

# Async streaming STT and TTS

## What is async streaming STT and TTS?

💡 Most AI Agents available today on popular platforms suffer from the common pitfall. Their TTS (text to speech) is dependent on the speech length (and text length by the same token) - the longer is the sentence to be spoken by the agent, the longer is also a time it takes to produce this speech, and latency observed by a caller increases. This is also the case for STT (speech to text)&#x20;

VoIP Number uses async streaming STT and TTS to make latency to audio independent from input speech (and input text). By switching from regular TTS to async version, we reduce latency to first audio byte on TTS from around 500 ms to 170 ms. Similar advantage is achieved on STT

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


---

# 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:

```
GET https://docs.voipnumber.net/features/async-streaming-stt-and-tts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
