Table of Contents

Class SoundEffectGenerationRequest

Namespace
Glitch9.AIDevKit

Task for generating sound effects based on a text prompt.

public class SoundEffectGenerationRequest : AudioGenerationRequest<SoundEffectGenerationRequest, Prompt>, IGenerativeRequest, ISequentialRequest
Inheritance
object
SoundEffectGenerationRequest
Implements
Inherited Members
Extension Methods

Constructors

SoundEffectGenerationRequest(Prompt)

public SoundEffectGenerationRequest(Prompt prompt)

Parameters

prompt Prompt

Properties

Api

The cloud service provider associated with this task. Automatically resolved from the selected model if not explicitly set.

public override Api Api { get; }

Property Value

Api

DurationSeconds

public double? DurationSeconds { get; set; }

Property Value

double?

ModelType

public override ModelType ModelType { get; }

Property Value

ModelType

Type

public override FluentApiRequestType Type { get; }

Property Value

FluentApiRequestType

Methods

CreateStreamAsyncInternal()

protected override UniTask<IRESTStream<IGenerativeAudioEvent>> CreateStreamAsyncInternal()

Returns

UniTask<IRESTStream<IGenerativeAudioEvent>>

ExecuteAsyncInternal()

protected override UniTask<Generated<AudioClip>> ExecuteAsyncInternal()

Returns

UniTask<Generated<AudioClip>>

SetDuration(double)

Sets the duration of the generated sound effect in seconds.

public SoundEffectGenerationRequest SetDuration(double durationSeconds)

Parameters

durationSeconds double

Returns

SoundEffectGenerationRequest