feat: overlap-window speechbrain enhance, hop 200ms / window 1s

This commit is contained in:
Hermes
2026-08-28 05:17:13 +00:00
parent 628307ff12
commit d8452c0ffe
7 changed files with 88 additions and 26 deletions
+4 -2
View File
@@ -36,7 +36,8 @@ class Config:
# speechbrain cleanup
enhance_mode: str = "auto" # auto | force | off
enhance_model: str = "speechbrain/metricgan-plus-voicebank"
enhance_chunk_s: float = 0.2
enhance_chunk_s: float = 1.0
enhance_hop_s: float = 0.2
# misc
publish_timeout_s: float = 60.0
log_level: str = "INFO"
@@ -80,7 +81,8 @@ def load_config(env_path: Optional[Path] = None) -> Config:
enhance_model=os.environ.get(
"ENHANCE_MODEL", "speechbrain/metricgan-plus-voicebank"
),
enhance_chunk_s=float(os.environ.get("ENHANCE_CHUNK_S", "0.2")),
enhance_chunk_s=float(os.environ.get("ENHANCE_CHUNK_S", "1.0")),
enhance_hop_s=float(os.environ.get("ENHANCE_HOP_S", "0.2")),
publish_timeout_s=float(os.environ.get("PUBLISH_TIMEOUT_S", "60")),
log_level=os.environ.get("LOG_LEVEL", "INFO").upper(),
cameras=_parse_cameras(os.environ.get("CAMERAS", "all")),