Spaces:
Running on Zero
Running on Zero
lulavc commited on
Commit Β·
34fc3ab
1
Parent(s): bffcb0f
feat: add microphone source to voice reference audio inputs
Browse files
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("""
|