Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,9 @@ def get_bgm_file_list():
|
|
49 |
song_dir = "/data/bg-music"
|
50 |
return [os.path.basename(file) for file in glob.glob(os.path.join(song_dir, "*.mp3"))]
|
51 |
|
|
|
|
|
|
|
52 |
# Giao diện Gradio
|
53 |
def interface():
|
54 |
with gr.Blocks() as app:
|
|
|
49 |
song_dir = "/data/bg-music"
|
50 |
return [os.path.basename(file) for file in glob.glob(os.path.join(song_dir, "*.mp3"))]
|
51 |
|
52 |
+
# Định nghĩa danh sách giọng đọc
|
53 |
+
VOICES = ["alloy", "echo", "fable", "onyx", "nova", "shimmer"]
|
54 |
+
|
55 |
# Giao diện Gradio
|
56 |
def interface():
|
57 |
with gr.Blocks() as app:
|