Skip to content

Commit

Permalink
Merge branch 'main' into funasr1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraGPT authored Jan 17, 2024
2 parents 6223ea9 + b185783 commit 2c831e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion funasr/auto/auto_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def inference_with_vad(self, input, input_len=None, **cfg):
time_speech_total_per_sample = speech_lengths/16000
time_speech_total_all_samples += time_speech_total_per_sample


pbar_sample = tqdm(colour="blue", total=n + 1, dynamic_ncols=True)

all_segments = []
Expand All @@ -328,6 +327,8 @@ def inference_with_vad(self, input, input_len=None, **cfg):
speech_j, speech_lengths_j = slice_padding_audio_samples(speech, speech_lengths, sorted_data[beg_idx:end_idx])
results = self.inference(speech_j, input_len=None, model=model, kwargs=kwargs, disable_pbar=True, **cfg)
if self.spk_model is not None:


# compose vad segments: [[start_time_sec, end_time_sec, speech], [...]]
for _b in range(len(speech_j)):
vad_segments = [[sorted_data[beg_idx:end_idx][_b][0][0]/1000.0,
Expand Down

0 comments on commit 2c831e2

Please sign in to comment.