Search Results for

    Show / Hide Table of Contents

    Class RealtimeItemContent

    The content part that is done.

    Inheritance
    object
    RealtimeItemContent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI.Realtime
    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
    Type Description
    string
    | Edit this page View Source

    Text

    The text content (if type is "text").

    Declaration
    [JsonProperty("text")]
    public string Text { get; set; }
    Property Value
    Type Description
    string
    | 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
    Type Description
    string
    | Edit this page View Source

    Type

    The content type

    Declaration
    [JsonProperty("type")]
    public RealtimeItemContentType? Type { get; set; }
    Property Value
    Type Description
    RealtimeItemContentType?

    Methods

    | Edit this page View Source

    CreateInputAudio(string, string)

    Declaration
    public static RealtimeItemContent CreateInputAudio(string audio, string transcript)
    Parameters
    Type Name Description
    string audio
    string transcript
    Returns
    Type Description
    RealtimeItemContent
    | Edit this page View Source

    CreateInputText(string)

    Declaration
    public static RealtimeItemContent CreateInputText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    RealtimeItemContent
    | Edit this page View Source

    CreateOutputAudio(string, string)

    Declaration
    public static RealtimeItemContent CreateOutputAudio(string audio, string transcript)
    Parameters
    Type Name Description
    string audio
    string transcript
    Returns
    Type Description
    RealtimeItemContent
    | Edit this page View Source

    CreateOutputText(string)

    Declaration
    public static RealtimeItemContent CreateOutputText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    RealtimeItemContent
    | Edit this page View Source

    TruncateAudioAt(long)

    Declaration
    public void TruncateAudioAt(long audioEndMs)
    Parameters
    Type Name Description
    long audioEndMs

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation