Remsky commited on
Commit
47dfb0a
·
1 Parent(s): 439e117

Update voice file download paths in TTSModel to use v0.19 directory

Browse files
Files changed (1) hide show
  1. tts_model.py +3 -3
tts_model.py CHANGED
@@ -52,8 +52,8 @@ class TTSModel:
52
  )
53
  self.model_path = model_files[0] # kokoro-v0_19.pth
54
 
55
- # Download voice files
56
- download_voice_files(self.model_repo, "voices", self.voices_dir)
57
 
58
  # Verify voices were downloaded successfully
59
  available_voices = self.list_voices()
@@ -75,7 +75,7 @@ class TTSModel:
75
  voice_path = os.path.join(self.voices_dir, "voices", f"{voice_name}.pt")
76
  if not os.path.exists(voice_path):
77
  print(f"Downloading voice {voice_name}.pt...")
78
- download_voice_files(self.model_repo, [f"{voice_name}.pt"], self.voices_dir)
79
  return True
80
  except Exception as e:
81
  print(f"Error downloading voice {voice_name}: {str(e)}")
 
52
  )
53
  self.model_path = model_files[0] # kokoro-v0_19.pth
54
 
55
+ # Download voice files from v0.19 directory
56
+ download_voice_files(self.model_repo, "v0.19/voices", self.voices_dir)
57
 
58
  # Verify voices were downloaded successfully
59
  available_voices = self.list_voices()
 
75
  voice_path = os.path.join(self.voices_dir, "voices", f"{voice_name}.pt")
76
  if not os.path.exists(voice_path):
77
  print(f"Downloading voice {voice_name}.pt...")
78
+ download_voice_files(self.model_repo, [f"v0.19/voices/{voice_name}.pt"], self.voices_dir)
79
  return True
80
  except Exception as e:
81
  print(f"Error downloading voice {voice_name}: {str(e)}")