Tal commited on
Commit
b495876
·
1 Parent(s): ccd704d

change label to finnish

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -73,15 +73,15 @@ def srt_to_speech(srt_file, language_code, voice_name, gender):
73
  iface = gr.Interface(
74
  fn=srt_to_speech,
75
  inputs=[
76
- gr.File(label="上传SRT文件"),
77
  gr.Dropdown(["fi-FI", "en-US"], label="语言代码", value="fi-FI"),
78
  gr.Dropdown(["fi-FI-Standard-A", "fi-FI-Wavenet-A", "en-US-Standard-A"],
79
- label="语音名称", value="fi-FI-Standard-A"),
80
- gr.Dropdown(["FEMALE", "MALE", "NEUTRAL"], label="性别", value="FEMALE")
81
  ],
82
- outputs=gr.Audio(label="生成的有声字幕"),
83
- title="SRT转语音工具",
84
- description="上传SRT字幕文件,生成带时间轴对齐的语音文件"
85
  )
86
 
87
  if __name__ == "__main__":
 
73
  iface = gr.Interface(
74
  fn=srt_to_speech,
75
  inputs=[
76
+ gr.File(label="Lataa SRT/tiedosto"),
77
  gr.Dropdown(["fi-FI", "en-US"], label="语言代码", value="fi-FI"),
78
  gr.Dropdown(["fi-FI-Standard-A", "fi-FI-Wavenet-A", "en-US-Standard-A"],
79
+ label="Äänen nimi", value="fi-FI-Standard-A"),
80
+ gr.Dropdown(["FEMALE", "MALE", "NEUTRAL"], label="Sukupoli", value="FEMALE")
81
  ],
82
+ outputs=gr.Audio(label="Luotu äänitetty tekstitys"),
83
+ title="SRT-äänityökalu",
84
+ description="Lataa SRT-tekstitystiedosto ja luo äänitetty versio ajoituksella"
85
  )
86
 
87
  if __name__ == "__main__":