silero-vad-0.1.0.5: Voice activity detection powered by SileroVAD.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Silero.Detector

Synopsis

Documentation

data VoiceDetector Source #

Instances

Instances details
Generic VoiceDetector Source # 
Instance details

Defined in Silero.Detector

Associated Types

type Rep VoiceDetector :: Type -> Type #

GStorable VoiceDetector Source # 
Instance details

Defined in Silero.Detector

type Rep VoiceDetector Source # 
Instance details

Defined in Silero.Detector

data SpeechSegment Source #

Instances

Instances details
Generic SpeechSegment Source # 
Instance details

Defined in Silero.Detector

Associated Types

type Rep SpeechSegment :: Type -> Type #

Read SpeechSegment Source # 
Instance details

Defined in Silero.Detector

Show SpeechSegment Source # 
Instance details

Defined in Silero.Detector

GStorable SpeechSegment Source # 
Instance details

Defined in Silero.Detector

Eq SpeechSegment Source # 
Instance details

Defined in Silero.Detector

Ord SpeechSegment Source # 
Instance details

Defined in Silero.Detector

type Rep SpeechSegment Source # 
Instance details

Defined in Silero.Detector

type Rep SpeechSegment = D1 ('MetaData "SpeechSegment" "Silero.Detector" "silero-vad-0.1.0.5-5LfdoGuflWS1B1WI2NWyYR" 'False) (C1 ('MetaCons "SpeechSegment" 'PrefixI 'True) ((S1 ('MetaSel ('Just "startIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int32) :*: S1 ('MetaSel ('Just "endIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int32)) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat) :*: S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CFloat))))

detectSegments :: MonadIO m => VoiceDetector -> Vector Float -> m [SpeechSegment] Source #

Detect the segments where speech starts and ends. This implicitly resets the model after it finishes.

defaultVad :: SileroModel -> VoiceDetector Source #

Create a **VoiceDetector**. **Warning: SileroModel holds internal state and is NOT thread safe.**

withVad :: MonadUnliftIO m => (VoiceDetector -> m a) -> m a Source #

Create a **VoiceDetector**. **Warning: SileroModel holds internal state and is NOT thread safe.**