Sound Effects
Basic Usage
AudioClip explosion = await "Massive explosion sound"
.GENSoundEffect()
.ExecuteAsync();
audioSource.clip = explosion;
audioSource.Play();Input Types
String Input
AudioClip sfx = await "Dog barking"
.GENSoundEffect()
.ExecuteAsync();Prompt Input
var prompt = new Prompt("Sound of {action} on {surface}");
AudioClip sfx = await prompt
.GENSoundEffect()
.ExecuteAsync();Configuration
Duration
Prompt Influence
Unity Integration Examples
Example 1: Dynamic SFX System
Example 2: Procedural Weapon Sounds
Example 3: Footstep System
Example 4: Environmental Ambience
Example 5: UI Sound Effects
Example 6: Combat Sound System
Prompt Engineering Tips
✅ Good Prompts
❌ Bad Prompts
Provider Support
ElevenLabs
Best Practices
✅ Good Practices
❌ Bad Practices
Limitations
Performance Tips
Error Handling
Common Use Cases
Use Case
Example Prompt
Next Steps
Last updated