kevinwang676 commited on
Commit
7fb1b05
1 Parent(s): 875ff99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -60,14 +60,14 @@ def tts(text, model, voice, api_key):
60
  app = gr.Blocks()
61
 
62
  with app:
63
- gr.Markdown("# <center>🥳🎶🎡 - KNN-VC AI变声</center>")
64
- gr.Markdown("### <center>🌟 - 3秒实时AI变声,支持中日英在内的所有语言!无需训练、一键变声!🍻 </center>")
65
  gr.Markdown("### <center>🌊 - 更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
66
 
67
  with gr.Row(variant='panel'):
68
- api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='Enter your API key to access the TTS demo')
69
- model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='Model', value='tts-1')
70
- voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='alloy')
71
  with gr.Row():
72
  with gr.Column():
73
  inp_text = gr.Textbox(label="请填写您想生成的文本(中英文皆可)", placeholder="想说却还没说的 还很多 攒着是因为想写成歌", lines=5)
 
60
  app = gr.Blocks()
61
 
62
  with app:
63
+ gr.Markdown("# <center>🥳🎶🎡 - OpenAI TTS + AI变声</center>")
64
+ gr.Markdown("### <center>🌟 - 地表最强文本转语音模型 + 3秒实时AI变声,支持中文!Powered by [OpenAI TTS](https://platform.openai.com/docs/guides/text-to-speech) and [KNN-VC](https://github.com/bshall/knn-vc) </center>")
65
  gr.Markdown("### <center>🌊 - 更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
66
 
67
  with gr.Row(variant='panel'):
68
+ api_key = gr.Textbox(type='password', label='OpenAI API Key(在这里可以找到:https://platform.openai.com/api-keys)', placeholder='请在此填写OpenAI API Key')
69
+ model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='请选择模型(tts-1推理更快,tts-1-hd音质更好)', value='tts-1')
70
+ voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='请选择一个说话人', value='alloy')
71
  with gr.Row():
72
  with gr.Column():
73
  inp_text = gr.Textbox(label="请填写您想生成的文本(中英文皆可)", placeholder="想说却还没说的 还很多 攒着是因为想写成歌", lines=5)