TDN-M commited on
Commit
79c68a3
·
verified ·
1 Parent(s): 53bf813

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, "alloy", "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,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 = ["alloy", "echo", "fable", "onyx", "nova", "shimmer"]
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")