Coverage for src/bob/bio/spear/config/annotator/energy_thr.py: 100%
3 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
1#!/usr/bin/env python
2"""Configuration for the Voice Activity Detection (VAD) annotator Energy_Thr
4This annotator returns a mask (boolean array) of an audio signal, with ones where a
5voice is detected, and zeroes otherwise.
7Uses energy threshold
9Usage
10-----
12Feed this file (also defined as a ``energy-thr`` resource) to ``bob bio annotate`` as
13configuration::
15 $ bob bio annotate -a energy-thr -d <database> -o annotations/
17or include it in a pipeline::
19 $ bob bio pipeline simple energy-thr
20"""
22from bob.bio.spear.annotator import Energy_Thr
24annotator = Energy_Thr()