demoparser icon indicating copy to clipboard operation
demoparser copied to clipboard

voice_to_wav example fails with AttributeError: 'builtins.DemoParser' object has no attribute 'parse_voice' (v0.39.0)

Open onlinehunter opened this issue 3 months ago • 5 comments

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

onlinehunter avatar Sep 14 '25 14:09 onlinehunter

Same for me with NodeJS:

const voiceData = parseVoice(DEMO_PATH);
TypeError: parseVoice is not a function

amorijs avatar Sep 24 '25 05:09 amorijs

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.

LaihoE avatar Sep 24 '25 14:09 LaihoE

I am on Windows 11

amorijs avatar Sep 24 '25 17:09 amorijs

Ubuntu 22.04.3 LTS

onlinehunter avatar Sep 24 '25 20:09 onlinehunter

Could you try with 0.40.0?

LaihoE avatar Oct 26 '25 09:10 LaihoE