# Text To Speech

The plugin provides tools for synthesizing speech from text.

VoiceID male and female are also available for all engines as default synonyms for voices.

### In-editor usage

To use the TTS option from the editor and generate a sound asset, you need to do the following:

1. go to the folder, in the Content Browser right-click on an empty space
2. on the context menu select Create Speech from Text tab.

<figure><img src="https://lh5.googleusercontent.com/4NTR9T-sphewtgoJg1jXQmAM6twvN4n50RMKAtwxpFubQIbwuZz9QruexLjpQ0DxV-CLgmTPIT9GN5wHghLWHi8gycTzg92A-N2Ynum2InHEuFyC8VRh51vThdQ6wldaA_m1fZs_zdtSfc77y956N65L3YzhcZuuiMHryUkCCQIuwPZNlCzjw2AqTQ" alt=""><figcaption></figcaption></figure>

The ​​generation window pops up on the screen. Here you need to fill in the Engine and Voice fields with the values from the table above. In the Text field enter the phrase to be voiced.

<figure><img src="https://lh6.googleusercontent.com/4MsehMl2L_8Oz1yatp8ZnbkWoVeSvB4mZ8O3J9kXsiF0hryMfbtymqdpWhyLxzBJWpWK28d_RfAWNJqLUTz8v0OLi1u9aqYSWCcpnnhmthqfeQ9eBpdEKueGFfVmKsAj5bXEN5-EY9UuQmb4FLRtumTiudi_PiyqZGznmoswqlZzB1OQehvXTFL-nQ" alt=""><figcaption></figcaption></figure>

Press Generate button

<figure><img src="https://lh6.googleusercontent.com/tPB-F0Zvbn6X20dVK4qJaN-1siVQEjGHPrlufkkBLHS_h0qoxSt008BwC3Yvo0kpkAV3rzZR4JkbzWqeD1TDBv9wxOogc7IoXAXn4mwyvFKhQep3qWtnQahw9DkF84kGPCwDkY4NVCUvfugd-hZCm4XQF-7Tn6-yA1lGQKBvP3fPv6HfeAe_yomjFg" alt=""><figcaption></figcaption></figure>

As a result you get the sound asset generated from the text.

## Runtime generation

You can use this option while the application is running. To do this, use the TTSTextToSpeech method through the MetahumanSDKApiManager subsystem.

<figure><img src="https://lh4.googleusercontent.com/6NQm5Bej4MaAs5WOW6uCJHzoB1NBVZEX2TqNjPbfQSGh9_6k2QHyKZFkHhibHjiQjqZYCkKncXhLEFpPCsn-6BSnDVO2DC3qJ7OdDyxrueta4M6MLj8dvdLyHaAdIGMw84FALlW1PC4af54QCi-WQCWGPhgrzhhxgKstvvqBl0rXKp8-c-JhvRVvZw" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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.metahumansdk.io/metahuman-sdk/reference/metahumansdk-unreal-engine-plugin/text-to-speech.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.
