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

It seems to crash directly when loading the WAV file. #370

Open
c469591 opened this issue Aug 23, 2024 · 0 comments
Open

It seems to crash directly when loading the WAV file. #370

c469591 opened this issue Aug 23, 2024 · 0 comments

Comments

@c469591
Copy link

c469591 commented Aug 23, 2024

Hello, I encountered an error while using the example code provided in the documentation. I'm on Windows 10 22H2.
python3.11.8
When the code reaches this line
with AudioFile("1.wav") as f:
It seems like Python just crashed because any print statements I added afterwards didn't output anything.

from pedalboard.io import AudioFile

with AudioFile("1.wav") as f:
   print(f.duration) # => 30.0
   print(f.samplerate) # => 44100
   print(f.num_channels) # => 2
   print(f.read(f.samplerate * 10))
print('finish')
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

1 participant