> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gladecore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 2: Text-to-Speech

Follow the steps below to set up optional TTS for the AI.

## **Set your TTS Provider**

Set the TTS`Provider` to **Piper** (local), **Kokoro** (local) or **ElevenLabs** (cloud).

<Frame>
  <img src="https://mintcdn.com/gladestudio/2LGHj5aP9G1PlE7r/images/unreal/UE_PiperTTSProvider_Selection.png?fit=max&auto=format&n=2LGHj5aP9G1PlE7r&q=85&s=c1ad68cc3395e74a2789d55ea5fb9acc" alt="UE Piper TTS Provider Selection" width="963" height="242" data-path="images/unreal/UE_PiperTTSProvider_Selection.png" />
</Frame>

Follow the instructions below based on the TTS option you selected.

## **Setup Instructions**

<Accordion title="Piper (Local)">
  If using **Piper**, you will need to import Piper models. Navigate to `Window → Project Settings` and you will find `Glade Core Settings` under the Game tab.

  <Frame>
    <img src="https://mintcdn.com/gladestudio/JtV4td8ENCmQk_5K/images/unreal/UE_ProjectSettings_GladeCoreSettings.png?fit=max&auto=format&n=JtV4td8ENCmQk_5K&q=85&s=9a0c5e809acda3ca6b88a2b967482611" alt="UE Project Settings Glade Core Settings" title="UE Project Settings Glade Core Settings" className="mx-auto" style={{ width:"61%" }} width="420" height="248" data-path="images/unreal/UE_ProjectSettings_GladeCoreSettings.png" />
  </Frame>

  Under **Piper Voice Downloads** you can download preset piper models or import custom models.

  <Frame>
    <img src="https://mintcdn.com/gladestudio/JtV4td8ENCmQk_5K/images/unreal/UE_PiperVoiceDownload.png?fit=max&auto=format&n=JtV4td8ENCmQk_5K&q=85&s=c25d1ba0cfa18cce489d31e3aa1a06bc" alt="UE Piper Voice Download" width="1238" height="906" data-path="images/unreal/UE_PiperVoiceDownload.png" />
  </Frame>

  Below that there is a section to show the status of your current download in progress or idle state. Lastly, there is a custom voice importer for any other voices you may way to import online whether it be custom trained voices from yourself or other open source projects.

  <Frame>
    <img src="https://mintcdn.com/gladestudio/JtV4td8ENCmQk_5K/images/unreal/UE_CustomPiperVoiceImporter.png?fit=max&auto=format&n=JtV4td8ENCmQk_5K&q=85&s=90e5ab9592ecaa1976d12c01397bd2f2" alt="UE Custom Piper Voice Importer" width="950" height="354" data-path="images/unreal/UE_CustomPiperVoiceImporter.png" />
  </Frame>

  So long as you have the 2 files for the model in the format of .onnx and config.json, you can import the custom model.
</Accordion>

<Accordion title="Kokoro (Local Premium)">
  The in-editor Kokoro Voice Library lists all official Kokoro v1.0 voices for english. Voices are fetched from Hugging Face on demand. Click Download to pull a single voice (\~500 KB), or Download All to grab the full set. Voices already on disk are marked On Disk. Kokoro voices are Apache-2.0 licensed.

  <Frame>
    <img src="https://mintcdn.com/gladestudio/bOmKDpdpyPCMSNLx/images/unreal/UE_KokoroVoiceLibrary_ProjectSettings.png?fit=max&auto=format&n=bOmKDpdpyPCMSNLx&q=85&s=5ec837c91731ca40b87df25778f0309d" alt="UE Kokoro Voice Library Project Settings" width="1025" height="867" data-path="images/unreal/UE_KokoroVoiceLibrary_ProjectSettings.png" />
  </Frame>

  Downloaded Kokoro voices are stored as .bin files under `Plugins/GladeCore/Source/ThirdParty/Models/kokoro/voices/`. Each voice is around 500 KB and is loaded on demand by the Kokoro TTS provider.
</Accordion>

<Accordion title="ElevenLabs (Cloud)">
  If using **ElevenLabs**, select **ElevenLabs** as the TTS `Provider` and enter the specific `Eleven Labs Voice ID` string here. Note that using this would be a cloud approach requiring an API instead of a fully local approach.

  <Frame>
    <img src="https://mintcdn.com/gladestudio/Vn5ruDBoQYriEYyn/images/unreal/UE_ElevenLabs_TTSManager.png?fit=max&auto=format&n=Vn5ruDBoQYriEYyn&q=85&s=0ba989cbc907fc3e7c37290030fe3ac8" alt="UE Eleven Labs TTS Manager" width="629" height="297" data-path="images/unreal/UE_ElevenLabs_TTSManager.png" />
  </Frame>
</Accordion>
