Class RealtimeItemContent
The content part that is done.
Inheritance
RealtimeItemContent
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public class RealtimeItemContent
Properties
|
Edit this page
View Source
Audio
Base64-encoded audio data (if type is "audio").
Declaration
[JsonProperty("audio")]
public string Audio { get; set; }
Property Value
|
Edit this page
View Source
Text
The text content (if type is "text").
Declaration
[JsonProperty("text")]
public string Text { get; set; }
Property Value
|
Edit this page
View Source
Transcript
The transcript of the audio (if type is "audio").
Declaration
[JsonProperty("transcript")]
public string Transcript { get; set; }
Property Value
|
Edit this page
View Source
Type
Declaration
[JsonProperty("type")]
public RealtimeItemContentType? Type { get; set; }
Property Value
Methods
|
Edit this page
View Source
CreateInputAudio(string, string)
Declaration
public static RealtimeItemContent CreateInputAudio(string audio, string transcript)
Parameters
Returns
|
Edit this page
View Source
CreateInputText(string)
Declaration
public static RealtimeItemContent CreateInputText(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
|
Edit this page
View Source
CreateOutputAudio(string, string)
Declaration
public static RealtimeItemContent CreateOutputAudio(string audio, string transcript)
Parameters
Returns
|
Edit this page
View Source
CreateOutputText(string)
Declaration
public static RealtimeItemContent CreateOutputText(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
|
Edit this page
View Source
TruncateAudioAt(long)
Declaration
public void TruncateAudioAt(long audioEndMs)
Parameters
| Type |
Name |
Description |
| long |
audioEndMs |
|
Extension Methods