We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c044554 commit ea8e063Copy full SHA for ea8e063
src/Assets/core.py
@@ -1,4 +1,4 @@
1
-# custom code compatible with chattts 0.2.3
+# custom code compatible with chattts 0.2.4
2
# adds the "local_dir" parameter
3
4
import os
@@ -296,9 +296,10 @@ def infer(
296
return res_gen
297
elif not refine_text_only:
298
stripped_wavs = []
299
+ thr = np.float32(1e-5)
300
for wavs in res_gen:
301
for wav in wavs:
- stripped_wavs.append(wav[np.abs(wav) > 1e-5])
302
+ stripped_wavs.append(wav[np.abs(wav) > thr])
303
if split_text:
304
return [np.concatenate(stripped_wavs)]
305
return stripped_wavs
0 commit comments