2024-07-10 08:33 PM - last edited on 2024-07-10 11:38 PM by Peter BENSCH
During audio codec processing, I encountered errors such as "UnboundLocalError: local variable 'res' referenced before assignment" and "struct.error: unpack requires a buffer of 13 bytes". These errors were reported by the Opus profiling tool, and the actual behavior is that the codec stops running shortly after starting.
Additionally, there's another issue where, when outputting the audio file, I can see the encoded/decoded data using CubeIDE for debugging, but the audio file outputted from the PC is an empty file.
I would greatly appreciate any solutions or replies to address these issues. Thank you.