GENSoundEffect allows you to generate short, high-quality sound effects from text prompts using AI.
It's especially useful for game developers, UI feedback sounds, ambient design, and more โ powered by ElevenLabs SFX models.
Basic Usage
// prompt-based
AudioClip sfx = await "Footsteps on snow"
.GENSoundEffect()
.SetDuration(2.5)
.ExecuteAsync();
// target-based
await myAudioSource
.GENSoundEffect("Footsteps on snow")
.SetDuration(2.5)
.ExecuteAsync();
myAudioSource.Play(); // play immediately after the sfx is generation