> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/modules/miko/generaciya-rechi-rhvoice.md).

# Генерация речи RHVoice

Модуль удобно использовать как бесплатный генератор речи из текста. Модуль предоставляет REST API и web интерфейс для генерации медиа файлов.

### Системные требования

* Должен быть установлен модуль Docker - он бесплатный

### Настройка модуля

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FfLBrOoUFen1A3YQdK219%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202025-12-25%20%D0%B2%2013.26.41.png?alt=media&amp;token=8c887cb0-5d91-4f46-996f-251d5f172664" alt=""><figcaption></figcaption></figure>

* **Порт для публикации сервиса** - позволяет настроит порт, который займет HTTP сервис, будет доступен только локально
* **Диктор** / **Темп** / **Текст** - указав эти параметры и нажав "**Создать и скачать**" - будет загружен сгенерированный из текста **wav** файл

### REST и сценарии использования

Пример запроса генерации речи:

```
curl -X GET \
"http://127.0.0.1:8081/say?text=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82&voice=vitaliy-ng&format=wav&rate=60"\
--output output.wav
```

* **`8081`** - порт, задается в настройках модуля.
* **`text`** - текст для генерации речи
* **`voice`** - диктор

  ```
           alan|bdl|clb|evgeniy-eng|lyubov|slt| # American English
           aleksandr|aleksandr-hq|anna|arina|artemiy|elena|evgeniy-rus|irina|mikhail| # Russian
           pavel|tatiana|timofey|umka|victoria|vitaliy|vitaliy-ng|vsevolod|yuriy| # Russian
           alicja|cezary|magda|michal|natan| # Polish
           azamat|nazgul| # Kyrgyz
           hana| # Albanian
           kiko|suze| # Macedonian
           letícia-f123| # Brazilian Portuguese
           natia| # Georgian
           ondro| # Slovak
           sevinch| # Uzbek
           spomenka| # Esperanto
           talgat| # Tatar
           zdenek # Czech
  ```
* **`format`** - расширение итогового медиа файла, допустимые варианты: `wav` / `mp3`
* **`rate`** - темп речи, комфортное значение 60

Мы используем этот API в случаях:

* Реализация голосового меню Smart IVR
* Модуль "Автоинформатор" - для автоматических обзвонов и обработки входящих вызовов

### Документация

* <https://github.com/RHVoice/RHVoice/tree/master>
* <https://rhvoice.ru/>
* <https://github.com/Aculeasis/rhvoice-rest>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/modules/miko/generaciya-rechi-rhvoice.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
