smjain commited on
Commit
b44b510
1 Parent(s): 20d1f73

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +5 -1
infertest.py CHANGED
@@ -181,11 +181,15 @@ def vc_single(
181
  if os.path.exists(file_index)
182
  else "Index not used."
183
  )
 
184
  output_file_path = os.path.join("output", f"converted_audio_{sid}.wav") # Adjust path as needed
 
185
  os.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create the output directory if it doesn't exist
186
-
187
  # Save the audio file using the target sampling rate
188
  sf.write(output_file_path, audio_opt, tgt_sr)
 
 
189
 
190
  # Return the path to the saved file along with any other information
191
 
 
181
  if os.path.exists(file_index)
182
  else "Index not used."
183
  )
184
+ print("writing to FS")
185
  output_file_path = os.path.join("output", f"converted_audio_{sid}.wav") # Adjust path as needed
186
+
187
  os.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create the output directory if it doesn't exist
188
+ print("create dir")
189
  # Save the audio file using the target sampling rate
190
  sf.write(output_file_path, audio_opt, tgt_sr)
191
+
192
+ print("wrote to FS")
193
 
194
  # Return the path to the saved file along with any other information
195