Class OpenAISpeechGenerationEvent
public class OpenAISpeechGenerationEvent : IGenerativeAudioEvent, IGenerativeEvent<float[], Generated<AudioClip>>, ITextStreamEvent, IAudioStreamEvent
- Inheritance
-
objectOpenAISpeechGenerationEvent
- Implements
-
ITextStreamEventIAudioStreamEvent
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
Methods
GetChunk()
public float[] GetChunk()
Returns
- float[]
GetOutput()
public Generated<AudioClip> GetOutput()
Returns
- Generated<AudioClip>
GetUsage()
public UsageMetadata GetUsage()
Returns
IsFinal()
public bool IsFinal()
Returns
- bool