versae commited on
Commit
6605ed4
·
verified ·
1 Parent(s): 68baa6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -173,6 +173,8 @@ with gr.Blocks() as app_tts:
173
  label="Reference Text",
174
  info="Leave blank to automatically transcribe the reference audio. If you enter text it will override automatic transcription.",
175
  lines=2,
 
 
176
  )
177
  remove_silence = gr.Checkbox(
178
  label="Remove Silences",
@@ -183,7 +185,7 @@ with gr.Blocks() as app_tts:
183
  label="Speed",
184
  minimum=0.3,
185
  maximum=2.0,
186
- value=1.0,
187
  step=0.1,
188
  info="Adjust the speed of the audio.",
189
  )
@@ -738,9 +740,9 @@ This is a North Sámi implementation of [F5-TTS](https://arxiv.org/abs/2410.0688
738
 
739
  If you're having issues, try converting your reference audio to WAV or MP3, clipping it to 15s with ✂ in the bottom right corner (otherwise might have non-optimal auto-trimmed result).
740
 
741
- **NOTE: Reference text will be automatically transcribed with [Whisper North Sámi](https://huggingface.co/NbAiLab/whisper-large-sme) if not provided. For best results, keep your reference clips short (<15s). Ensure the audio is fully uploaded before generating.**
742
  """
743
  )
 
744
 
745
  last_used_custom = files("f5_tts").joinpath("infer/.cache/last_used_custom.txt")
746
 
 
173
  label="Reference Text",
174
  info="Leave blank to automatically transcribe the reference audio. If you enter text it will override automatic transcription.",
175
  lines=2,
176
+ visible=False,
177
+ value=Path("./sample.txt").read_text()
178
  )
179
  remove_silence = gr.Checkbox(
180
  label="Remove Silences",
 
185
  label="Speed",
186
  minimum=0.3,
187
  maximum=2.0,
188
+ value=0.8,
189
  step=0.1,
190
  info="Adjust the speed of the audio.",
191
  )
 
740
 
741
  If you're having issues, try converting your reference audio to WAV or MP3, clipping it to 15s with ✂ in the bottom right corner (otherwise might have non-optimal auto-trimmed result).
742
 
 
743
  """
744
  )
745
+ #**NOTE: Reference text will be automatically transcribed with [Whisper North Sámi](https://huggingface.co/NbAiLab/whisper-large-sme) if not provided. For best results, keep your reference clips short (<15s). Ensure the audio is fully uploaded before generating.**
746
 
747
  last_used_custom = files("f5_tts").joinpath("infer/.cache/last_used_custom.txt")
748