Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ with patch('builtins.input', always_yes):
|
|
23 |
#################################
|
24 |
# Path to the audio file
|
25 |
#SAMPLE_AUDIOS = ["sampleaudio.wav"]
|
26 |
-
|
27 |
|
28 |
|
29 |
|
@@ -37,7 +37,7 @@ def text_to_speech(text):
|
|
37 |
try:
|
38 |
tts.tts_to_file(
|
39 |
text,
|
40 |
-
speaker_wav=
|
41 |
language="en",
|
42 |
file_path=save_path,
|
43 |
split_sentences=True,
|
|
|
23 |
#################################
|
24 |
# Path to the audio file
|
25 |
#SAMPLE_AUDIOS = ["sampleaudio.wav"]
|
26 |
+
sa = ["deekshachilukuri/PDF2AUDIO/sampleaudio.wav"]
|
27 |
|
28 |
|
29 |
|
|
|
37 |
try:
|
38 |
tts.tts_to_file(
|
39 |
text,
|
40 |
+
speaker_wav=sa,
|
41 |
language="en",
|
42 |
file_path=save_path,
|
43 |
split_sentences=True,
|