Table of Contents

Interface IStreamingEventDetectionSession<T>

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Interface for streaming event detection sessions.

public interface IStreamingEventDetectionSession<T> : IDisposable

Type Parameters

T

The numeric type used for calculations.

Inherited Members

Methods

FeedAudio(Tensor<T>)

Feeds audio samples to the detection session.

void FeedAudio(Tensor<T> audioChunk)

Parameters

audioChunk Tensor<T>

Audio samples to process.

GetCurrentState()

Gets current detection state for all event types.

IReadOnlyDictionary<string, T> GetCurrentState()

Returns

IReadOnlyDictionary<string, T>

Current probabilities for each event type.

GetNewEvents()

Gets newly detected events since last call.

IReadOnlyList<AudioEvent<T>> GetNewEvents()

Returns

IReadOnlyList<AudioEvent<T>>

Newly detected events.

Events

EventDetected

Event raised when a new event is detected.

event EventHandler<AudioEvent<T>>? EventDetected

Event Type

EventHandler<AudioEvent<T>>