| 1 | #cxx . . $ `<file>/dwtools/Intensity_extensions.h`/ifndef _Intensity_extensions_h_ |
| 2 | #define _Intensity_extensions_h_cxx . . $ `dwtools/Intensity_extensions.h:2:9`! |
| 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"cxx . . $ `<file>/fon/Sound.h`/ |
| 27 | #include "Intensity.h"cxx . . $ `<file>/fon/Intensity.h`/ |
| 28 | #include "IntensityTier.h"cxx . . $ `<file>/fon/IntensityTier.h`/ |
| 29 | #include "TextGrid.h"cxx . . $ `<file>/fon/TextGrid.h`/ |
| 30 | |
| 31 | autoTextGridcxx . . $ autoTextGrid# Intensity_to_TextGrid_detectSilencescxx . . $ Intensity_to_TextGrid_detectSilences(e4df46c8d31d1227). (Intensitycxx . . $ Intensity# me, double silenceThreshold_dB, double minSilenceDuration, |
| 32 | double minSoundingDuration, conststring32cxx . . $ conststring32# silenceLabel, conststring32cxx . . $ 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 | autoIntensitycxx . . $ autoIntensity# IntensityTier_to_Intensitycxx . . $ IntensityTier_to_Intensity(2c74d3938e494609). (IntensityTiercxx . . $ IntensityTier# me, double dt); |
| 45 | |
| 46 | autoTextGridcxx . . $ autoTextGrid# IntensityTier_to_TextGrid_detectSilencescxx . . $ IntensityTier_to_TextGrid_detectSilences(19c983e6159683b6). (IntensityTiercxx . . $ IntensityTier# me, double dt, |
| 47 | double silenceThreshold_dB, double minSilenceDuration, double minSoundingDuration, |
| 48 | conststring32cxx . . $ conststring32# silenceLabel, conststring32cxx . . $ conststring32# soundingLabel |
| 49 | ); |
| 50 | |
| 51 | #endif /* _Intensity_extensions_h_ */ |