Voice Change

Convert voice characteristics in audio using .GENVoiceChange().

Basic Usage

AudioClip original = Resources.Load<AudioClip>("VoiceRecording");
AudioClip changed = await original
    .GENVoiceChange()
    .SetTargetVoice(ElevenLabsVoice.Adam)
    .ExecuteAsync();

Input Types

AudioClip Input

AudioClip original = Resources.Load<AudioClip>("Voice");
AudioClip changed = await original
    .GENVoiceChange()
    .SetTargetVoice(newVoice)
    .ExecuteAsync();

File Input

var audioFile = new File<AudioClip>(audioClip, "voice.wav");
AudioClip changed = await audioFile
    .GENVoiceChange()
    .SetTargetVoice(targetVoice)
    .ExecuteAsync();

Configuration

Target Voice

Voice Settings

Unity Integration Examples

Example 1: Character Voice System

Example 2: NPC Voice Customization

Example 3: Voice Effects System

Example 4: Voice Aging System

Example 5: Voice Anonymizer

Example 6: Real-time Voice Chat Modifier

Provider Support

ElevenLabs

Features:

  • ✅ Natural voice conversion

  • ✅ Multiple target voices

  • ✅ Voice characteristic control

  • ✅ Preserves speech timing

Note: Currently, ElevenLabs is the primary provider for voice change.

Use Cases

Use Case
Example

Character Voices

Convert player voice to NPC voice

Privacy

Anonymize voice in recordings

Localization

Match voice to character ethnicity

Effects

Robot, ghost, monster voices

Accessibility

Convert to clearer voice

Age Matching

Make voice sound older/younger

Best Practices

✅ Good Practices

❌ Bad Practices

Audio Requirements

Supported formats:

  • WAV, MP3, M4A, FLAC, OGG

Quality requirements:

  • Clear speech (minimal background noise)

  • Good recording quality

  • No heavy distortion

Limits:

  • Max file size: 25 MB

  • Duration: varies by provider

Error Handling

Performance Tips

Limitations

  1. Speech Only: Works best with clear speech, not music or effects

  2. Quality Dependent: Input quality affects output quality

  3. Timing Preserved: Cannot change speech speed significantly

  4. Language: Best results with same language as target voice

Next Steps

Last updated