How I use AI to take perfect notes…without typing (Help needed)

Hello, Can anyone help me fix this error? Thank you in advance.

@andrewcturing the code you gave someone else in another thread was very helpful to solve one of my issues. Do you know how to solve this one? Thanks so much

It seems you are trying to call the toLowerCase on an undefined variable in your code.