Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,12 +88,13 @@ def speak(text):
|
|
| 88 |
|
| 89 |
with gr.Blocks() as demo:
|
| 90 |
gr.Markdown('# TTTS\n\nAn **unofficial** demo of [TTTS](https://github.com/adelacvg/ttts) based on XTTS. TTTS only supports Chinese.')
|
| 91 |
-
txt = gr.Textbox(label="Text to say", interactive=True
|
| 92 |
btn = gr.Button("Say")
|
| 93 |
aud = gr.Audio(interactive=False)
|
| 94 |
btn.click(speak, inputs=txt, outputs=aud)
|
| 95 |
gr.Examples(
|
| 96 |
examples=[
|
|
|
|
| 97 |
'最近,文本转语音领域发展迅速。',
|
| 98 |
'那是一个漆黑的暴风雨之夜;大雨倾盆而下,只是偶尔被一阵狂风挡住,狂风席卷了街道(因为我们的场景就在伦敦),沿着房顶哗哗作响,猛烈地搅动着在黑暗中挣扎的稀疏灯火。',
|
| 99 |
'你会很高兴听到你怀有如此不祥预感的一项事业的开始并没有发生任何灾难。 我昨天到达这里,我的首要任务是向我亲爱的妹妹保证我的幸福,并增强我事业成功的信心。',
|
|
|
|
| 88 |
|
| 89 |
with gr.Blocks() as demo:
|
| 90 |
gr.Markdown('# TTTS\n\nAn **unofficial** demo of [TTTS](https://github.com/adelacvg/ttts) based on XTTS. TTTS only supports Chinese.')
|
| 91 |
+
txt = gr.Textbox(label="Text to say", interactive=True)
|
| 92 |
btn = gr.Button("Say")
|
| 93 |
aud = gr.Audio(interactive=False)
|
| 94 |
btn.click(speak, inputs=txt, outputs=aud)
|
| 95 |
gr.Examples(
|
| 96 |
examples=[
|
| 97 |
+
'大家好,今天来点大家想看的东西。',
|
| 98 |
'最近,文本转语音领域发展迅速。',
|
| 99 |
'那是一个漆黑的暴风雨之夜;大雨倾盆而下,只是偶尔被一阵狂风挡住,狂风席卷了街道(因为我们的场景就在伦敦),沿着房顶哗哗作响,猛烈地搅动着在黑暗中挣扎的稀疏灯火。',
|
| 100 |
'你会很高兴听到你怀有如此不祥预感的一项事业的开始并没有发生任何灾难。 我昨天到达这里,我的首要任务是向我亲爱的妹妹保证我的幸福,并增强我事业成功的信心。',
|