I found the problem. When the app is compiled it works, it ask for microphone access and folder.
In the IDE this does not happen. Since the IDE does not ask for access, it does not work.
So, how to ask for access in the IDE so I can still work on the program? :D
You can download hear from GitHub ...