Class GENSoundEffectTask
Task for generating sound effects based on a text prompt.
Inheritance
object
GENSoundEffectTask
Assembly: .dll
Syntax
public class GENSoundEffectTask : GENAudioGenerationTask<GENSoundEffectTask, IGENSoundEffectOptions, Weighted<string>>, IGENTask
Constructors
GENSoundEffectTask(Weighted<string>)
Declaration
public GENSoundEffectTask(Weighted<string> prompt)
Parameters
Type |
Name |
Description |
Weighted<string> |
prompt |
|
Properties
DurationSeconds
Declaration
public double? DurationSeconds { get; set; }
Property Value
Method
Declaration
public override string Method { get; }
Property Value
Overrides
Methods
ExecuteAsyncINTERNAL()
Declaration
protected override UniTask<GeneratedAudio> ExecuteAsyncINTERNAL()
Returns
Overrides
ResolveOutputPath(Api?, string)
Declaration
protected override GENSoundEffectTask ResolveOutputPath(Api? api = null, string keyword = null)
Parameters
Type |
Name |
Description |
Api? |
api |
|
string |
keyword |
|
Returns
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
Implements