| 1 | #ifndef _Sound_and_TextGrid_extensions_h_ |
| 2 | #define _Sound_and_TextGrid_extensions_h_ |
| 3 | /* Sound_and_TextGrid_extensions.h |
| 4 | * |
| 5 | * Copyright (C) 1993-2023 David Weenink, 2026 Anastasia Shchupak |
| 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 3 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 | #include "Sound.h" |
| 22 | #include "TextGrid.h" |
| 23 | |
| 24 | autoIntervalTier Sound_to_IntervalTier_highMidLowIntervals (Sound me, double min, double max); |
| 25 | autoTextGrid Sound_to_TextGrid_highMidLowIntervals (Sound me, double min, double max); |
| 26 | |
| 27 | autoTextGrid Sound_to_TextGrid_detectSilences (Sound me, double minPitch, double timeStep, |
| 28 | double silenceThreshold, double minSilenceDuration, double minSoundingDuration, |
| 29 | conststring32 silentLabel, conststring32 soundingLabel); |
| 30 | |
| 31 | autoTextGrid Sound_to_TextGrid_speechActivity_silero (constSound me, double speechProbabilityThreshold, |
| 32 | double minNonSpeechDuration, double minSpeechDuration, double speechPad, |
| 33 | conststring32 nonSpeechLabel, conststring32 speechLabel); |
| 34 | |
| 35 | autoTextGrid Sound_to_TextGrid_speechActivity_ltsf (Sound me, double timeStep, double longTermWindow_r, |
| 36 | double shorttimeAveragingWindow, double lowFrequencyThreshold, double highFrequencyThreshold, double ltsfThreshold, |
| 37 | double nonspeechThreshold_dB, double minNonspeechDuration, |
| 38 | double minSpeechDuration, conststring32 nonSpeechLabel, conststring32 speechLabel); |
| 39 | |
| 40 | #endif /* _Sound_and_TextGrid_extensions_h_ */ |