Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

Add vietnamese and sample font Vietnamese. String pre-translated by chatGPT

vuisme1c35e5056300
diff --git a/app/services/voice.py b/app/services/voice.py
index 5b6a4606..5a9e597c 100644
--- a/app/services/voice.py
+++ b/app/services/voice.py
@@ -15,7 +15,7 @@ from app.utils import utils
def get_all_azure_voices(filter_locals=None) -> list[str]:
if filter_locals is None:
- filter_locals = ["zh-CN", "en-US", "zh-HK", "zh-TW"]
+ filter_locals = ["zh-CN", "en-US", "zh-HK", "zh-TW", "vi-VN"]
voices_str = """
Name: af-ZA-AdriNeural
Gender: Female
diff --git a/resource/fonts/UTM Kabel KT.ttf b/resource/fonts/UTM Kabel KT.ttf
new file mode 100644
index 00000000..399bd07d
Binary files /dev/null and b/resource/fonts/UTM Kabel KT.ttf differ
diff --git a/webui/Main.py b/webui/Main.py
index 481f78e5..1a327f7f 100644
--- a/webui/Main.py
+++ b/webui/Main.py
@@ -234,7 +234,7 @@ with left_panel:
video_languages = [
(tr("Auto Detect"), ""),
]
- for code in ["zh-CN", "zh-TW", "de-DE", "en-US"]:
+ for code in ["zh-CN", "zh-TW", "de-DE", "en-US", "vi-VN"]:
video_languages.append((code, code))
selected_index = st.selectbox(tr("Script Language"),
@@ -299,7 +299,7 @@ with middle_panel:
index=0)
with st.container(border=True):
st.write(tr("Audio Settings"))
- voices = voice.get_all_azure_voices(filter_locals=["zh-CN", "zh-HK", "zh-TW", "de-DE", "en-US", "fr-FR"])
+ voices = voice.get_all_azure_voices(filter_locals=["zh-CN", "zh-HK", "zh-TW", "de-DE", "en-US", "fr-FR", "vi-VN"])
friendly_names = {
v: v.
replace("Female", tr("Female")).
diff --git a/webui/i18n/vi.json b/webui/i18n/vi.json
new file mode 100644
index 00000000..2dbc6ea8
--- /dev/null
+++ b/webui/i18n/vi.json
@@ -0,0 +1,66 @@
+{
+ "Language": "Tiếng Việt",
+ "Translation": {
+ "Video Script Settings": "**Cài Đặt Kịch Bản Video**",
+ "Video Subject": "Chủ Đề Video (Cung cấp một từ khóa, :red[AI sẽ tự động tạo ra] kịch bản video)",
+ "Script Language": "Ngôn Ngữ cho Việc Tạo Kịch Bản Video (AI sẽ tự động xuất ra dựa trên ngôn ngữ của chủ đề của bạn)",
+ "Generate Video Script and Keywords": "Nhấn để sử dụng AI để tạo [Kịch Bản Video] và [Từ Khóa Video] dựa trên **chủ đề**",
+ "Auto Detect": "Tự Động Phát Hiện",
+ "Video Script": "Kịch Bản Video (:blue[① Tùy chọn, AI tạo ra ② Dấu câu chính xác giúp việc tạo phụ đề)",
+ "Generate Video Keywords": "Nhấn để sử dụng AI để tạo [Từ Khóa Video] dựa trên **kịch bản**",
+ "Please Enter the Video Subject": "Vui lòng Nhập Kịch Bản Video Trước",
+ "Generating Video Script and Keywords": "AI đang tạo kịch bản video và từ khóa...",
+ "Generating Video Keywords": "AI đang tạo từ khóa video...",
+ "Video Keywords": "Từ Khóa Video (:blue[① Tùy chọn, AI tạo ra ② Sử dụng dấu phẩy **Tiếng Anh** để phân tách, chỉ sử dụng Tiếng Anh])",
+ "Video Settings": "**Cài Đặt Video**",
+ "Video Concat Mode": "Chế Độ Nối Video",
+ "Random": "Nối Ngẫu Nhiên (Được Khuyến Nghị)",
+ "Sequential": "Nối Theo Thứ Tự",
+ "Video Ratio": "Tỷ Lệ Khung Hình Video",
+ "Portrait": "Dọc 9:16",
+ "Landscape": "Ngang 16:9",
+ "Clip Duration": "Thời Lượng Tối Đa Của Đoạn Video (giây)",
+ "Number of Videos Generated Simultaneously": "Số Video Được Tạo Ra Đồng Thời",
+ "Audio Settings": "**Cài Đặt Âm Thanh**",
+ "Speech Synthesis": "Giọng Đọc Văn Bản",
+ "Speech Region": "Vùng(:red[Bắt Buộc,[Lấy Vùng](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",
+ "Speech Key": "Khóa API(:red[Bắt Buộc,[Lấy Khóa API](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",
+ "Speech Volume": "Âm Lượng Giọng Đọc (1.0 đại diện cho 100%)",
+ "Male": "Nam",
+ "Female": "Nữ",
+ "Background Music": "Âm Nhạc Nền",
+ "No Background Music": "Không Có Âm Nhạc Nền",
+ "Random Background Music": "Âm Nhạc Nền Ngẫu Nhiên",
+ "Custom Background Music": "Âm Nhạc Nền Tùy Chỉnh",
+ "Custom Background Music File": "Vui lòng nhập đường dẫn tệp cho âm nhạc nền tùy chỉnh:",
+ "Background Music Volume": "Âm Lượng Âm Nhạc Nền (0.2 đại diện cho 20%, âm nhạc nền không nên quá to)",
+ "Subtitle Settings": "**Cài Đặt Phụ Đề**",
+ "Enable Subtitles": "Bật Phụ Đề (Nếu không chọn, các cài đặt dưới đây sẽ không có hiệu lực)",
+ "Font": "Phông Chữ Phụ Đề",
+ "Position": "Vị Trí Phụ Đề",
+ "Top": "Trên",
+ "Center": "Giữa",
+ "Bottom": "Dưới (Được Khuyến Nghị)",
+ "Font Size": "Cỡ Chữ Phụ Đề",
+ "Font Color": "Màu Chữ Phụ Đề",
+ "Stroke Color": "Màu Viền Phụ Đề",
+ "Stroke Width": "Độ Rộng Viền Phụ Đề",
+ "Generate Video": "Tạo Video",
+ "Video Script and Subject Cannot Both Be Empty": "Chủ Đề Video và Kịch Bản Video không thể cùng trống",
+ "Generating Video": "Đang tạo video, vui lòng đợi...",
+ "Start Generating Video": "Bắt Đầu Tạo Video",
+ "Video Generation Completed": "Hoàn Tất Tạo Video",
+ "You can download the generated video from the following links": "Bạn có thể tải video được tạo ra từ các liên kết sau",
+ "Pexels API Key": "Khóa API Pexels (:red[Bắt Buộc] [Lấy Khóa API](https://www.pexels.com/api/))",
+ "Basic Settings": "**Cài Đặt Cơ Bản** (:blue[Nhấp để mở rộng])",
+ "Language": "Ngôn Ngữ",
+ "LLM Provider": "Nhà Cung Cấp LLM",
+ "API Key": "Khóa API (:red[Bắt Buộc])",
+ "Base Url": "Url Cơ Bản",
+ "Account ID": "ID Tài Khoản (Lấy từ bảng điều khiển Cloudflare)",
+ "Model Name": "Tên Mô Hình",
+ "Please Enter the LLM API Key": "Vui lòng Nhập **Khóa API LLM**",
+ "Please Enter the Pexels API Key": "Vui lòng Nhập **Khóa API Pexels**",
+ "Get Help": "Nếu bạn cần giúp đỡ hoặc có bất kỳ câu hỏi nào, bạn có thể tham gia discord để được giúp đỡ: https://harryai.cc"
+ }
+}