shithub: opus

Download patch

ref: 022ddc31fb0066aed3a97f095b6619dc6b4c9eb6
parent: 86bf0cb9d53a8218dddc4497390c884b0eb582b6
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Wed Feb 16 18:09:27 EST 2022

Enable pitch xcorr refining

--- a/dnn/lpcnet_enc.c
+++ b/dnn/lpcnet_enc.c
@@ -544,7 +544,7 @@
       ener = (1 + ener0 + celt_inner_prod(&st->exc_buf[i+off], &st->exc_buf[i+off], FRAME_SIZE/2));
       st->xc[2+2*st->pcount+sub][i] = 2*xcorr[i] / ener;
     }
-    if (0) {
+    if (1) {
       /* Upsample correlation by 3x and keep the max. */
       float interpolated[PITCH_MAX_PERIOD]={0};
       /* interp=sinc([-3:3]+1/3).*(.5+.5*cos(pi*[-3:3]/4.5)); interp=interp/sum(interp); */
--