mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-01-10 17:19:34 +01:00
Move clips and audio to dedicated module
This commit is contained in:
parent
b81a882b58
commit
8c80402f08
16
src/batdetect2/audio/__init__.py
Normal file
16
src/batdetect2/audio/__init__.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from batdetect2.audio.clips import ClipConfig, build_clipper
|
||||||
|
from batdetect2.audio.loader import (
|
||||||
|
TARGET_SAMPLERATE_HZ,
|
||||||
|
AudioConfig,
|
||||||
|
SoundEventAudioLoader,
|
||||||
|
build_audio_loader,
|
||||||
|
)
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"TARGET_SAMPLERATE_HZ",
|
||||||
|
"AudioConfig",
|
||||||
|
"SoundEventAudioLoader",
|
||||||
|
"build_audio_loader",
|
||||||
|
"ClipConfig",
|
||||||
|
"build_clipper",
|
||||||
|
]
|
||||||
@ -13,6 +13,12 @@ DEFAULT_TRAIN_CLIP_DURATION = 0.256
|
|||||||
DEFAULT_MAX_EMPTY_CLIP = 0.1
|
DEFAULT_MAX_EMPTY_CLIP = 0.1
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"build_clipper",
|
||||||
|
"ClipConfig",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
clipper_registry: Registry[ClipperProtocol, []] = Registry("clipper")
|
clipper_registry: Registry[ClipperProtocol, []] = Registry("clipper")
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user