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

1#!/usr/bin/env python 

2"""Configuration for the Voice Activity Detection (VAD) annotator Energy_Thr 

3 

4This annotator returns a mask (boolean array) of an audio signal, with ones where a 

5voice is detected, and zeroes otherwise. 

6 

7Uses energy threshold 

8 

9Usage 

10----- 

11 

12Feed this file (also defined as a ``energy-thr`` resource) to ``bob bio annotate`` as 

13configuration:: 

14 

15 $ bob bio annotate -a energy-thr -d <database> -o annotations/ 

16 

17or include it in a pipeline:: 

18 

19 $ bob bio pipeline simple energy-thr 

20""" 

21 

22from bob.bio.spear.annotator import Energy_Thr 

23 

24annotator = Energy_Thr()