FunASR
FunASR copied to clipboard
Fix crash in ASR tasks when lm is set to none in #2237
I am attempting to fix the issue described in: #2237. When the language model (lm) is set to "none", certain Automatic Speech Recognition (ASR) tasks for.wav files are being processed abnormally. Upon debugging the code, it was found that the program crashed (core dumped) because the size of msg_stamp was equal to 0, leading to an access failure. Therefore, I have added a protection code to handle this situation more gracefully.