AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class RealtimeService

    Inheritance
    object
    RealtimeService
    Namespace: Glitch9.AIDevKit.OpenAI.Realtime
    Assembly: .dll
    Syntax
    public static class RealtimeService

    Methods

    CreateSession(Model, Model, SystemLanguage, Action<float[]>, Action<float[]>, Action<AudioClip>, Action<string>, Action<string>, Action<string>, Action<string>, Action<string>, Action<ErrorResponse>, Action<string>, FunctionManager, bool, bool, bool)

    Declaration
    public static RealtimeSessionController CreateSession(Model rtmModel = null, Model sttModel = null, SystemLanguage spokenLanguage = null, Action<float[]> onReceiveAudio = null, Action<float[]> onReceiveAudioDone = null, Action<AudioClip> onReceiveAudioClip = null, Action<string> onReceiveText = null, Action<string> onReceiveTextDone = null, Action<string> onReceiveTranscript = null, Action<string> onReceiveTranscriptDone = null, Action<string> onReceiveInputTranscriptionSuccess = null, Action<ErrorResponse> onReceiveInputTranscriptionFailed = null, Action<string> onSessionStateChanged = null, FunctionManager functionManager = null, bool enableAudio = true, bool enableTranscript = true, bool autoManageWebSocketState = false)
    Parameters
    Type Name Description
    Model rtmModel
    Model sttModel
    SystemLanguage spokenLanguage
    Action<float[]> onReceiveAudio
    Action<float[]> onReceiveAudioDone
    Action<AudioClip> onReceiveAudioClip
    Action<string> onReceiveText
    Action<string> onReceiveTextDone
    Action<string> onReceiveTranscript
    Action<string> onReceiveTranscriptDone
    Action<string> onReceiveInputTranscriptionSuccess
    Action<ErrorResponse> onReceiveInputTranscriptionFailed
    Action<string> onSessionStateChanged
    FunctionManager functionManager
    bool enableAudio
    bool enableTranscript
    bool autoManageWebSocketState
    Returns
    Type Description
    RealtimeSessionController

    CreateSession(RealtimeEventReceiverBase, Model, Model, SystemLanguage, bool, bool, bool)

    Declaration
    public static RealtimeSessionController CreateSession(RealtimeEventReceiverBase customEventReceiver, Model rtmModel = null, Model sttModel = null, SystemLanguage spokenLanguage = null, bool enableAudio = true, bool enableTranscript = true, bool autoManageWebSocketState = false)
    Parameters
    Type Name Description
    RealtimeEventReceiverBase customEventReceiver
    Model rtmModel
    Model sttModel
    SystemLanguage spokenLanguage
    bool enableAudio
    bool enableTranscript
    bool autoManageWebSocketState
    Returns
    Type Description
    RealtimeSessionController
    In this article
    Back to top Generated by DocFX