Skip to content

Commit

Permalink
Merge pull request prophesier#34 from IceKyrin/patch-3
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
prophesier authored Dec 5, 2022
2 parents bc7d45f + 2025ee1 commit 9698dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infer_tools/slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self,
def slice(self, audio):
samples = audio
if samples.shape[0] <= self.min_samples:
return [len(audio)]
return {"0": {"slice": False, "split_time": f"0,{len(audio)}"}}
# get absolute amplitudes
abs_amp = np.abs(samples - np.mean(samples))
# calculate local maximum with large window
Expand Down

0 comments on commit 9698dc9

Please sign in to comment.