Table of Contents

Class BinaryGenerativeAudioEvent

Namespace
Glitch9.AIDevKit

A generative audio event that contains binary audio data.

public class BinaryGenerativeAudioEvent : IGenerativeAudioEvent, IGenerativeEvent<float[], Generated<AudioClip>>, ITextStreamEvent, IAudioStreamEvent
Inheritance
object
BinaryGenerativeAudioEvent
Implements
IGenerativeEvent<float[], Generated<AudioClip>>
ITextStreamEvent
IAudioStreamEvent

Properties

AudioChunk

Required. The audio data chunk.

public float[] AudioChunk { get; set; }

Property Value

float[]

Done

Required. Whether this is the final audio chunk.

public bool Done { get; set; }

Property Value

bool

Usage

Required. Usage statistics for models billed by token usage.

public UsageMetadata Usage { get; set; }

Property Value

UsageMetadata

Methods

GetChunk()

public float[] GetChunk()

Returns

float[]

GetOutput()

public Generated<AudioClip> GetOutput()

Returns

Generated<AudioClip>

GetUsage()

public UsageMetadata GetUsage()

Returns

UsageMetadata

IsFinal()

public bool IsFinal()

Returns

bool