STBack23 commited on
Commit
63f99ce
·
verified ·
1 Parent(s): 8fb2330

Update OmniVoice VI voices + Colab tools

Browse files
Files changed (2) hide show
  1. colab/Omivoice_VI_Colab.ipynb +1 -1
  2. tools/speak.py +2 -1
colab/Omivoice_VI_Colab.ipynb CHANGED
@@ -35,7 +35,7 @@
35
  "DRIVE_FOLDER = \"Omivoice\"\n",
36
  "SRT_FILE = \"input.srt\" # file SRT trong thư mục Omivoice (có thể \"video\" hoặc \"video.srt\")\n",
37
  "\n",
38
- "DEFAULT_VOICE = \"ngoc_huyen\"\n",
39
  "MERGE_MODE = \"native\" # native | cascade | fit | strict\n",
40
  "NUM_STEP = 32"
41
  ],
 
35
  "DRIVE_FOLDER = \"Omivoice\"\n",
36
  "SRT_FILE = \"input.srt\" # file SRT trong thư mục Omivoice (có thể \"video\" hoặc \"video.srt\")\n",
37
  "\n",
38
+ "DEFAULT_VOICE = \"tuong_vy\"\n",
39
  "MERGE_MODE = \"native\" # native | cascade | fit | strict\n",
40
  "NUM_STEP = 32"
41
  ],
tools/speak.py CHANGED
@@ -28,7 +28,8 @@ from omnivoice.models.omnivoice import OmniVoice, VoiceClonePrompt
28
 
29
  ROOT = Path(__file__).resolve().parents[1]
30
  VOICES_DIR = ROOT / "voices"
31
- DEFAULT_PROFILE = VOICES_DIR / "ngoc_huyen" / "profile.json"
 
32
 
33
  # Mặc định biểu cảm: bật lấy mẫu token có nhiệt độ thay vì greedy (0.0).
34
  # Greedy khiến ngữ điệu phẳng, "máy móc"; 0.4 cho nhấn nhá vừa phải, ổn định.
 
28
 
29
  ROOT = Path(__file__).resolve().parents[1]
30
  VOICES_DIR = ROOT / "voices"
31
+ DEFAULT_VOICE_SLUG = "tuong_vy"
32
+ DEFAULT_PROFILE = VOICES_DIR / DEFAULT_VOICE_SLUG / "profile.json"
33
 
34
  # Mặc định biểu cảm: bật lấy mẫu token có nhiệt độ thay vì greedy (0.0).
35
  # Greedy khiến ngữ điệu phẳng, "máy móc"; 0.4 cho nhấn nhá vừa phải, ổn định.