Update app.py
Browse files
app.py
CHANGED
@@ -29,9 +29,10 @@ def init_TTS(config):
|
|
29 |
@spaces.GPU
|
30 |
def generate_speech(microphone, text):
|
31 |
# Generate speech using the provided text, speaker voice, and language
|
|
|
32 |
tts.tts_to_file(text=text,
|
33 |
file_path=config['inference']['file_path'],
|
34 |
-
speaker_wav=config['inference']['speaker_wav']
|
35 |
language=config['inference']['language'])
|
36 |
return config['inference']['file_path']
|
37 |
|
|
|
29 |
@spaces.GPU
|
30 |
def generate_speech(microphone, text):
|
31 |
# Generate speech using the provided text, speaker voice, and language
|
32 |
+
|
33 |
tts.tts_to_file(text=text,
|
34 |
file_path=config['inference']['file_path'],
|
35 |
+
speaker_wav=microphone, # config['inference']['speaker_wav']
|
36 |
language=config['inference']['language'])
|
37 |
return config['inference']['file_path']
|
38 |
|