Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'soundwave.wav': System error. #400

Closed
AadeshLawange-Guardinger opened this issue Aug 26, 2023 · 11 comments

Comments

@AadeshLawange-Guardinger

No description provided.

@AadeshLawange-Guardinger AadeshLawange-Guardinger changed the title raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'C:\\Users\\aades\\Guardinger-Tech\\GitHub\\project_v2\\UAAC3.0\\server\\media/noisy/A09.wav': System error. raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'A09.wav': System error. Aug 26, 2023
@AadeshLawange-Guardinger AadeshLawange-Guardinger changed the title raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'A09.wav': System error. raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'soundwave.wav': System error. Aug 26, 2023
@bastibe
Copy link
Owner

bastibe commented Aug 27, 2023

System error almost always means your file name is incorrect.

@a897456
Copy link

a897456 commented Nov 13, 2023

System error almost always means your file name is incorrect.

I tried to change the name of the file, but the problem is still there.
Could it be the sampling rate?

@12345678-beep
Copy link

May I ask if your problem has been resolved? I have also encountered the same problem.

@AadeshLawange-Guardinger
Copy link
Author

Check if the folder exists where you are writing the file

@12345678-beep
Copy link

检查写入文件的文件夹是否存在

I carefully checked the folder and confirmed that it exists

@bastibe
Copy link
Owner

bastibe commented Nov 18, 2023

Can you open the same file name with open? Try converting it to an absolute path if it's relative.

@SRbone
Copy link

SRbone commented Feb 28, 2024

sf.write(file_name, data, samplerate)
Maybe the data is not right, numpy.ndarray with multiple dimensions.
such as '[[0,1,......]]'
sf.write(file_name, data[0], samplerate)

@gaoyiyao
Copy link

In the MockingBird project training encountered the same problem, how to solve

@gcbikram
Copy link

i solved it by moving wav file to the same directory where the python code is running

@o-candy
Copy link

o-candy commented May 16, 2024

I also encountered this problem when I reproduced the paper. Specifically, when I loaded the training set, a piece of data could not be read successfully and the error was thrown at the same time.
To my surprise, it worked successfully when I replaced the relative path of the data in the original file with an absolute path.

@AadeshLawange-Guardinger
Copy link
Author

Solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants