dongsiqie commited on
Commit
effed78
·
1 Parent(s): 33034f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ with gr.Blocks() as demo:
52
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='nova')
53
  url = gr.Textbox(label="URL", placeholder="Enter your URL and then click on the 'Text-To-Speech' button, or simply press the Enter key.", value='https://openkey.cloud/v1/audio/speech')
54
  #新增一个speed,数字滑块从0.25值4,默认是1
55
- speed = gr.Slider(label="Speed", minimum=0.25, maximum=4, step=0.25, default=1)
56
 
57
  text = gr.Textbox(label="Input text", placeholder="Enter your text and then click on the 'Text-To-Speech' button, or simply press the Enter key.")
58
  btn = gr.Button("Text-To-Speech")
 
52
  voice = gr.Dropdown(choices=['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'], label='Voice Options', value='nova')
53
  url = gr.Textbox(label="URL", placeholder="Enter your URL and then click on the 'Text-To-Speech' button, or simply press the Enter key.", value='https://openkey.cloud/v1/audio/speech')
54
  #新增一个speed,数字滑块从0.25值4,默认是1
55
+ speed = gr.Slider(label="Speed", minimum=0.25, maximum=4, step=0.25, value=1)
56
 
57
  text = gr.Textbox(label="Input text", placeholder="Enter your text and then click on the 'Text-To-Speech' button, or simply press the Enter key.")
58
  btn = gr.Button("Text-To-Speech")