Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Silero.Detector
Synopsis
- data VoiceDetector = VoiceDetector {}
- data SpeechSegment = SpeechSegment {}
- detectSegments :: MonadIO m => VoiceDetector -> Vector Float -> m [SpeechSegment]
- defaultVad :: SileroModel -> VoiceDetector
- withVad :: MonadUnliftIO m => (VoiceDetector -> m a) -> m a
Documentation
data VoiceDetector Source #
Constructors
VoiceDetector | |
Fields |
Instances
data SpeechSegment Source #
Constructors
SpeechSegment | |
Instances
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.**