Relative Content

Tag Archive for pythonc++numpypointerspybind11

A property of Python class returns an empty numpy array with pybind11

I adopted a project that was abandoned by it’s original creator on GH: pybind11 bindings for whispercpp. I had to update Python version from 3.8 to 3.11.8 in CI and discovered that some of the test cases are failing.
Specifically the ones where wav data is read from a file with C++ and then accessed with a property of WavFileWrapper class. The project uses pybind11 to create interfaces for C++ code in Python.
The relevant pieces of code are:
in whispercpp/src/whispercpp/api_cpp2py_export.h