File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sphinx4-core/src/main/java/edu/cmu/sphinx/frontend/endpoint Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public Data getData() throws DataProcessingException {
146146
147147 if (data instanceof DataEndSignal ) {
148148 if (inSpeech ) {
149- outputQueue .add (new SpeechEndSignal ());
149+ outputQueue .add (new SpeechEndSignal ((( DataEndSignal ) data ). getDuration () ));
150150 }
151151 outputQueue .add (data );
152152 break ;
@@ -174,7 +174,7 @@ public Data getData() throws DataProcessingException {
174174
175175 if (!inSpeech && speechCount == startSpeechFrames ) {
176176 inSpeech = true ;
177- outputQueue .add (new SpeechStartSignal (cdata .getCollectTime () - speechLeader - startSpeechFrames ));
177+ outputQueue .add (new SpeechStartSignal (cdata .getCollectTime () - speechLeader - startSpeechTime ));
178178 outputQueue .addAll (inputQueue .subList (
179179 Math .max (0 , inputQueue .size () - startSpeechFrames - speechLeaderFrames ), inputQueue .size ()));
180180 inputQueue .clear ();
You can’t perform that action at this time.
0 commit comments