Neutone / neutone_sdk

Join the community on Discord for more discussions around Neutone! https://discord.gg/VHSMzb8Wqp
GNU Lesser General Public License v2.1
465 stars 21 forks source link

default audio sample loading breaks on windows #67

Closed sildater closed 6 months ago

sildater commented 7 months ago

on windows I get the following error when exporting a model via save_neutone_model: RuntimeError: Error opening <_io.BytesIO object at 0x0000019212E07C20>: Format not recognised. It stems from loading the default audio mp3s in lines 129, 132, 135 in audio.py, the bytesIO object has no format and can't be read by soundfile (line 87). It works on ubuntu.

christhetree commented 7 months ago

@bogdanteleaga does this look familiar when you were making the audio sample changes? Perhaps there's a quick fix here

christhetree commented 7 months ago

@sildater thanks for raising this issue! While we look into a fix, you should still be able to export your model by setting dump_sample=False and submission=False when calling the save_neutone_model method.

bogdanteleaga commented 7 months ago

@sildater Hello! Sorry for the delay, I just tried this out on a Windows machine right now and it seems like it's working. Can you check you have the latest soundfile (I pulled 0.12.1 on a fresh install) and you can use it to read mp3 files with soundfile.read?

bogdanteleaga commented 6 months ago

Closing due to no reply.

sildater commented 5 months ago

Hi! Thanks for the reply and sorry for the late answer! I could fix it with a fresh install of soundfile as you suggested.