I'm working on a GAS project with Speech to Text API. It's converting flac file, while the file is large than 2MB, execution is interrupted and got "Exceeded memory limit" error in the GAS code editor. Is there anyway I can catch such error in my code? And any way to avoid such error?
I have checked "Quotas for Google Services", my project should not meet any of the criteria.
My project is https://github.com/mushuser/audiolib , stt.gs is the Speech to text parts.