Spaces:
Runtime error
Runtime error
lhzstar
commited on
Commit
·
136fecc
1
Parent(s):
325f09c
new commits
Browse files- run_tts.py +1 -1
run_tts.py
CHANGED
|
@@ -94,7 +94,7 @@ def tts(text, embed_name, nlp, autoplay=True):
|
|
| 94 |
|
| 95 |
# Trim excess silences to compensate for gaps in spectrograms (issue #53)
|
| 96 |
# generated_wav = encoder.preprocess_wav(generated_wav)
|
| 97 |
-
wav = wav / np.abs(wav).max() *
|
| 98 |
|
| 99 |
if autoplay:
|
| 100 |
# Play the audio (non-blocking)
|
|
|
|
| 94 |
|
| 95 |
# Trim excess silences to compensate for gaps in spectrograms (issue #53)
|
| 96 |
# generated_wav = encoder.preprocess_wav(generated_wav)
|
| 97 |
+
wav = wav / np.abs(wav).max() * 10
|
| 98 |
|
| 99 |
if autoplay:
|
| 100 |
# Play the audio (non-blocking)
|