Baseta commited on
Commit
3e3b387
1 Parent(s): d7534b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1538,11 +1538,11 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
1538
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1539
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1540
  with gr.Row():
1541
- with gr.Accordion('ElevenLabs / Google TTS', open=False, visible=False):
1542
  with gr.Column():
1543
- lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar','en','it','es','fr','pt','zh-CN','de','hi','ja'], value='en')
1544
- api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
1545
- elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
1546
  with gr.Column():
1547
  tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
1548
  tts_button = gr.Button(value="Speak")
 
1538
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1539
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1540
  with gr.Row():
1541
+ with gr.Accordion('ElevenLabs / Google TTS', open=False, visible=True):
1542
  with gr.Column():
1543
+ lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['ar-eg', 'ar-sa', 'en','it','es','fr','pt','zh-CN','de','hi','ja'], value='en')
1544
+ api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='', visible=False)
1545
+ elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices, visible=False)
1546
  with gr.Column():
1547
  tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
1548
  tts_button = gr.Button(value="Speak")