Spaces:
Build error
Build error
Samuel L Meyers
commited on
Commit
·
5f80999
1
Parent(s):
4561bf3
Added API route for synthesize
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def main():
|
|
| 97 |
with gr.Row(variant="panel"):
|
| 98 |
audio = gr.Audio()
|
| 99 |
|
| 100 |
-
def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str):
|
| 101 |
"""
|
| 102 |
gets utterance to synthesize from `text` Textbox
|
| 103 |
and speaker name from `speaker` dropdown list.
|
|
|
|
| 97 |
with gr.Row(variant="panel"):
|
| 98 |
audio = gr.Audio()
|
| 99 |
|
| 100 |
+
def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str, api_name="synthesize"):
|
| 101 |
"""
|
| 102 |
gets utterance to synthesize from `text` Textbox
|
| 103 |
and speaker name from `speaker` dropdown list.
|