Skip to content

Commit ea8e063

Browse files
authored
v7.8.1
1 parent c044554 commit ea8e063

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Assets/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# custom code compatible with chattts 0.2.3
1+
# custom code compatible with chattts 0.2.4
22
# adds the "local_dir" parameter
33

44
import os
@@ -296,9 +296,10 @@ def infer(
296296
return res_gen
297297
elif not refine_text_only:
298298
stripped_wavs = []
299+
thr = np.float32(1e-5)
299300
for wavs in res_gen:
300301
for wav in wavs:
301-
stripped_wavs.append(wav[np.abs(wav) > 1e-5])
302+
stripped_wavs.append(wav[np.abs(wav) > thr])
302303
if split_text:
303304
return [np.concatenate(stripped_wavs)]
304305
return stripped_wavs

0 commit comments

Comments
 (0)