Research if e.g. [this project](https://pypi.org/project/crepe/) won't provide better estimate of pitch. Check if it won't be too slow.