Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| DEMO_ORIGINAL = "SIWIS_fr_neut_parl_s01_0001_ref.wav" | |
| DEMO_CORRECTED = "SIWIS_fr_neut_parl_s01_0001_corrected.wav" | |
| def process_audio(audio): | |
| if audio is None: | |
| return None, "β οΈ Please upload audio first" | |
| return None, "π§ Full model coming soon! See demo below β" | |
| with gr.Blocks(title="VoiceClean ποΈ") as demo: | |
| gr.HTML(""" | |
| <div style='text-align:center; padding:20px'> | |
| <h1>ποΈ VoiceClean</h1> | |
| <p>AI that fixes your French pronunciation while keeping your voice</p> | |
| <p><b>β‘ 0.38x RTF β faster than real-time</b></p> | |
| </div> | |
| """) | |
| with gr.Row(): | |
| audio_in = gr.Audio(label="π΄ Your Voice", type="filepath", | |
| sources=["upload","microphone"]) | |
| audio_out = gr.Audio(label="π’ Corrected Voice") | |
| status = gr.Markdown("Upload audio to start") | |
| btn = gr.Button("π Fix Pronunciation", variant="primary") | |
| btn.click(process_audio, inputs=audio_in, outputs=[audio_out, status]) | |
| gr.HTML("<hr><h3 style='text-align:center'>π§ Listen to Demo</h3>") | |
| with gr.Row(): | |
| gr.Audio(value=DEMO_ORIGINAL, label="π΄ Before β Original") | |
| gr.Audio(value=DEMO_CORRECTED, label="π’ After β Corrected") | |
| gr.HTML(""" | |
| <div style='text-align:center; padding:10px; color:gray'> | |
| <a href='https://github.com/Rahimdzx/VoiceClean-Core'>GitHub</a> | | |
| Full model deployment coming soon | |
| </div> | |
| """) | |
| demo.launch() |