Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from bark.generation import load_codec_model, generate_text_semantic
|
|
4 |
from encodec.utils import convert_audio
|
5 |
import torchaudio
|
6 |
import torch
|
|
|
7 |
|
8 |
model = load_codec_model(use_gpu=True)
|
9 |
|
@@ -51,7 +52,7 @@ title="""
|
|
51 |
with gr.Blocks(css=css) as demo:
|
52 |
with gr.Column(elem_id="col-container"):
|
53 |
gr.HTML(title)
|
54 |
-
audio_in = gr.Audio(label="Voice in to clone", source="
|
55 |
transcript = gr.Textbox(label="Manual transcription of your audio")
|
56 |
name = gr.Textbox(label="Name your voice")
|
57 |
|
|
|
4 |
from encodec.utils import convert_audio
|
5 |
import torchaudio
|
6 |
import torch
|
7 |
+
#from pydub import AudioSegment
|
8 |
|
9 |
model = load_codec_model(use_gpu=True)
|
10 |
|
|
|
52 |
with gr.Blocks(css=css) as demo:
|
53 |
with gr.Column(elem_id="col-container"):
|
54 |
gr.HTML(title)
|
55 |
+
audio_in = gr.Audio(label="Voice in to clone", source="microphone", type="filepath")
|
56 |
transcript = gr.Textbox(label="Manual transcription of your audio")
|
57 |
name = gr.Textbox(label="Name your voice")
|
58 |
|