Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
import os
|
3 |
import requests
|
4 |
from fireredtts.fireredtts import FireRedTTS
|
@@ -43,9 +44,9 @@ def tts_inference(text, prompt_wav='examples/prompt_1.wav', lang='zh'):
|
|
43 |
iface = gr.Interface(
|
44 |
fn=tts_inference,
|
45 |
inputs=[
|
46 |
-
gr.Textbox(label="
|
47 |
-
|
48 |
-
|
49 |
],
|
50 |
outputs=gr.Audio(label="生成的语音"),
|
51 |
title="TTS Demo",
|
|
|
1 |
import gradio as gr
|
2 |
+
import numpy as np
|
3 |
import os
|
4 |
import requests
|
5 |
from fireredtts.fireredtts import FireRedTTS
|
|
|
44 |
iface = gr.Interface(
|
45 |
fn=tts_inference,
|
46 |
inputs=[
|
47 |
+
gr.Textbox(label="Input text here"),
|
48 |
+
gr.Audio(source="upload", type="filepath", label="Upload reference audio")
|
49 |
+
gr.Dropdown(["en", "zh"], label="Select language"),
|
50 |
],
|
51 |
outputs=gr.Audio(label="生成的语音"),
|
52 |
title="TTS Demo",
|