Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -431,10 +431,11 @@ def preview(text, voice, speed, trim, use_gpu, sk):
|
|
431 |
return client.predict(text=text, voice=voice, speed=speed, trim=trim, use_gpu=use_gpu, sk=sk, api_name='/generate')[0]
|
432 |
|
433 |
with gr.Blocks() as preview_tts:
|
|
|
|
|
434 |
with gr.Row():
|
435 |
with gr.Column():
|
436 |
text = gr.Textbox(label='Input Text', info='Generate speech for one segment of text, up to ~500 characters')
|
437 |
-
lang = gr.Radio(choices=PREVIEW_LANGUAGES.items(), value='a', label='Language')
|
438 |
with gr.Row():
|
439 |
voice = gr.Dropdown(list(PREVIEW_CHOICES['a'].items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 are unstable')
|
440 |
lang.change(fn=change_language, inputs=[lang], outputs=[voice])
|
@@ -792,7 +793,7 @@ Kokoro was trained exclusively on **permissive/non-copyrighted audio data** and
|
|
792 |
* Synthetic audio<sup>[1]</sup> generated by closed<sup>[2]</sup> TTS models from large providers
|
793 |
* CC BY audio (see below for attribution table)
|
794 |
|
795 |
-
[1] https://copyright.gov/ai/ai_policy_guidance.pdf
|
796 |
[2] No open TTS models used
|
797 |
|
798 |
### Creative Commons Attribution
|
|
|
431 |
return client.predict(text=text, voice=voice, speed=speed, trim=trim, use_gpu=use_gpu, sk=sk, api_name='/generate')[0]
|
432 |
|
433 |
with gr.Blocks() as preview_tts:
|
434 |
+
with gr.Row():
|
435 |
+
lang = gr.Radio(choices=PREVIEW_LANGUAGES.items(), value='a', label='Language', show_label=False)
|
436 |
with gr.Row():
|
437 |
with gr.Column():
|
438 |
text = gr.Textbox(label='Input Text', info='Generate speech for one segment of text, up to ~500 characters')
|
|
|
439 |
with gr.Row():
|
440 |
voice = gr.Dropdown(list(PREVIEW_CHOICES['a'].items()), value='af', label='Voice', info='⭐ voices are stable, 🧪 are unstable')
|
441 |
lang.change(fn=change_language, inputs=[lang], outputs=[voice])
|
|
|
793 |
* Synthetic audio<sup>[1]</sup> generated by closed<sup>[2]</sup> TTS models from large providers
|
794 |
* CC BY audio (see below for attribution table)
|
795 |
|
796 |
+
[1] [https://copyright.gov/ai/ai_policy_guidance.pdf](https://copyright.gov/ai/ai_policy_guidance.pdf)<br/>
|
797 |
[2] No open TTS models used
|
798 |
|
799 |
### Creative Commons Attribution
|