Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,10 +37,10 @@ with gr.Blocks() as demo:
|
|
| 37 |
#gr.HTML("You can also access the Streaming demo for OpenAI TTS by clicking this <a href='https://huggingface.co/spaces/ysharma/OpenAI_TTS_Streaming'>Gradio demo link</a>")
|
| 38 |
with gr.Row(variant='panel'):
|
| 39 |
api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='输入你的 OpenaAI API key')
|
| 40 |
-
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='
|
| 41 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='选择声音', value='alloy')
|
| 42 |
|
| 43 |
-
text = gr.Textbox(label="输入文本,支持多语言以及混合语言", placeholder="
|
| 44 |
btn = gr.Button("合成语音")
|
| 45 |
output_audio = gr.Audio(label="Speech Output")
|
| 46 |
|
|
|
|
| 37 |
#gr.HTML("You can also access the Streaming demo for OpenAI TTS by clicking this <a href='https://huggingface.co/spaces/ysharma/OpenAI_TTS_Streaming'>Gradio demo link</a>")
|
| 38 |
with gr.Row(variant='panel'):
|
| 39 |
api_key = gr.Textbox(type='password', label='OpenAI API Key', placeholder='输入你的 OpenaAI API key')
|
| 40 |
+
model = gr.Dropdown(choices=['tts-1','tts-1-hd'], label='选择模型', value='tts-1')
|
| 41 |
voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='选择声音', value='alloy')
|
| 42 |
|
| 43 |
+
text = gr.Textbox(label="输入文本,支持多语言以及混合语言", placeholder="输入您的文本,然后单击“合成语音”按钮,或直接按 Enter 键。", lines=6)
|
| 44 |
btn = gr.Button("合成语音")
|
| 45 |
output_audio = gr.Audio(label="Speech Output")
|
| 46 |
|