Przeglądaj źródła

modify return value of function Segment (#208)

LIN 2 lat temu
rodzic
commit
9b741d6803
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      sherpa-ncnn/csrc/conv-emformer-model.h

+ 1 - 1
sherpa-ncnn/csrc/conv-emformer-model.h

@@ -50,7 +50,7 @@ class ConvEmformerModel : public Model {
     // subsampling factor 4
     //
     // segment = 32 + (8 + 2 * 4 + 3) = 32 + 19 = 51
-    return 51;
+    return chunk_length_ + (right_context_length_ + 2 * 4 + 3);
   }
 
   // Advance the feature extract by this number of frames after