MAZALA2024 commited on
Commit
badea10
·
verified ·
1 Parent(s): 980944a

Update voice_processing.py

Browse files
Files changed (1) hide show
  1. voice_processing.py +7 -0
voice_processing.py CHANGED
@@ -43,6 +43,13 @@ model_root = "weights"
43
  models = [d for d in os.listdir(model_root) if os.path.isdir(f"{model_root}/{d}")]
44
  models.sort()
45
 
 
 
 
 
 
 
 
46
  def get_unique_filename(extension):
47
  return f"{uuid.uuid4()}.{extension}"
48
 
 
43
  models = [d for d in os.listdir(model_root) if os.path.isdir(f"{model_root}/{d}")]
44
  models.sort()
45
 
46
+ def get_voices():
47
+ return list(voice_mapping.keys())
48
+
49
+ def get_models():
50
+ model_root = "weights" # Adjust this path if your models are stored elsewhere
51
+ return [d for d in os.listdir(model_root) if os.path.isdir(f"{model_root}/{d}")]
52
+
53
  def get_unique_filename(extension):
54
  return f"{uuid.uuid4()}.{extension}"
55