Debian Codegraph @

dwtools/Intensity_extensions.h

raw symbols SCIP
1 #ifndef _Intensity_extensions_h_
2 #define _Intensity_extensions_h_
3 /* Intensity_extensions.h
4 *
5 * Copyright (C) 2006-2017 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 djmw 20061204 Initial version
23 djmw 20110307 Latewst modification
24 */
25
26 #include "Sound.h"
27 #include "Intensity.h"
28 #include "IntensityTier.h"
29 #include "TextGrid.h"
30
31 autoTextGrid Intensity_to_TextGrid_detectSilences (Intensity me, double silenceThreshold_dB, double minSilenceDuration,
32 double minSoundingDuration, conststring32 silenceLabel, conststring32 soundingLabel);
33 /*
34 Marks "silence" intervals in a sound as intervals in a TextGrid.
35 silenceThreshold_dB: silence-to-speech and speech-to-silence threshold as dB's below maximum intensity
36 We have speech if:
37 local_intensity >= max_intensity - silenceThreshold.
38 Silence if:
39 local_intensity < max_intensity - silenceThreshold.
40 If minSilenceDuration > 0 then only intervals with a duration > minSilenceDuration will be labelled
41 as silences in the IntervalTier.
42 */
43
44 autoIntensity IntensityTier_to_Intensity (IntensityTier me, double dt);
45
46 autoTextGrid IntensityTier_to_TextGrid_detectSilences (IntensityTier me, double dt,
47 double silenceThreshold_dB, double minSilenceDuration, double minSoundingDuration,
48 conststring32 silenceLabel, conststring32 soundingLabel
49 );
50
51 #endif /* _Intensity_extensions_h_ */