Class RealtimeItemContent
The content part that is done.
Inheritance
object
RealtimeItemContent
Assembly: .dll
Syntax
public class RealtimeItemContent
Properties
Audio
Base64-encoded audio data (if type is "audio").
Declaration
public string Audio { get; set; }
Property Value
Text
The text content (if type is "text").
Declaration
public string Text { get; set; }
Property Value
Transcript
The transcript of the audio (if type is "audio").
Declaration
public string Transcript { get; set; }
Property Value
Type
Declaration
public RealtimeItemContentType? Type { get; set; }
Property Value
Methods
CreateInputAudio(string, string)
Declaration
public static RealtimeItemContent CreateInputAudio(string audio, string transcript)
Parameters
Type |
Name |
Description |
string |
audio |
|
string |
transcript |
|
Returns
CreateInputText(string)
Declaration
public static RealtimeItemContent CreateInputText(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns