versae commited on
Commit
08c0f07
1 Parent(s): 8f21b0f

Add ref male

Browse files
Files changed (4) hide show
  1. app.py +4 -4
  2. ref_male.txt +1 -0
  3. sample.wav → ref_male.wav +0 -0
  4. sample.txt +1 -1
app.py CHANGED
@@ -107,8 +107,8 @@ def infer(
107
  ref_audio_orig, ref_text, gen_text, model, remove_silence, cross_fade_duration=0.15, speed=0.8, show_info=gr.Info
108
  ):
109
  # ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, ref_text, show_info=show_info)
110
- ref_audio = Path("./sample.wav").read_bytes()
111
- ref_text = Path("./sample.txt").read_text()
112
 
113
  if model == "F5-TTS":
114
  ema_model = F5TTS_ema_model
@@ -165,7 +165,7 @@ with gr.Blocks() as app_credits:
165
  """)
166
  with gr.Blocks() as app_tts:
167
  gr.Markdown("# Batched TTS")
168
- ref_audio_input = gr.Audio(label="Reference Audio", type="filepath", visible=False, value=Path("./sample.wav"))
169
  gen_text_input = gr.Textbox(label="Text to Generate", lines=10, value=Path("./sample.txt").read_text())
170
  generate_btn = gr.Button("Synthesize", variant="primary")
171
  with gr.Accordion("Advanced Settings", open=False):
@@ -174,7 +174,7 @@ with gr.Blocks() as app_tts:
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",
 
107
  ref_audio_orig, ref_text, gen_text, model, remove_silence, cross_fade_duration=0.15, speed=0.8, show_info=gr.Info
108
  ):
109
  # ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, ref_text, show_info=show_info)
110
+ ref_audio = Path("./ref_male.wav").read_bytes()
111
+ ref_text = Path("./ref_male.txt").read_text()
112
 
113
  if model == "F5-TTS":
114
  ema_model = F5TTS_ema_model
 
165
  """)
166
  with gr.Blocks() as app_tts:
167
  gr.Markdown("# Batched TTS")
168
+ ref_audio_input = gr.Audio(label="Reference Audio", type="filepath", visible=False, value=Path("./ref_male.wav"))
169
  gen_text_input = gr.Textbox(label="Text to Generate", lines=10, value=Path("./sample.txt").read_text())
170
  generate_btn = gr.Button("Synthesize", variant="primary")
171
  with gr.Accordion("Advanced Settings", open=False):
 
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("./ref_male.txt").read_text()
178
  )
179
  remove_silence = gr.Checkbox(
180
  label="Remove Silences",
ref_male.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Ja dat guoská maiddái dan nu mo dan maŋimuš eh čuoggá dás ahte rasjonalisering altså dat effektiviserejuvvot ja unnit eh doalut sáhttet buvttadit seamma ollu go ovdal.
sample.wav → ref_male.wav RENAMED
File without changes
sample.txt CHANGED
@@ -1 +1 @@
1
- Ja dat guoská maiddái dan nu mo dan maŋimuš eh čuoggá dás ahte rasjonalisering altså dat effektiviserejuvvot ja unnit eh doalut sáhttet buvttadit seamma ollu go ovdal.
 
1
+ Nu ahte vaikko dat doaibmaguovlu lea lassánan dahje viiddiduvvon, dat ii leat dađi mis ii leat nu ollu eanet eh ruhta dasa.