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 46ad65f commit 1092c1fCopy full SHA for 1092c1f
ChatTTS/core.py
@@ -259,9 +259,10 @@ def infer(
259
return res_gen
260
elif not refine_text_only:
261
stripped_wavs = []
262
+ thr = np.float32(1e-5)
263
for wavs in res_gen:
264
for wav in wavs:
- stripped_wavs.append(wav[np.abs(wav) > 1e-5])
265
+ stripped_wavs.append(wav[np.abs(wav) > thr])
266
if split_text:
267
return [np.concatenate(stripped_wavs)]
268
return stripped_wavs
requirements.txt
@@ -1,4 +1,4 @@
1
-numpy<2.0.0
+numpy<3.0.0
2
numba
3
torch>=2.1.0
4
torchaudio
setup.py
@@ -20,7 +20,7 @@
20
license="AGPLv3+",
21
install_requires=[
22
"numba",
23
- "numpy<2.0.0",
+ "numpy<3.0.0",
24
"pybase16384",
25
"torch>=2.1.0",
26
"torchaudio",
0 commit comments