Vijish commited on
Commit
bfb3b6f
1 Parent(s): f8d4bea

Update voice_processing.py

Browse files
Files changed (1) hide show
  1. voice_processing.py +6 -1
voice_processing.py CHANGED
@@ -46,7 +46,7 @@ def get_unique_filename(extension):
46
  return f"{uuid.uuid4()}.{extension}"
47
 
48
 
49
- edge_output_filename = get_unique_filename("mp3")
50
 
51
 
52
  def model_data(model_name):
@@ -136,6 +136,9 @@ async def tts(
136
  rms_mix_rate = 0.25
137
  edge_time = 0 # Initialize edge_time
138
 
 
 
 
139
  try:
140
  if use_uploaded_voice:
141
  if uploaded_voice is None:
@@ -243,3 +246,5 @@ hubert_model = load_hubert()
243
 
244
  rmvpe_model = RMVPE("rmvpe.pt", config.is_half, config.device)
245
 
 
 
 
46
  return f"{uuid.uuid4()}.{extension}"
47
 
48
 
49
+ #edge_output_filename = get_unique_filename("mp3")
50
 
51
 
52
  def model_data(model_name):
 
136
  rms_mix_rate = 0.25
137
  edge_time = 0 # Initialize edge_time
138
 
139
+ edge_output_filename = get_unique_filename("mp3")
140
+
141
+
142
  try:
143
  if use_uploaded_voice:
144
  if uploaded_voice is None:
 
246
 
247
  rmvpe_model = RMVPE("rmvpe.pt", config.is_half, config.device)
248
 
249
+
250
+