Class OpenAISpeechEvent
Inheritance
OpenAISpeechEvent
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public sealed class OpenAISpeechEvent : IBase64Source, IUsageProvider
Properties
|
Edit this page
View Source
Base64Audio
Required. A chunk of Base64-encoded audio data.
Declaration
[JsonProperty("audio")]
public string Base64Audio { get; set; }
Property Value
|
Edit this page
View Source
IsEmpty
Declaration
[JsonIgnore]
public bool IsEmpty { get; }
Property Value
|
Edit this page
View Source
Type
Required. The type of the event.
Always speech.audio.delta or speech.audio.done.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
|
Edit this page
View Source
Usage
Required. Token usage statistics for the request.
Declaration
[JsonProperty("usage")]
public Usage Usage { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
GetUsage()
Declaration
Returns
|
Edit this page
View Source
IsValid()
Declaration
Returns
Implements
Extension Methods