voice_to_wav example fails with AttributeError: 'builtins.DemoParser' object has no attribute 'parse_voice' (v0.39.0)
When I tried to run the example from the file https://github.com/LaihoE/demoparser/blob/main/examples/voice_to_wav/main.py, it failed with AttributeError: 'builtins.DemoParser' object has no attribute 'parse_voice'.
Environment: demoparser2 version: 0.39.0 Python version: 3.11.10
Same for me with NodeJS:
const voiceData = parseVoice(DEMO_PATH);
TypeError: parseVoice is not a function
What os are you two running?
I suspect you two are on linux and I think linux is missing that feature as I couldn't get it to build inside the manylinux docker: https://github.com/LaihoE/demoparser/blob/main/src/parser/Cargo.toml#L40l https://github.com/LaihoE/demoparser/blob/main/.github/workflows/deploy.yml#L48
The audio parsing relies on the opus codec that is the problematic dependency.
Building it locally is always an option but I understand that is quite painful. Alternatively if anyone is able to figure it out a PR would be very welcome. I'm way too busy right now unfortunately.
I am on Windows 11
Ubuntu 22.04.3 LTS
Could you try with 0.40.0?