videosphere
    Preparing search index...

    Rolling speech-versus-music detector over a live PCM stream.

    interface AudioActivityDetector {
        classifierId: string;
        options: ResolvedAudioActivityDetectorOptions;
        state: AudioActivityState;
        push(pcm: Buffer, sampleRate: number): AudioActivityUpdate;
        noteProviderMusicEvent(active: boolean, confidence: number): void;
        lastScores(): AudioActivityScores;
        reset(): void;
    }
    Index

    Properties

    classifierId: string

    Identifier of the underlying classifier.

    Settings actually in effect, after defaults and threshold reconciliation.

    Current committed state.

    Methods

    • Records a music event reported by the upstream ASR provider.

      Parameters

      • active: boolean

        True when a music event started, false when it ended.

      • confidence: number

        Provider confidence in [0, 1].

      Returns void