Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- detectSoundInterval :: (MonadMask m, MonadUnliftIO m) => ListenCutOptions -> m [Interval Sound]
- data Interval e = Interval {}
- data Sound
- data Silent
- getStart :: Text -> Double
- getEnd :: Text -> Double
- getDuration :: Text -> Double
- takeOnlyLines :: Text -> Bool
- detectSpeech :: ListenCutOptions -> FilePath -> FilePath -> Sh (Either ResultCode [WordFrame])
Documentation
detectSoundInterval :: (MonadMask m, MonadUnliftIO m) => ListenCutOptions -> m [Interval Sound] Source #
I think we can only detect silence with ffmpeg, so we flip the silent to sounded intervals, and : if x indicates silence: silence: xxx_xxxxxxx__xxxxxxx sounded: _xxx_xx__xxxx_xx
Instances
Show (Interval e) Source # | |
Generic (Interval e) Source # | |
type Rep (Interval e) Source # | |
Defined in Cut.Analyze type Rep (Interval e) = D1 ('MetaData "Interval" "Cut.Analyze" "cut-the-crap-2.3.1-inplace" 'False) (C1 ('MetaCons "Interval" 'PrefixI 'True) ((S1 ('MetaSel ('Just "interval_start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "interval_end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "interval_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "interval_input_start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "interval_input_end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))) |
getDuration :: Text -> Double Source #
takeOnlyLines :: Text -> Bool Source #
detectSpeech :: ListenCutOptions -> FilePath -> FilePath -> Sh (Either ResultCode [WordFrame]) Source #
Detect the speech on the mkv file