Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def interface():
|
|
127 |
docx_path = "script.docx"
|
128 |
create_docx(content, docx_path)
|
129 |
|
130 |
-
audio_path = await async_text_to_speech(content, "
|
131 |
return docx_path, audio_path, "Nội dung đã được xác nhận và âm thanh đã được tạo!"
|
132 |
|
133 |
content_button.click(generate_content,
|
@@ -139,7 +139,7 @@ def interface():
|
|
139 |
outputs=[download_docx, download_audio, status_message])
|
140 |
|
141 |
# Định nghĩa danh sách giọng đọc
|
142 |
-
VOICES = ["
|
143 |
|
144 |
with gr.Tab("Tạo Âm thanh"):
|
145 |
text_input = gr.Textbox(label="Nhập văn bản để chuyển đổi")
|
|
|
127 |
docx_path = "script.docx"
|
128 |
create_docx(content, docx_path)
|
129 |
|
130 |
+
audio_path = await async_text_to_speech(content, "vi-VN-HoaiMyNeural", "Tiếng Việt")
|
131 |
return docx_path, audio_path, "Nội dung đã được xác nhận và âm thanh đã được tạo!"
|
132 |
|
133 |
content_button.click(generate_content,
|
|
|
139 |
outputs=[download_docx, download_audio, status_message])
|
140 |
|
141 |
# Định nghĩa danh sách giọng đọc
|
142 |
+
VOICES = ["vi-VN-HoaiMyNeural"]
|
143 |
|
144 |
with gr.Tab("Tạo Âm thanh"):
|
145 |
text_input = gr.Textbox(label="Nhập văn bản để chuyển đổi")
|