Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelicia Lim <flim@google.com>2016-05-16 16:29:53 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-07-17 22:05:54 +0300
commit36481346729962928b58672a86bef140b703787a (patch)
tree6eb7910c0039e8c62d1dff3c064686e2233ef925 /silk/define.h
parent425e8a9bdab4065e8176198738e9caf046a03240 (diff)
New DTX that works in all modes (SILK/CELT/HYBRID)
A frame is marked as valid for DTX if it contains noise or only digital silence. As before, there is an overhang period of 200 ms and a maximum consecutive DTX period of 400 ms. If the new DTX cannot be used because of the complexity setting and sampling frequency chosen, the SILK DTX will be used instead. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'silk/define.h')
-rw-r--r--silk/define.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/silk/define.h b/silk/define.h
index 520cdbfc..dd2e29b6 100644
--- a/silk/define.h
+++ b/silk/define.h
@@ -56,6 +56,7 @@ extern "C"
/* DTX settings */
#define NB_SPEECH_FRAMES_BEFORE_DTX 10 /* eq 200 ms */
#define MAX_CONSECUTIVE_DTX 20 /* eq 400 ms */
+#define DTX_ACTIVITY_THRESHOLD 0.1f
/* Maximum sampling frequency */
#define MAX_FS_KHZ 16