AI Dev Kit
API ReferencesDiscordGlitch9
  • Introduction
    • AI DevKit 3.7.0
    • Troubleshooting
    • FAQ
    • Update Logs
  • Provider Setup
    • OpenAI
    • Google Gemini
    • ElevenLabs
    • Ollama
    • OpenRouter
  • Editor Tools
    • Introduction
    • Editor Chat
    • Model Library
    • Voice Library
  • GEN Tasks
    • Introduction - Prefixes
    • Text/Content Generation
      • Structured Outputs (JSON Mode)
    • Chat Session
    • Image Generation
    • Video Generation
    • Sound FX Generation
    • Text to Speech (TTS)
    • Speech to Text (STT)
    • Voice Change
    • Audio Isolation
  • Advanced APIs (Pro)
    • Assistants API
      • How it works
      • Creating custom functions
      • Creating assistants API
    • Realtime API
  • Legacy API
    • OpenAI
      • 💬Chat completions
      • 🖼️Image operations
      • 🗣️Text to speech
      • 🎙️Speech to text
        • Recording real-time in Unity
      • 💾Files
      • 🔎Embeddings
      • 🛡️Moderations
      • ⚙️Fine-tuning
    • Google Gemini
      • 📝System instructions
      • 💬Text generation
      • ⚙️Fine-tuning
      • ▶️Fucntion calling
      • 🔎Embeddings
      • 🛡️Safety
      • 💻Code execution
  • Legacy Documents
    • AI DevKit 1.0 - 2.0
      • AI DevKit 2.0
      • AI DevKit 1.0
      • Preperation
      • Event Handlers
      • Scriptable Toolkits
        • Chat Streamer
        • Image Generator
        • Voice Transcriber
        • Voice Generator
      • Editor Tools
      • Troubleshooting (Legacy)
        • ❗Build Error: The name 'UnityMenu' does not exist in the current context
        • ❗The type or namespace name 'AndroidJavaObject' could not be found
        • ❗The type or namaspace name 'Plastic' does not exist
        • ❗Build Error: The name 'Asset Database' does not exist in the current context
        • ❗'ModelData.Create(Provider, string, UnixTime?, string)': not all code paths return a value
      • Code Generators
        • C# Script Generator
        • Unity Component Generator
      • Generation Menu
      • Editor Chat
      • Editor Vision (TTI, ITI)
      • Editor Speech (TTS)
      • Management Tools
        • Prompt History Viewer
        • AI Model Manager
        • TTS Voice Manager
        • OpenAI File Manager
        • OpenAI Assistant Manager
        • ElevenLabs Voice Library
Powered by GitBook
On this page
  1. GEN Tasks

Voice Change

Transform recorded voices using AI-powered voice conversion.

This can be used to change the speaker’s identity, create fictional character voices, or anonymize speech. Powered by ElevenLabs.


✅ Basic Usage

AudioClip originalVoice = Resources.Load<AudioClip>("UserVoice");

AudioClip newVoice = await originalVoice
    .GENVoiceChange()
    .SetVoice(ElevenLabsVoice.Rachel)
    .SetSeed(42)
    .ExecuteAsync();

🧏 The resulting voice will have a different tone/style while keeping the same speech content.


⚙️ Configuration Options

Method
Description

SetVoice(GenAIVoice)

Choose the target voice model

SetSeed(uint)

Use a fixed seed for deterministic output

SetRemoveBackgroundNoise(bool)

Optional: try to reduce noise in the input

SetOutputPath(path)

Save the converted audio to file

SetOutputFormat(format)

Choose file format (MP3, WAV, PCM)


📦 Example Result

Input: A 3-second clip saying “Testing voice changer.” Output: A smoother, more stylized version spoken in a new synthetic voice.


🧠 Tips

  • Works best on clear, single-speaker audio.

  • Set SetRemoveBackgroundNoise(true) if the input is noisy, though this may slightly alter clarity.

  • For even more control over the output format, use .SetOutputFormat(...).

PreviousSpeech to Text (STT)NextAudio Isolation

Last updated 27 days ago