Class GENSoundEffectTask
Task for generating sound effects based on a text prompt.
public class GENSoundEffectTask : GENAudioGenerationTask<GENSoundEffectTask, IGENSoundEffectOptions, Weighted<string>>, IGENTask
- Inheritance
-
objectGENSoundEffectTask
- Implements
- Inherited Members
-
GENTask<GENSoundEffectTask, IGENSoundEffectOptions, Weighted<string>, GeneratedAudio>.OutputFilePathGENTask<GENSoundEffectTask, IGENSoundEffectOptions, Weighted<string>, GeneratedAudio>.OutputFileNote
Constructors
GENSoundEffectTask(Weighted<string>)
public GENSoundEffectTask(Weighted<string> prompt)
Parameters
promptWeighted<string>
Properties
DurationSeconds
public double? DurationSeconds { get; set; }
Property Value
- double?
Method
public override string Method { get; }
Property Value
- string
Methods
ExecuteAsyncINTERNAL()
protected override UniTask<GeneratedAudio> ExecuteAsyncINTERNAL()
Returns
- UniTask<GeneratedAudio>
ResolveOutputPath(Api?, string)
protected override GENSoundEffectTask ResolveOutputPath(Api? api = null, string keyword = null)
Parameters
apiApi?keywordstring
Returns
SetDuration(double)
Sets the duration of the generated sound effect in seconds.
public GENSoundEffectTask SetDuration(double durationSeconds)
Parameters
durationSecondsdouble