Skip to main content

General Setup

  1. Create TTSConfig Prefab and Assign it to you Character’s TTSManager component (there is one provided inside GladeCore Scripts -> TTS -> Config)
Unity TTS Config Prefab Create
  1. Open NPCPersonalityData Prefab used for the your character
Unity TTSNPC Personality Data Prefab Settings TTS Provider
  1. Select TTS Provider (None means disable TTS). We recommend ElevenLabs as local options for TTS are still very slow and lower quality.
  • ElevenLabs
Unity TTS Eleven Labs Voice Config
  • Spark TTS (Slow Generation Speed, use it for research)
Unity TTS Sparktts Voice Config
  1. Check Enable TTS in NPCChatComponent of your character
Unity TTS Enable TTS Check

TTS Config

Follow the configuration steps below, first section is ElevenLabs config and section section is for Spark TTS.
  1. Cloud TTS Provider Configuration (ElevenLabs)
    • Open TTS Config
Unity TTS Config Eleven Labs
  • Add your ElevenLabs API Key and Press Save API Key
Unity TTS Config Eleven Labs Save API Key
  • Click Test API Connection to test
Unity TTS Config Eleven Labs Test API Connection
  1. Spark TTS Setup
Using Unity Package Manager (Recommended):
  1. Open your Unity project
  2. Open the Package Manager (Window > Package Manager)
  3. Click the ”+” button in the top-left corner
  4. Select “Add package from git URL…”
  5. Enter the repository URL: https://github.com/arghyasur1991/Spark-TTS-Unity.git
  6. Click “Add”
Download pre-exported ONNX models here
https://drive.google.com/file/d/1YXj81ApcEasY17a8Zj9RqTpvn4s1UKk7/view
  1. Download/Unzip files from link
  2. Move the SparkTTS folder directly into the Assets/models folder. If there is none, make one.
  3. Use the Model Deployment Tool found at the top of Unity Editor 
Unity Spark TTS Model Deployment Unity Spark TTS Model Deployment Config Click Deploy SparkTTS Models once you see all the selected models from the folder in Assets/models.