vad bug fix

This commit is contained in:
lingyunfly 2023-04-13 14:23:03 +08:00 committed by GitHub
parent 880d76020b
commit 6df05f2e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -470,8 +470,8 @@ class E2EVadModel():
end_ms = -1
self.next_seg = False
else:
if not self.output_data_buf[i].contain_seg_start_point or not self.output_data_buf[
i].contain_seg_end_point:
if not is_final and (not self.output_data_buf[i].contain_seg_start_point or not self.output_data_buf[
i].contain_seg_end_point):
continue
start_ms = self.output_data_buf[i].start_ms
end_ms = self.output_data_buf[i].end_ms