cabal-version: 1.18

-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

name:           silero-vad
version:        0.1.0.0
synopsis:       Voice activity detection powered by SileroVAD.
description:    A haskell implentation of SileroVAD, a pre-trained enterprise-grade voice activity detector.
category:       Audio, Sound
homepage:       https://github.com/qwbarch/silero-vad-hs
bug-reports:    https://github.com/qwbarch/silero-vad-hs/issues
author:         qwbarch
maintainer:     qwbarch <qwbarch@gmail.com>
license:        MIT
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.8, GHC == 9.2.8, GHC == 8.10.7
extra-doc-files:
    README.md
    CHANGELOG.md
data-files:
    lib/onnxruntime/linux-x64/libonnxruntime.so
    lib/onnxruntime/mac-x64/libonnxruntime.dylib
    lib/onnxruntime/mac-arm64/libonnxruntime.dylib
    lib/onnxruntime/windows-x64/onnxruntime.dll
    lib/silero_vad.onnx
    lib/jfk.wav

flag build-readme
  description: Build the literate haskell README example.
  manual: False
  default: False

library
  exposed-modules:
      Silero
      Silero.Detector
      Silero.Model
  other-modules:
      Paths_silero_vad
  hs-source-dirs:
      src
  default-extensions:
      DataKinds
      DeriveAnyClass
      DeriveGeneric
      DerivingStrategies
      DuplicateRecordFields
      EmptyDataDecls
      ExplicitNamespaces
      FlexibleContexts
      GeneralizedNewtypeDeriving
      LambdaCase
      MultiParamTypeClasses
      NegativeLiterals
      NumericUnderscores
      OverloadedLabels
      OverloadedStrings
      PolyKinds
      QuasiQuotes
      RankNTypes
      ScopedTypeVariables
      StrictData
      TemplateHaskell
      TypeApplications
      TypeOperators
  cc-options: -Wno-unused-result
  include-dirs:
      cbits
  c-sources:
      cbits/silero/detector.c
      cbits/silero/detector.h
      cbits/silero/model.c
      cbits/silero/model.h
      cbits/vec.c
      cbits/vec.h
  build-depends:
      base >=4.14.3.0 && <5
    , derive-storable >=0.3.0.0 && <1
    , unliftio >=0.2.20.0 && <1
    , vector >=0.13.0.0 && <1
  default-language: Haskell2010
  if os(linux) || os(darwin)
    build-depends:
        unix ==2.*
  if os(windows)
    build-depends:
        Win32 ==2.*

executable readme
  main-is: README.lhs
  other-modules:
      Silero
      Silero.Detector
      Silero.Model
      Paths_silero_vad
  hs-source-dirs:
      ./
      src
  default-extensions:
      DataKinds
      DeriveAnyClass
      DeriveGeneric
      DerivingStrategies
      DuplicateRecordFields
      EmptyDataDecls
      ExplicitNamespaces
      FlexibleContexts
      GeneralizedNewtypeDeriving
      LambdaCase
      MultiParamTypeClasses
      NegativeLiterals
      NumericUnderscores
      OverloadedLabels
      OverloadedStrings
      PolyKinds
      QuasiQuotes
      RankNTypes
      ScopedTypeVariables
      StrictData
      TemplateHaskell
      TypeApplications
      TypeOperators
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -flate-specialise -fspecialise-aggressively -Wall -Wno-name-shadowing -pgmL markdown-unlit
  cc-options: -Wno-unused-result
  include-dirs:
      cbits
  c-sources:
      cbits/silero/detector.c
      cbits/silero/detector.h
      cbits/silero/model.c
      cbits/silero/model.h
      cbits/vec.c
      cbits/vec.h
  build-tool-depends:
      markdown-unlit:markdown-unlit
  build-depends:
      WAVE ==0.1.*
    , base >=4.14.3.0 && <5
    , derive-storable >=0.3.0.0 && <1
    , unliftio >=0.2.20.0 && <1
    , vector >=0.13.0.0 && <1
  default-language: Haskell2010
  if os(linux) || os(darwin)
    build-depends:
        unix ==2.*
  if os(windows)
    build-depends:
        Win32 ==2.*
  if !flag(build-readme)
    buildable: False

test-suite test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Silero
      Silero.Detector
      Silero.Model
      Paths_silero_vad
  hs-source-dirs:
      src
      test
  default-extensions:
      DataKinds
      DeriveAnyClass
      DeriveGeneric
      DerivingStrategies
      DuplicateRecordFields
      EmptyDataDecls
      ExplicitNamespaces
      FlexibleContexts
      GeneralizedNewtypeDeriving
      LambdaCase
      MultiParamTypeClasses
      NegativeLiterals
      NumericUnderscores
      OverloadedLabels
      OverloadedStrings
      PolyKinds
      QuasiQuotes
      RankNTypes
      ScopedTypeVariables
      StrictData
      TemplateHaskell
      TypeApplications
      TypeOperators
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -flate-specialise -fspecialise-aggressively -Wall -Wno-name-shadowing
  cc-options: -Wno-unused-result
  include-dirs:
      cbits
  c-sources:
      cbits/silero/detector.c
      cbits/silero/detector.h
      cbits/silero/model.c
      cbits/silero/model.h
      cbits/vec.c
      cbits/vec.h
  build-depends:
      WAVE ==0.1.*
    , base >=4.14.3.0 && <5
    , derive-storable >=0.3.0.0 && <1
    , tasty >1 && <2
    , tasty-hunit >0.10 && <1
    , unliftio >=0.2.20.0 && <1
    , vector >=0.13.0.0 && <1
  default-language: Haskell2010
  if os(linux) || os(darwin)
    build-depends:
        unix ==2.*
  if os(windows)
    build-depends:
        Win32 ==2.*