Member Junction
    Preparing search index...

    Class RealtimeDroppedInputReporter

    Reports the input frames a realtime session drops, once per kind and type for the life of the session rather than once per frame. A camera sends a frame or more a second, so a session that cannot send video would otherwise log a line for each.

    IRealtimeSession.SendInput says a driver drops a frame it cannot send rather than sending it as something else. A session creates one reporter when it is created and passes each frame it drops to Report.

    private readonly droppedInput = new RealtimeDroppedInputReporter('AssemblyAIRealtime', 'this session sends audio only');

    public SendInput(frame: RealtimeInputFrame): void {
    if (frame.Kind !== 'audio') {
    this.droppedInput.Report(frame);
    return;
    }
    // send the audio
    }
    Index

    Constructors

    Methods

    Constructors

    Methods