search for: nb_speech_frames_before_dtx

Displaying 4 results from an estimated 4 matches for "nb_speech_frames_before_dtx".

2017 Jul 06
1
Suggested patch, opus_encoder.c, decide_dtx_mode()
...gnal_energy >= (PSEUDO_SNR_THRESHOLD * noise_energy); } } if (is_silence || (is_noise && is_sufficiently_quiet)) { /* The number of consecutive DTX frames should be within the allowed bounds */ (*nb_no_activity_frames)++; if (*nb_no_activity_frames > NB_SPEECH_FRAMES_BEFORE_DTX) { if (*nb_no_activity_frames <= (NB_SPEECH_FRAMES_BEFORE_DTX + MAX_CONSECUTIVE_DTX)) /* Valid frame for DTX! */ return 1; else (*nb_no_activity_frames) = NB_SPEECH_FRAMES_BEFORE_DTX; } } else (*nb_no_activity_frames) = 0...
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...er CTL named OPUS_GET_IN_DTX. OPUS_GET_IN_DTX returns 1 if the last encoded frame was either a DTX frame, or a CNG update frame that is sent every 420 ms between the DTX frames. This is achieved by checking if the number of consecutive inactive frames (nb_no_activity_frames) is greater or equal to NB_SPEECH_FRAMES_BEFORE_DTX. diff --git a/include/opus_defines.h b/include/opus_defines.h index fbf5d0eb..e35114e4 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -168,6 +168,7 @@ extern "C" { /* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ #define OPUS_SET_PHASE_INV...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...urns 1 if the last encoded frame was either a DTX frame, or a CNG > > update frame that is sent every 420 ms between the DTX frames. > > > > This is achieved by checking if the number of consecutive inactive > > frames (nb_no_activity_frames) is greater or equal to > > NB_SPEECH_FRAMES_BEFORE_DTX. > > > > > > diff --git a/include/opus_defines.h b/include/opus_defines.h > > index fbf5d0eb..e35114e4 100644 > > --- a/include/opus_defines.h > > +++ b/include/opus_defines.h > > @@ -168,6 +168,7 @@ extern "C" { > > /* Don't use 4045,...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
...OPUS_GET_IN_DTX > returns 1 if the last encoded frame was either a DTX frame, or a CNG > update frame that is sent every 420 ms between the DTX frames. > > This is achieved by checking if the number of consecutive inactive > frames (nb_no_activity_frames) is greater or equal to > NB_SPEECH_FRAMES_BEFORE_DTX. > > > diff --git a/include/opus_defines.h b/include/opus_defines.h > index fbf5d0eb..e35114e4 100644 > --- a/include/opus_defines.h > +++ b/include/opus_defines.h > @@ -168,6 +168,7 @@ extern "C" { >  /* Don't use 4045, it's already taken by OPUS_GET_GAI...