Class BinaryGenerativeAudioEvent
A generative audio event that contains binary audio data.
public class BinaryGenerativeAudioEvent : IGenerativeAudioEvent, IGenerativeEvent<float[], Generated<AudioClip>>, ITextStreamEvent, IAudioStreamEvent
- Inheritance
-
objectBinaryGenerativeAudioEvent
- Implements
-
ITextStreamEventIAudioStreamEvent
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
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