Table of Contents

Class OpenAISpeechGenerationEvent

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

Properties

Base64Audio

Required. A chunk of Base64-encoded audio data.

public string Base64Audio { get; set; }

Property Value

string

Type

Required. The type of the event. Always speech.audio.delta or speech.audio.done.

public string Type { get; set; }

Property Value

string

Usage

Required. Token usage statistics for the request.

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