Table of Contents

Class GENSoundEffectTask

Namespace
Glitch9.AIDevKit

Task for generating sound effects based on a text prompt.

public class GENSoundEffectTask : GENAudioGenerationTask<GENSoundEffectTask, IGENSoundEffectOptions, Weighted<string>>, IGENTask
Inheritance
object
GENSoundEffectTask
Implements
Inherited Members

Constructors

GENSoundEffectTask(Weighted<string>)

public GENSoundEffectTask(Weighted<string> prompt)

Parameters

prompt Weighted<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

api Api?
keyword string

Returns

GENSoundEffectTask

SetDuration(double)

Sets the duration of the generated sound effect in seconds.

public GENSoundEffectTask SetDuration(double durationSeconds)

Parameters

durationSeconds double

Returns

GENSoundEffectTask