Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files180 unmodified lines181182183184185186187188189190191180 unmodified linesif os.path.exists(file_index)else "Index not used.")output_file_path = os.path.join("output", f"converted_audio_{sid}.wav") # Adjust path as neededos.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create the output directory if it doesn't exist# Save the audio file using the target sampling ratesf.write(output_file_path, audio_opt, tgt_sr)# Return the path to the saved file along with any other information180 unmodified lines181182183184185186187188189190191192193194195180 unmodified linesif 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 neededos.makedirs(os.path.dirname(output_file_path), exist_ok=True) # Create the output directory if it doesn't existprint("create dir")# Save the audio file using the target sampling ratesf.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