Displaying 3 results from an estimated 3 matches for "nospeechcounter".
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...goto bad_arg;
+ }
+ *value = 0;
+ if (st->silk_mode.useDTX) {
+ /* DTX determined by Silk. */
+ void *silk_enc = (char*)st+st->silk_enc_offset;
+ *value =
((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >=
NB_SPEECH_FRAMES_BEFORE_DTX;
+ }
+#ifndef DISABLE_FLOAT_API
+ else if (st->use_dtx) {
+ /* DTX determined by Opus. */
+ *value = st->nb_no_activity_frames >=
NB_SPEECH_FRAMES_BEFORE_DTX;
+ }
+#endif
+ }
+ br...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...*value = 0;
> > + if (st->silk_mode.useDTX) {
> > + /* DTX determined by Silk. */
> > + void *silk_enc = (char*)st+st->silk_enc_offset;
> > + *value =
> > ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >=
> > NB_SPEECH_FRAMES_BEFORE_DTX;
> > + }
>
>
> It looks like this does not have the same behavior as the code that
> decides whether to produce a DTX frame. For example, in the case of
> stereo the SILK DTX code considers both channels, but this code loo...
2019 Apr 05
0
API for checking whether the encoder is in DTX (PR #107)
... }
> + *value = 0;
> + if (st->silk_mode.useDTX) {
> + /* DTX determined by Silk. */
> + void *silk_enc = (char*)st+st->silk_enc_offset;
> + *value =
> ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.noSpeechCounter >=
> NB_SPEECH_FRAMES_BEFORE_DTX;
> + }
It looks like this does not have the same behavior as the code that
decides whether to produce a DTX frame. For example, in the case of
stereo the SILK DTX code considers both channels, but this code looks
only at state_Fxx[0]. Shouldn...