Safe Haskell | None |
---|---|
Language | Haskell2010 |
This entire module leaks like crazy, it's not a big deal because at the moment this process is confined
Synopsis
- speechAnalyses :: FilePath -> IO (Either ResultCode [WordFrame])
- frame_from :: Lens' WordFrame FrameOffset
- frame_to :: Lens' WordFrame FrameOffset
- frame_word :: Lens' WordFrame Text
- data FrameOffset
- data WordFrame
- data ResultCode
- toDiffTime :: FrameOffset -> FrameOffset -> DiffTime
- toFrameOffset :: Int -> FrameOffset
- noOffset :: FrameOffset
Documentation
speechAnalyses :: FilePath -> IO (Either ResultCode [WordFrame]) Source #
given a raw audio file, we can detect words
data FrameOffset Source #
Instances
Show FrameOffset Source # | |
Defined in Cut.SpeechRecognition showsPrec :: Int -> FrameOffset -> ShowS # show :: FrameOffset -> String # showList :: [FrameOffset] -> ShowS # | |
Generic FrameOffset Source # | |
Defined in Cut.SpeechRecognition type Rep FrameOffset :: Type -> Type # from :: FrameOffset -> Rep FrameOffset x # to :: Rep FrameOffset x -> FrameOffset # | |
type Rep FrameOffset Source # | |
Defined in Cut.SpeechRecognition type Rep FrameOffset = D1 ('MetaData "FrameOffset" "Cut.SpeechRecognition" "cut-the-crap-2.0.0-inplace" 'True) (C1 ('MetaCons "FrameOffset" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
Instances
Show WordFrame Source # | |
Generic WordFrame Source # | |
Storable WordFrame Source # | |
Defined in Cut.SpeechRecognition | |
type Rep WordFrame Source # | |
Defined in Cut.SpeechRecognition type Rep WordFrame = D1 ('MetaData "WordFrame" "Cut.SpeechRecognition" "cut-the-crap-2.0.0-inplace" 'False) (C1 ('MetaCons "WordFrame" 'PrefixI 'True) (S1 ('MetaSel ('Just "_frame_from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FrameOffset) :*: (S1 ('MetaSel ('Just "_frame_to") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FrameOffset) :*: S1 ('MetaSel ('Just "_frame_word") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
data ResultCode Source #
Instances
Enum ResultCode Source # | |
Defined in Cut.SpeechRecognition succ :: ResultCode -> ResultCode # pred :: ResultCode -> ResultCode # toEnum :: Int -> ResultCode # fromEnum :: ResultCode -> Int # enumFrom :: ResultCode -> [ResultCode] # enumFromThen :: ResultCode -> ResultCode -> [ResultCode] # enumFromTo :: ResultCode -> ResultCode -> [ResultCode] # enumFromThenTo :: ResultCode -> ResultCode -> ResultCode -> [ResultCode] # | |
Show ResultCode Source # | |
Defined in Cut.SpeechRecognition showsPrec :: Int -> ResultCode -> ShowS # show :: ResultCode -> String # showList :: [ResultCode] -> ShowS # |
toDiffTime :: FrameOffset -> FrameOffset -> DiffTime Source #
toFrameOffset :: Int -> FrameOffset Source #