Spaces:
Runtime error
Runtime error
BilalSardar
commited on
Commit
•
416fa5e
1
Parent(s):
05d1004
Update app.py
Browse files
app.py
CHANGED
@@ -148,8 +148,9 @@ def greet(Text,Voicetoclone,VoiceMicrophone):
|
|
148 |
).values()
|
149 |
print("Generated Audio")
|
150 |
IPython.display.display(Audio(wav, rate=ap.sample_rate))
|
151 |
-
file_name = text.replace(" ", "_")
|
152 |
-
file_name = file_name.translate(str.maketrans('', '', string.punctuation.replace('_', ''))) + '.wav'
|
|
|
153 |
out_path = os.path.join(OUT_PATH, file_name)
|
154 |
print(" > Saving output to {}".format(out_path))
|
155 |
ap.save_wav(wav, out_path)
|
|
|
148 |
).values()
|
149 |
print("Generated Audio")
|
150 |
IPython.display.display(Audio(wav, rate=ap.sample_rate))
|
151 |
+
#file_name = text.replace(" ", "_")
|
152 |
+
#file_name = file_name.translate(str.maketrans('', '', string.punctuation.replace('_', ''))) + '.wav'
|
153 |
+
file_name="Audio.wav"
|
154 |
out_path = os.path.join(OUT_PATH, file_name)
|
155 |
print(" > Saving output to {}".format(out_path))
|
156 |
ap.save_wav(wav, out_path)
|