Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files180 unmodified lines181182183184185186187186188189190191192193194195180 unmodified lines if os.path.exists(file_index) else "Index not used." ) print("writing to FS") output_file_path = os.path.join("output", f"converted_audio_{sid}.wav") # Adjust path as needed os.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create the output directory if it doesn't exist
print("create dir") # Save the audio file using the target sampling rate sf.write(output_file_path, audio_opt, tgt_sr) print("wrote to FS")
# Return the path to the saved file along with any other information infertest.py+5-1