Class GENSoundEffectTask
Task for generating sound effects based on a text prompt.
Inheritance
object
GENSoundEffectTask
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class GENSoundEffectTask : GENAudioOutputTask<GENSoundEffectTask, string>, IGENTask
Constructors
GENSoundEffectTask(string, Object)
Declaration
public GENSoundEffectTask(string prompt, UnityEngine.Object target = null)
Parameters
Type | Name | Description |
---|---|---|
string | prompt | |
Object | target |
Methods
ExecuteAsync()
Executes the task and returns the generated result.
Declaration
public override UniTask<GeneratedAudio> ExecuteAsync()
Returns
Type | Description |
---|---|
UniTask<GeneratedAudio> |
Overrides
SetDuration(double)
Sets the duration of the generated sound effect in seconds.
Declaration
public GENSoundEffectTask SetDuration(double durationSeconds)
Parameters
Type | Name | Description |
---|---|---|
double | durationSeconds |
Returns
Type | Description |
---|---|
GENSoundEffectTask |
SetPromptInfluence(double)
Sets the influence of the prompt on the generated sound effect.
Declaration
public GENSoundEffectTask SetPromptInfluence(double promptInfluence)
Parameters
Type | Name | Description |
---|---|---|
double | promptInfluence | Value between 0 and 1. |
Returns
Type | Description |
---|---|
GENSoundEffectTask |