lulavc commited on
Commit
34fc3ab
Β·
1 Parent(s): bffcb0f

feat: add microphone source to voice reference audio inputs

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -446,7 +446,7 @@ with gr.Blocks(title="AnimaStudio 🎬") as demo:
446
  with gr.Row():
447
  voice_ref = gr.Audio(
448
  label="Voice Reference (optional β€” clone voice style)",
449
- type="filepath", sources=["upload"],
450
  )
451
  emotion = gr.Slider(0.0, 1.0, value=0.5, step=0.05,
452
  label="Emotion Intensity", info="0 = neutral Β· 1 = very expressive")
@@ -478,7 +478,7 @@ with gr.Blocks(title="AnimaStudio 🎬") as demo:
478
  sources=["upload"])
479
  dub_target_lang = gr.Dropdown(choices=TTS_LANGUAGES, value="English", label="Target Language")
480
  dub_voice_ref = gr.Audio(label="Voice Reference (optional β€” clone voice style)",
481
- type="filepath", sources=["upload"])
482
  dub_emotion = gr.Slider(0.0, 1.0, value=0.5, step=0.05, label="Emotion Intensity")
483
  dub_btn = gr.Button("πŸŽ™οΈ Dub Video", variant="primary", elem_id="dub-btn", size="lg")
484
  gr.HTML("""
 
446
  with gr.Row():
447
  voice_ref = gr.Audio(
448
  label="Voice Reference (optional β€” clone voice style)",
449
+ type="filepath", sources=["upload", "microphone"],
450
  )
451
  emotion = gr.Slider(0.0, 1.0, value=0.5, step=0.05,
452
  label="Emotion Intensity", info="0 = neutral Β· 1 = very expressive")
 
478
  sources=["upload"])
479
  dub_target_lang = gr.Dropdown(choices=TTS_LANGUAGES, value="English", label="Target Language")
480
  dub_voice_ref = gr.Audio(label="Voice Reference (optional β€” clone voice style)",
481
+ type="filepath", sources=["upload", "microphone"])
482
  dub_emotion = gr.Slider(0.0, 1.0, value=0.5, step=0.05, label="Emotion Intensity")
483
  dub_btn = gr.Button("πŸŽ™οΈ Dub Video", variant="primary", elem_id="dub-btn", size="lg")
484
  gr.HTML("""