Audio Generation
Available Methods
1. Text to Speech (.GENSpeech())
.GENSpeech())AudioClip speech = await "Welcome back, Commander!"
.GENSpeech()
.SetVoice(ElevenLabsVoice.Rachel)
.ExecuteAsync();2. Speech to Text (.GENTranscript())
.GENTranscript())string transcript = await audioClip
.GENTranscript()
.ExecuteAsync();3. Speech Translation (.GENTranslation())
.GENTranslation())4. Sound Effects (.GENSoundEffect())
.GENSoundEffect())5. Voice Change (.GENVoiceChange())
.GENVoiceChange())6. Audio Isolation (.GENAudioIsolation())
.GENAudioIsolation())Quick Comparison
Method
Input
Output
Providers
Basic Examples
Example 1: Simple TTS
Example 2: Transcribe Microphone
Example 3: Generate Game SFX
Configuration Options
Text to Speech
Speech to Text
Provider Support
OpenAI
ElevenLabs
Google
Common Workflows
Workflow 1: NPC Dialogue System
Workflow 2: Voice Command System
Workflow 3: Dynamic SFX Generator
Best Practices
✅ Good Practices
❌ Bad Practices
Next Steps
Last updated