Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
66c8561
1
Parent(s):
86ac495
Update demo_cli.py
Browse files- demo_cli.py +0 -11
demo_cli.py
CHANGED
@@ -195,17 +195,6 @@ if __name__ == '__main__':
|
|
195 |
|
196 |
# Trim excess silences to compensate for gaps in spectrograms (issue #53)
|
197 |
generated_wav = encoder.preprocess_wav(generated_wav)
|
198 |
-
|
199 |
-
# Play the audio (non-blocking)
|
200 |
-
if not args.no_sound:
|
201 |
-
try:
|
202 |
-
sd.stop()
|
203 |
-
sd.play(generated_wav, synthesizer.sample_rate)
|
204 |
-
except sd.PortAudioError as e:
|
205 |
-
print("\nCaught exception: %s" % repr(e))
|
206 |
-
print("Continuing without audio playback. Suppress this message with the \"--no_sound\" flag.\n")
|
207 |
-
except:
|
208 |
-
raise
|
209 |
|
210 |
# Save it on the disk
|
211 |
filename = "demo_output_1.wav"
|
|
|
195 |
|
196 |
# Trim excess silences to compensate for gaps in spectrograms (issue #53)
|
197 |
generated_wav = encoder.preprocess_wav(generated_wav)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
# Save it on the disk
|
200 |
filename = "demo_output_1.wav"
|